Created attachment 150539 [details] patch to unbreak evince build on FreeBSD 8 The build of graphics/evince on FreeBSD 8 fails: gmake[2]: Entering directory '/wrkdirs/usr/ports/graphics/evince/work/evince-3.14.1/browser-plugin' GEN EvBrowserPluginResources.c CXX libevbrowserplugin_la-EvBrowserPluginToolbar.lo CXX libevbrowserplugin_la-EvBrowserPluginMain.lo CC libevbrowserplugin_la-EvBrowserPluginResources.lo CXX libevbrowserplugin_la-EvBrowserPlugin.lo CXXLD libevbrowserplugin.la libtool: link: only absolute run-paths are allowed Makefile:618: recipe for target 'libevbrowserplugin.la' failed gmake[2]: *** [libevbrowserplugin.la] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/graphics/evince/work/evince-3.14.1/browser-plugin' Makefile:704: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/graphics/evince/work/evince-3.14.1' Makefile:568: recipe for target 'all' failed gmake: *** [all] Error 2 Comparing config.log for FreeBSD 8 and FreeBSD 10, I found this difference: FreeBSD 8: BROWSER_PLUGIN_DIR='${libdir/mozilla/plugins}' FreeBSD 10: BROWSER_PLUGIN_DIR='${libdir}/mozilla/plugins' The former looks incorrect, probably due to an unpatched shell bug in FreeBSD 8, so I decided to try setting CONFIG_SHELL to bash in the port Makefile, which avoided the shell bug and allowed the build to succeed.
Auto-assigned to maintainer gnome@FreeBSD.org
Created attachment 150657 [details] patch to unbreak evince build on FreeBSD 8 Check OPSYS in addition to OSVERSION.
Created attachment 150696 [details] simpler patch to unbreak evince build on FreeBSD 8 This is a simpler fix for the build problem suggested by Jan Beich <jbeich@vfemail.net> here: <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196041>.
Created attachment 155069 [details] patch to remove evince BROKEN tag The original issue was fixed upstream. Now that the port has been upgraded to 3.14.2, which includes the upstream fix. we only have to remove the BROKEN tag from the Makefile.
A commit references this bug: Author: truckman Date: Sat Apr 11 17:31:48 UTC 2015 New revision: 383818 URL: https://svnweb.freebsd.org/changeset/ports/383818 Log: The problem causing the build breakage on FreeBSD 8 was fixed upstream, but the BROKEN tag was never removed from the port. Remove the flag. PR: 195943 Differential Revision: https://reviews.freebsd.org/D2280 Reviewed by: kwm Approved by: mat (mentor) Changes: head/graphics/evince/Makefile