The build problem with nginx following libressl changes is only
in the lua module ..

/usr/obj/ports/nginx-1.10.2/nginx-1.10.2/lua-nginx-module/src/ngx_http_lua_ssl_ocsp.c:493:
 error: 'SSL' has no member named 'tlsext_status_expected'

OK to add bits to the Makefile so we can disable the lua build,
and use that by default for now to unbreak build?



Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
retrieving revision 1.105
diff -u -p -r1.105 Makefile
--- Makefile    9 Jan 2017 15:56:27 -0000       1.105
+++ Makefile    28 Jan 2017 21:39:06 -0000
@@ -54,6 +54,11 @@ PERMIT_PACKAGE_CDROM=        yes
 
 MULTI_PACKAGES =       -main -image_filter -geoip -xslt -mailproxy -stream 
-naxsi -lua -perl -passenger
 
+FLAVOR ?=              no_lua
+PSEUDO_FLAVORS =       no_lua
+
+.include <bsd.port.arch.mk>
+
 WANTLIB-main=          c z pcre ssl crypto
 WANTLIB-mailproxy=
 WANTLIB-stream=
@@ -101,7 +106,7 @@ CFLAGS+=    -Wall -Wpointer-arith \
                -I "${LOCALBASE}/include" \
                -L "${X11BASE}/lib"
 
-MODULES+=              lang/ruby lang/lua
+MODULES+=              lang/ruby
 MODRUBY_BUILDDEP=      No
 MODRUBY_RUNDEP=                No
 
@@ -109,8 +114,14 @@ PATCHFILES+=               nginx-${VERSION}-chroot.pa
 PATCH_DIST_STRIP=      -p1
 
 CONFIGURE_STYLE=       simple
+
+.if ${BUILD_PACKAGES:M-lua}
+MODULES+=              lang/lua
 CONFIGURE_ENV+=                MODLUA_INCL_DIR=${MODLUA_INCL_DIR} \
                        MODLUA_LIB=${MODLUA_LIB}
+CONFIGURE_ARGS+=       --add-dynamic-module=${WRKSRC}/lua-nginx-module
+.endif
+
 CONFIGURE_ARGS+=       --prefix=${NGINX_DIR} \
                        --conf-path=${SYSCONFDIR}/nginx/nginx.conf \
                        --sbin-path=${PREFIX}/sbin/nginx \
@@ -141,7 +152,6 @@ CONFIGURE_ARGS+=    --prefix=${NGINX_DIR} \
                        --with-stream=dynamic \
                        --add-dynamic-module=${WRKSRC}/naxsi/naxsi_src/ \
                        --add-dynamic-module=${WRKSRC}/ngx_devel_kit \
-                       --add-dynamic-module=${WRKSRC}/lua-nginx-module \
                        
--add-dynamic-module=${LOCALBASE}/lib/phusion-passenger${GEM_BIN_SUFFIX}/src/nginx_module
 
 SUBSTFILES=            conf/nginx.conf \

Reply via email to