tetex-1.0.7-r12 is broken by the latest libpng changes (libpng-1.0.15 libpng-1.2.5-r2). (See end of bug report for build error.) [This is related to (but not strictly identical to) bug 12433 (also raised by me :-).] This is because /usr/include/png.h does not exist, and the tetex build fails. Either tetex needs to flip over to use its internal version of libpng, or it needs to be patched for the new gentoo layout of libpng. Or... I've just done a quick grep through the ebuilds - the only ones that explicitly require libpng-1.0* (and not anything later) are: media-gfx/graphviz/graphviz-1.8.10-r2.ebuild net-www/opera/opera-6.0.ebuild graphviz has been patched for the new libpng; opera-6.0 is no longer the "active" opera - and is in fact masked. In other words, the whole of this libpng hassle is now down to two packages, one of which is fixed, and the other of which is masked (and replaced by opera-6.11). So, erm, the headers from libpng-1.2 could quite happily live in /usr/include/, like they used to (as symlinks to the files in /usr/include/libpng-12). Any new package added to portage that requires libpng-10 could have the same patch done to it as graphviz. Phil [...] make[3]: Entering directory `/var/tmp/portage/tetex-1.0.7-r12/work/teTeX-1.0/texk/web2c/pdftexdir' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../.. -I.. -I./.. -I../.. -I./../.. -march=athlon -O3 -pipe -c writejpg.c In file included from writejpg.c:8: image.h:1:17: png.h: No such file or directory image.h:14:2: #error "Your system libpng is too old for pdfTeX, please use pdfTeX's one."
I worked round this problem by hand sym linking /usr/include/png.h -> libpng12/png.h, and /usr/include/pngconf.h -> libpng/pngconf.h tetex-1.0.7-r12 builds (and runs) correctly - well, so far, anyway. phil
would you please emerge libpng-1.0.15 and libpng-1.2.5 instead? 1.0.12 is kinda broken
I refer you to my original bug report: "tetex-1.0.7-r12 is broken by the latest libpng changes (libpng-1.0.15 libpng-1.2.5-r2)." I've *already* got 1.0.15 and 1.2.5-r2 ... pihl
Hi Phil. Thank you for yur report. Well, looks like you got bitten by the autoclean upon upgrading to a correctly inplemented libpng-1.0.15. This version was "fixed" to create mangled .h's and symlinks, thus no more owervriting png.h from 1.2.x series when it gets installed afterwards (as graphviz dependency). Now, I would bet that you had libpng-1.0.12 installed *and* did not remerge libpng-1.2.5 after that (otherwise the symlink would not have been removed). This caused the removal of png.h symlink upon emerging libpng-1.0.15 (due to the fact, that 1.0.15 was fixed *not* to overwrite png.h thus makeing it happily coexist with 1.2 series) causing this havoc. The solution would be to emerge libpng-1.2.5 afterwards, or just create the proper symlink manually. I have added a warning to to pkg_postinst of libpng-1.0.15 and also revision bumped libpng-1.2.5 to force remerge. This should solve it. George
Yeah, re-emerging did solve it. You can close this one.
db fix