Compile of `media-gfx/enblend-4.0' with `doc' use flag fails while making `enfuse.pdf' when sci-visualization/gnuplot-4.4.0 is used (on ~x86) with error: GDFONTPATH=${GDFONTPATH:-/opt/local/share/fonts/freefont-ttf:/sw/share/fonts freefont-ttf:/usr/X11/lib/X11/fonts/TTF:/usr/X11R6/lib/X11/fonts/TTF:/usr/share fonts/truetype/freefont} /usr/bin/gnuplot entropy.gp "entropy.gp", line 22: undefined variable: FreeSans make[2]: Leaving directory `/var/build/paludis/media-gfx-enblend-4.0/work enblend-enfuse-4.0-753b534c819d/doc' make[2]: *** [entropy.txt] Error 1 make[1]: Leaving directory `/var/build/paludis/media-gfx-enblend-4.0/work/enblend-enfuse-4.0-753b534c819d' make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. Install `sci-visualization/gnuplot-4.4.0'. 2. Set `doc' use flag for `media-gfx/enblend-4.0'. 3. Install `media-gfx/enblend-4.0'.
Created attachment 244431 [details, diff] Patch of .gp files causing the error. Here is a patch which fixes the problem.
Created attachment 244433 [details] Ebuild using the above patch.
Please can you fix this in the portage tree? Or resolve it with the upstream? If I can further help (e.g. change the patch to a sed commands or contact the upstream myself), just leave a notice here.
I have analyzed this bug deeper and the situation is a bit more complicated. First, the intended way to generate graphs for the pdf docs is to use gnuplot with gd support, which provides the `png' terminal --- I have reported a new separate bug #347786 for this. There is also a minor font problem --- see bug #347789. Now back to my original problem. I have gnuplot installed with USE=-gd but with USE=cairo. And cairo support in gnuplot provides a `pngcairo' terminal, which is used as a fallback when the `png' terminal is not available. The pitfall is that pngcairo uses a bit different syntax for font specifications. Luckily there exists an alternative syntax understood by both the `png' and `pngcairo' terminals. Hence the documentation sources can be patched so that they work with both gnuplot[gd] and gnuplot[cairo]. Gentoo's about choices, isn't it?
Created attachment 256381 [details, diff] patch for the doc sources to work with both `png' and `pngcairo'
Created attachment 256383 [details, diff] patch for enblend-4.0.ebuild to patch the sources and allow gnuplot[cairo] dependency This patch comes after the ones from bug #347786 and bug #347789.
Created attachment 256384 [details] my final ebuild after applying the three patches from bugs #347789, #347789 and this one (attached just for convenience) This solves all the three problems.
media-gfx/enblend-4.0 is not in gx86 anymore, open a new bug for recent version.