Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334331 - allow media-gfx/enblend-4.0 w/ USE=doc to use gnuplot's terminal `pngcairo' instead of `png' provided by gd
Summary: allow media-gfx/enblend-4.0 w/ USE=doc to use gnuplot's terminal `pngcairo' i...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 18:42 UTC by Petr Zima
Modified: 2014-07-23 20:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch of .gp files causing the error. (enblend-4.0-doc-gnuplot-font.patch,3.30 KB, patch)
2010-08-24 18:44 UTC, Petr Zima
Details | Diff
Ebuild using the above patch. (enblend-4.0.ebuild,1.92 KB, text/plain)
2010-08-24 18:46 UTC, Petr Zima
Details
patch for the doc sources to work with both `png' and `pngcairo' (enblend-4.0-doc-gnuplot-font.patch,3.30 KB, patch)
2010-12-05 12:07 UTC, Petr Zima
Details | Diff
patch for enblend-4.0.ebuild to patch the sources and allow gnuplot[cairo] dependency (enblend-4.0.ebuild-03-font-patch.patch,515 bytes, patch)
2010-12-05 12:10 UTC, Petr Zima
Details | Diff
my final ebuild after applying the three patches from bugs #347789, #347789 and this one (attached just for convenience) (enblend-4.0.ebuild,2.07 KB, text/plain)
2010-12-05 12:13 UTC, Petr Zima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Zima 2010-08-24 18:42:42 UTC
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'.
Comment 1 Petr Zima 2010-08-24 18:44:47 UTC
Created attachment 244431 [details, diff]
Patch of .gp files causing the error.

Here is a patch which fixes the problem.
Comment 2 Petr Zima 2010-08-24 18:46:04 UTC
Created attachment 244433 [details]
Ebuild using the above patch.
Comment 3 Petr Zima 2010-09-12 10:26:26 UTC
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.
Comment 4 Petr Zima 2010-12-05 12:03:47 UTC
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?
Comment 5 Petr Zima 2010-12-05 12:07:31 UTC
Created attachment 256381 [details, diff]
patch for the doc sources to work with both `png' and `pngcairo'
Comment 6 Petr Zima 2010-12-05 12:10:05 UTC
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.
Comment 7 Petr Zima 2010-12-05 12:13:53 UTC
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.
Comment 8 Christoph Junghans (RETIRED) gentoo-dev 2014-07-23 20:00:37 UTC
media-gfx/enblend-4.0 is not in gx86 anymore, open a new bug for recent version.