I've found that mrtg doesn't compile. Emerging mrtg stops at configure time. It claims for no gd presence. I have found that to make mrtg compile correctly these USE flags are needed: gd png jpeg May be jpeg is not necessary. I don't know. But by adding those three USE flags I was able to build correctly mrtg. Hope this is useful. Gabriele Scigliano. Reproducible: Always Steps to Reproduce: 1.emerge -pD mrtg (here it will show, if you have no gd,jpeg,png USE flag) that libgd and mrtg should be emerged. In fact /usr/portage/net-analyzer/mrtg/mrtg-2.9.29.ebuild is like this: DEPEND="virtual/glibc dev-lang/perl >=media-libs/libgd-1.8.3" 2.Only libgd will compile correctly. Mrtg compilation will fail. 3.Add "gd png jpeg" to USE in /etc/make.conf May be "gd png" should work too. But not tested. Actual Results: Compilation did work. Expected Results: I think you should modify mrtg ebuild adding this: IUSE="gd png jpeg" emerge info Portage 2.0.50-r6 (hardened-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24- hardened) ================================================================= System uname: 2.4.24-hardened i686 Pentium II (Deschutes) Gentoo Base System version 1.4.9 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O -march=pentium2 -fomit-frame-pointer -pipe -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O -march=pentium2 -fomit-frame-pointer -pipe -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.tiscali.nl/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 berkdb crypt gd hardened ipv6 jpeg libwww maildir nls pam perl pic png python readline ssl tcpd x86 zlib"
This is a limitation in portage, where you can't check if a dependency has been compiled with certain USE options.
The matter is not what USE flags was a certain package compiled with, but the libnpg dependency. I suggested use of USE flags to acquaintance of the libpng dependency. Ok a very bad way. btw http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-unix-guide.html "libpng Is required by gd in order to produce PNG graphics files. Get it from: http://www.libpng.org/pub/png/src/ " So now the ebuild's DEPEND is set like this: DEPEND="virtual/glibc dev-lang/perl >=media-libs/libgd-1.8.3" I suggest DEPEND="virtual/glibc dev-lang/perl >=media-libs/libgd-1.8.3 media-libs/libpng" Gabriele Scigliano.
That still does not garantee that libgd is built with PNG support, and introduces a dependency that doesn't exist. Until portage has a way to check what USE flags something was built with, this bug (and many like it) have no solution.
Ok, thanks for your answer. Then I hope this feature will be soon in portage :) Gabriele Scigliano