Created attachment 154635 [details] Patch for print/cups-base/Makefile Bug in print/cups-base Makefile. Around the time of CUPS 1.4, the build was changed to use xdg-open command, when available, for the web interface. At that time the default command in desktop/cups.desktop.in was revised to use a variable controlled/set by the configure script. The configure script was revised to check for the existence of the xdg-open binary on the system an set the variable to either htmlview or xdg-open accordingly. Since this ports source change, the Makefile line to edit the cups/desktop.in prior to beginning the build is non-functional. .if ${PORT_OPTIONS:MXDG_OPEN} @${REINPLACE_CMD} -e 's|htmlview|xdg-open|' ${WRKSRC}/desktop/cups.desktop.in .endif The use of xdg-open (devel/xdg-utils) is specified as a run time dependency and will only be built, if not already on the system, AFTER cups-base has been built. It is hit or miss whether xdg-open is actually used as configured. It will never be used when built in a poudriere jail. A quick patch to the Makefile has been prepared to revise the edit line to replace the configure variable - @CUPS_HTMLVIEW@ - and is attached. A more proper fix would be to revise xdg-open from a RUN_DEPENDS to a USES dependency. That of course would require additions to Mk/Uses/
Created attachment 166960 [details] cups-base.diff - Add a build dependency on xdg-open so that the configure script can find it - Make XDG_OPEN a default option for the same reason X11 is one - Make option description friendlier - Removes the substitution hack - Also fixes a plist issue from the option rename ICONS -> X11 from bug #190434 Poudriere testport log coming soon.
Created attachment 166962 [details] cups-base.diff
Created attachment 166963 [details] Poudriere testport log FreeBSD 10.2/i386
Created attachment 166983 [details] cups-base.diff Update patch to apply after revert of ICONS change.
Created attachment 166984 [details] Poudriere testport log FreeBSD 10.2/i386 with XDG_OPEN
Created attachment 166985 [details] Poudriere testport log FreeBSD 10.2/i386 without XDG_OPEN
Remaining issue(?): xdg-open is picked up when its available in the environment even when XDG_OPEN is unset.
Fixed in ports r410825.