The build system doesn't understand this compound DEPENDS condition 
without it being wrapped in parentheses. menuconfig does understand it, so 
libopenssl would be selected if nginx needed it, but there was no 
guarantee that openssl would be built before nginx. Adding parentheses 
fixes the problem. This seems to be how compound conditions are generally 
handled in OpenWrt Makefiles.

Signed-off-by: Mark Mentovai <[email protected]>

---

Index: feeds/packages/net/nginx/Makefile
===================================================================
--- feeds/packages/net/nginx/Makefile   (revision 36584)
+++ feeds/packages/net/nginx/Makefile   (working copy)
@@ -57,7 +57,7 @@
   SUBMENU:=Web Servers/Proxies
   TITLE:=Nginx web server
   URL:=http://nginx.org/
-  DEPENDS:=+NGINX_PCRE:libpcre 
+NGINX_SSL||NGINX_HTTP_CACHE||NGINX_HTTP_AUTH_BASIC:libopenssl 
+NGINX_HTTP_GZIP:zlib +libpthread +NGINX_LUA:liblua
+  DEPENDS:=+NGINX_PCRE:libpcre 
+(NGINX_SSL||NGINX_HTTP_CACHE||NGINX_HTTP_AUTH_BASIC):libopenssl 
+NGINX_HTTP_GZIP:zlib +libpthread +NGINX_LUA:liblua
   MENU:=1
 endef
 
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to