net-snmp-5.0.9-r2 tries to emerge XFree if you have perl for perl-tk. It should check for the tcltk USE flag or the X USE flag instead. And it's marked stable as of today, which is a bad thing(tm). Reproducible: Always Steps to Reproduce: emerge -p net-snmp on non-xfree machine. Possible fix: change "perl? ( dev-perl/perl-tk )" in the ebuild to "tcltk? ( dev-perl/perl-tk )".
gentoo policy: mark stable after 3 weeks if there are no open bugs so what do you expact ?
I just made that comment because by being stable it can do unnecesary emerges, just to take that into consideration.
The following patch avoids the dev-perl/perl-tk dependency unless both perl and tktcl USE flags are set. I was pleasantly surprised that this worked... --- net-snmp-5.0.9-r2.ebuild.orig 2003-10-20 03:01:39.000000000 -0400 +++ net-snmp-5.0.9-r2.ebuild 2003-10-20 12:43:08.432521000 -0400 @@ -20,7 +20,7 @@ tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) ssl? ( >=dev-libs/openssl-0.9.6d )" RDEPEND="${DEPEND} - perl? ( dev-perl/perl-tk ) + perl? ( tktcl? ( dev-perl/perl-tk ) ) !virtual/snmp" src_compile() {
It seems the reason this showed up today is that the dependency was only added about 10 hrs ago. I see you have a different fix in CVS now.
Another problem related to this ebuild: a sandbox violation ACCESS DENIED mkdir: /usr/lib/perl5/site_perl/5.8.0/i686-linux/auto mkdir /usr/lib/perl5/site_perl/5.8.0/i686-linux/auto: Permission denied at /usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 137 make[1]: *** [pure_site_install] Error 255 make[1]: Leaving directory `/var/tmp/portage/net-snmp-5.0.9-r2/work/net-snmp-5.0.9/perl' make: *** [perlinstall] Error 1 !!! ERROR: net-analyzer/net-snmp-5.0.9-r2 failed. !!! Function src_install, Line 56, Exitcode 2 !!! make perlinstall failed --------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-net-snmp-5.0.9-r2-23060.log" mkdir: /usr/lib/perl5/site_perl/5.8.0/i686-linux/auto -------------------------------------------------------------------------------- This happens with both the old and new ebuild, i.e. revision 1.4. Your fix for -X is fine, though.
These are my perl versions (latest stable): sys-devel/libperl-5.8.0 * dev-lang/perl-5.8.0-r12 * Maybe you need to add: perl? ( >=dev-lang/perl-5.8.1 ) I suspect the current 5.8.0 stable perl is what is breaking the build.
5.8.1 is still in very much flux and development. The libperl dependency is correct. Please post your emerge --info screen.
Portage 2.0.49-r13 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test7) ================================================================= System uname: 2.6.0-test7 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O2 -fstack-protector -falign-jumps=5 -falign-loops=5 -falign-functions=33 -finline-functions -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium2 -O2 -fstack-protector -falign-jumps=5 -falign-loops=5 -falign-functions=33 -finline-functions -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt cups encode foomaticdb gif imlib jpeg libg++ libwww mad mikmod mpeg ncurses nls oggvorbis opengl pdflib png quicktime sdl spell truetype xml2 xmms xv zlib gdbm berkdb slang readline mysql gpm tcpd pam ssl perl python -X -gnome -gtk -kde -qt -svga -motif innodb ldap -java kerberos -tcl"
Ok, this is really two bugs in one, but as we already resolved the RDEPEND issue, I also fixed the sandbox problem. Added DEPEND on >=ExtUtils-MakeMaker-6.11-r1. Please give net-snmp-5.0.9-r2 another go.
Good, it's working fine on an X-less firewall machine now. Thanks.