diff options
author | Sean Khan <datapronix@protonmail.com> | 2024-04-12 18:40:13 -0400 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-04-18 13:00:20 +0200 |
commit | 4cc682c8a47172bd71f3065f0c078519529fa227 (patch) | |
tree | f61962f06a3765b0f6e5f115ff0f16a4cc534539 /net/nginx/Makefile | |
parent | f788525078b1df2a0e2429f228ccae1510022554 (diff) |
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 <datapronix@protonmail.com>
Diffstat (limited to 'net/nginx/Makefile')
-rw-r--r-- | net/nginx/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nginx/Makefile b/net/nginx/Makefile index 7478078de..b90cef9c1 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): |