From 4cc682c8a47172bd71f3065f0c078519529fa227 Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Fri, 12 Apr 2024 18:40:13 -0400 Subject: [PATCH] nginx: fix geoip2 dependency on mod ngx_stream Since the geoip2 package contains both `http` and `stream` versions. It requires the module `ngx_stream` be installed and loaded and produces the error: ``` 2024/04/12 18:38:18 [emerg] 4402#0: dlopen() "/usr/lib/nginx/modules/ngx_stream_geoip2_module.so" failed (Error relocating /usr/lib/nginx/modules/ngx_stream_geoip2_module.so: ngx_stream_complex_value: symbol not found) in /etc/nginx/module.d/ngx_stream_geoip2.module:1 nginx: configuration file /etc/nginx/uci.conf test failed ``` Add dependency so it's built at build time and installed automatically by `opkg` Signed-off-by: Sean Khan --- net/nginx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nginx/Makefile b/net/nginx/Makefile index 7478078de3..b90cef9c10 100644 --- a/net/nginx/Makefile +++ b/net/nginx/Makefile @@ -477,7 +477,7 @@ $(eval $(call BuildModule,brotli,,ngx_http_brotli_filter ngx_http_brotli_static, Add support for brotli compression module.)) $(eval $(call BuildModule,naxsi,,ngx_http_naxsi, \ Enable NAXSI module.)) -$(eval $(call BuildModule,geoip2,+@NGINX_STREAM_CORE_MODULE +libmaxminddb,ngx_http_geoip2 ngx_stream_geoip2, \ +$(eval $(call BuildModule,geoip2,+@NGINX_STREAM_CORE_MODULE +nginx-mod-stream +libmaxminddb,ngx_http_geoip2 ngx_stream_geoip2, \ Enable MaxMind GeoIP2 module.)) # TODO: remove after a transition period (together with pkg nginx-util):