Solved Libxul is marked broken

A pkg audit -F indicates vulnerabilities in libxul-24.8.1 but the new version in the ports tree is marked BROKEN. Is there a fix in the works?
 
Turn off the GSTREAMER option, and www/libxul will build.
Thanks for the tip. But that didn't work.
Code:
Traceback (most recent call last):
  File "/usr/ports/www/libxul/work/mozilla-esr31/config/expandlibs_gen.py", line 43, in <module>
  print >>outfile, generate(args)
  File "/usr/ports/www/libxul/work/mozilla-esr31/config/expandlibs_gen.py", line 27, in generate
  raise Exception("File not found: %s" % arg)
Exception: File not found: ../../js/xpconnect/src/libxpconnect_s.a
/usr/ports/www/libxul/work/mozilla-esr31/config/rules.mk:845: recipe for target 'libgklayout.a.desc' failed
gmake[5]: *** [libgklayout.a.desc] Error 1
gmake[5]: *** Deleting file 'libgklayout.a.desc'
gmake[5]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0/layout/build'
/usr/ports/www/libxul/work/mozilla-esr31/config/recurse.mk:95: recipe for target 'layout/build/libs' failed
gmake[4]: *** [layout/build/libs] Error 2
gmake[4]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0'
/usr/ports/www/libxul/work/mozilla-esr31/config/recurse.mk:39: recipe for target 'libs' failed
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0'
/usr/ports/www/libxul/work/mozilla-esr31/config/rules.mk:592: recipe for target 'default' failed
gmake[2]: *** [default] Error 2
gmake[2]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/libxul
*** Error code 1

Stop.
make: stopped in /usr/ports/www/libxul

I've also sent an email to the maintainer but no response yet.
 
This is several days later, but I've emailed the maintainer as well and no one's responded. I hope someone up there is working on this... o_O
 
The maintainer emailed me a patch for the Makefile. I applied it and advised him that it works for now. I'm hesitant to mark this solved until a fix is committed to the ports tree. The content of his email follows:
Code:
mozilla-esr24 branch was EOL'd recently as such it no longer receives
security fixes. Tracking it in ports brings little benefit over staying
with old ports snashpot and maybe *carefully* cherry-picking updates.

Here's a partial fix. TEST is broken during install since libxul-27.0.

Index: www/libxul/Makefile
===================================================================
--- www/libxul/Makefile (revision 1733)
+++ www/libxul/Makefile (revision 1737)
@@ -46,7 +46,6 @@ LDFLAGS+= -Wl,-rpath,${PREFIX}/lib/${MOZ_RPATH}
USE_LDCONFIG= ${PREFIX}/lib/${MOZILLA}

MOZ_OPTIONS?= --enable-application=xulrunner
-MOZ_EXTENSIONS= default,cookie,permissions
USE_GECKO= gecko
CPE_PRODUCT= firefox_esr
OBJDIR_BUILD= # in-tree build broken after bug 789837
@@ -56,8 +55,6 @@ MOZILLA_PLIST_DIRS= bin include lib share/idl libd
MOZ_PKGCONFIG_FILES= libxul-embedding libxul mozilla-js \
mozilla-plugin

-BROKEN= build error on js/xpconnect/src/libxpconnect_s.a.desc
-
.include "${.CURDIR}/../../www/firefox/Makefile.options"
.include <bsd.port.pre.mk>

@@ -90,6 +87,10 @@ RUN_DEPENDS+= alsa-lib>=1.0.27.2_1:${PORTSDIR}/aud
RUN_DEPENDS+= gstreamer1-libav>=1.2.4_1:${PORTSDIR}/multimedia/gstreamer1-libav
.endif

+.if ${PORT_OPTIONS:MTEST}
+BROKEN= stage-package fails with ValueError: no path specified
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/MOZPNG/s/=[0-9]*/=10511/' \
${WRKSRC}/configure.in

-------------------------------------------------
 
MOZILLA_PLIST_DIRS= bin include lib share/idl libd
should be
Code:
MOZILLA_PLIST_DIRS= bin include lib share/idl libdata
and
@@ -90,6 +87,10 @@ RUN_DEPENDS+= alsa-lib>=1.0.27.2_1:${PORTSDIR}/aud
should be
Code:
@@ -90,6 +87,10 @@ RUN_DEPENDS+= alsa-lib>=1.0.27.2_1:${PORTSDIR}/audio


But I had delete all after @@ in this lines, to got it work.
 
Last edited:
Thanks for the tip. But that didn't work.
Code:
Traceback (most recent call last):
  File "/usr/ports/www/libxul/work/mozilla-esr31/config/expandlibs_gen.py", line 43, in <module>
  print >>outfile, generate(args)
  File "/usr/ports/www/libxul/work/mozilla-esr31/config/expandlibs_gen.py", line 27, in generate
  raise Exception("File not found: %s" % arg)
Exception: File not found: ../../js/xpconnect/src/libxpconnect_s.a
/usr/ports/www/libxul/work/mozilla-esr31/config/rules.mk:845: recipe for target 'libgklayout.a.desc' failed
gmake[5]: *** [libgklayout.a.desc] Error 1
gmake[5]: *** Deleting file 'libgklayout.a.desc'
gmake[5]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0/layout/build'
/usr/ports/www/libxul/work/mozilla-esr31/config/recurse.mk:95: recipe for target 'layout/build/libs' failed
gmake[4]: *** [layout/build/libs] Error 2
gmake[4]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0'
/usr/ports/www/libxul/work/mozilla-esr31/config/recurse.mk:39: recipe for target 'libs' failed
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0'
/usr/ports/www/libxul/work/mozilla-esr31/config/rules.mk:592: recipe for target 'default' failed
gmake[2]: *** [default] Error 2
gmake[2]: Leaving directory '/usr/ports/www/libxul/work/mozilla-esr31/obj-x86_64-unknown-freebsd10.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/libxul
*** Error code 1

Stop.
make: stopped in /usr/ports/www/libxul

I've also sent an email to the maintainer but no response yet.
So I was lucky :D. I've actually disabled all GNOME_related options (GVFS2, GCONF, GNOMEUI) and automagically this port built. Could be clang version related?
 
Back
Top