Red Hat Bugzilla – Bug 313301
netbpm-progs is missing a dependency on xorg-x11-server-utils, causing buildroot problems
Last modified: 2013-07-02 19:23:15 EDT
Description of problem:
While working on freecol (review bug 302361) the reviewer noted that there were
images with a size of 0 bytes in the docs.
These docs are generated by latex2html, which uses netpbm progs to manipulate
I've managed to reproduce the problem in a local buildroot:
[hans@shalem freecol]$ sudo chroot /var/lib/mock/fedora-development-x86_64/root/
bash-3.2# /usr/bin/ppmquant -floyd 256 < test.pnm | /usr/bin/pnmtopng -interlace
-trans 'gray85' > img2.png
pnmcolormap: making histogram...
pnmcolormap: Scanning image 0
pnmcolormap: 15 colors so far
pnmcolormap: 15 colors found
pnmcolormap: Image already has few enough colors (<=256). Keeping same colors.
pnmremap: 15 colors found in colormap
pnmtopng: can't open color names dictionary file named /usr/lib/X11/rgb.txt,
/usr/share/X11/rgb.txt, or /usr/X11R6/lib/X11/rgb.txt and Environment variable
RGBDEF not set. Set RGBDEF to the pathname of your rgb.txt file or don't use
Installing /usr/share/X11/rgb.txt from my main system into the buildroot fixes
this. /usr/share/X11/rgb.txt is part of xorg-x11-server-utils and since
netpbm-progs needs this file it should thus require xorg-x11-server-utils (or
require the file).
I just rechecked if this is really fixed, as I wanted to remove a workaround for
this from a specfile I was working on, but it isn't fixed.
Reopening: you BR'd it, but it should be a normal Requires, as
/usr/share/X11/rgb.txt gets used runtime by pnmtopng.
I see the xorg-x11-server-utils Requires is actually not needed as netpbm
contains its own rgb.txt in its tarball which is much more recent that the xorg
one (~2000) and contains more data. I will probably drop the xorg-utils
dependency completely, package the netpbm's rgb.txt and update search paths.
The new rgb.txt is now packaged in /usr/share/netpbm and the links to it are now
corrected so that pnmtopng should use this new rgb.txt from now on. Please test
and reopen if you see some other issues.
netpbm-10.35.41-1.fc8 has been submitted as an update for Fedora 8
netpbm-10.35.41-1.fc7 has been submitted as an update for Fedora 7
netpbm-10.35.41-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.
netpbm-10.35.41-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.