Ping. On Tue, Aug 14, 2018 at 08:53:38AM -0700, Xiyue Deng wrote: > On Sat, Apr 14, 2018 at 04:16:33PM -0700, [email protected] wrote: > > Hi, > > > > On 4/12/18 10:58 PM, [email protected] wrote: > > > Dear ports maintainer, > > > > > > When building nginx, one of its dependencies ruby-passenger failed to > > > build due to dwarf version mismatch. The most relevant line is below: > > > > > > /usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only > > > handles version 2 information. > > > > > > The detailed build log is in attachment. Let me know if more information > > > is required. > > > > > > Thanks. > > > > I've further checked dwarf information for all the .o and .a files using > > readelf and all of them reported dwarf version 2. Could this be an ld issue? > > > > The command I used for each file (e.g. > > buildout/common/libpassenger_common/LoggingKit.o, one of the files to link): > > > > $ readelf --debug-dump=info buildout/common/libpassenger_common/LoggingKit.o > > | grep -A 2 "Compilation Unit" | grep "Version:" > > Jeremy Evans has proposed a patch to add a flavor in nginx to disable > passenger, though he may be busy right now. So I thought I may retry > the mailing list and see if anyone would like to review his patch, which > is attached. > > Thanks.
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/www/nginx/Makefile,v
> retrieving revision 1.121
> diff -u -p -r1.121 Makefile
> --- Makefile 28 Apr 2018 15:58:59 -0000 1.121
> +++ Makefile 27 Jul 2018 02:35:30 -0000
> @@ -54,7 +54,7 @@ MULTI_PACKAGES = -main -image_filter -ge
> -naxsi -perl -passenger -headers_more -lua
>
> FLAVOR ?=
> -PSEUDO_FLAVORS = no_lua
> +PSEUDO_FLAVORS = no_lua no_passenger
>
> .include <bsd.port.arch.mk>
>
> @@ -70,8 +70,6 @@ WANTLIB-headers_more=
> WANTLIB-perl= c m perl
> WANTLIB-passenger= m pthread ${COMPILER_LIBCXX}
>
> -BUILD_DEPENDS+=
> ${MODRUBY_PKG_PREFIX}-passenger-*:www/ruby-passenger
> -
> LIB_DEPENDS-main= devel/pcre
> LIB_DEPENDS-xslt= textproc/libxml \
> textproc/libxslt
> @@ -110,10 +108,6 @@ CFLAGS+= -Wall -Wpointer-arith \
> -I "${LOCALBASE}/include" \
> -L "${X11BASE}/lib"
>
> -MODULES+= lang/ruby
> -MODRUBY_BUILDDEP= No
> -MODRUBY_RUNDEP= No
> -
> PATCHFILES+= nginx-${VERSION}-chroot.patch:3
> PATCH_DIST_STRIP= -p1
>
> @@ -126,6 +120,14 @@ CONFIGURE_ENV+= MODLUA_INCL_DIR=${MODLU
> CONFIGURE_ARGS+= --add-dynamic-module=${WRKSRC}/lua-nginx-module
> .endif
>
> +.if ${BUILD_PACKAGES:M-passenger}
> +MODULES+= lang/ruby
> +MODRUBY_BUILDDEP= No
> +MODRUBY_RUNDEP= No
> +BUILD_DEPENDS+=
> ${MODRUBY_PKG_PREFIX}-passenger-*:www/ruby-passenger
> +CONFIGURE_ARGS+=
> --add-dynamic-module=${LOCALBASE}/lib/phusion-passenger${GEM_BIN_SUFFIX}/src/nginx_module
> +.endif
> +
> CONFIGURE_ARGS+= --prefix=${NGINX_DIR} \
> --conf-path=${SYSCONFDIR}/nginx/nginx.conf \
> --sbin-path=${PREFIX}/sbin/nginx \
> @@ -157,7 +159,6 @@ CONFIGURE_ARGS+= --prefix=${NGINX_DIR} \
> --add-dynamic-module=${WRKSRC}/naxsi/naxsi_src/ \
> --add-dynamic-module=${WRKSRC}/ngx_devel_kit \
>
> --add-dynamic-module=${WRKSRC}/headers-more-nginx-module \
> -
> --add-dynamic-module=${LOCALBASE}/lib/phusion-passenger${GEM_BIN_SUFFIX}/src/nginx_module
>
> SUBSTFILES= conf/nginx.conf \
> lua-nginx-module/config
signature.asc
Description: PGP signature
