Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31598 - net-snmp-5.0.9-r2 has wrong RDEPEND
Summary: net-snmp-5.0.9-r2 has wrong RDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Max Kalika (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-20 08:07 UTC by Gustavo Zacarias (RETIRED)
Modified: 2003-10-21 06:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Zacarias (RETIRED) gentoo-dev 2003-10-20 08:07:15 UTC
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 )".
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-10-20 08:16:24 UTC
gentoo policy: mark stable after 3 weeks if there are no open bugs
so what do you expact ?
Comment 2 Gustavo Zacarias (RETIRED) gentoo-dev 2003-10-20 08:50:02 UTC
I just made that comment because by being stable it can do unnecesary emerges,
just to take that into consideration.
Comment 3 Andy Dustman 2003-10-20 09:46:55 UTC
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() {
Comment 4 Andy Dustman 2003-10-20 09:54:13 UTC
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.
Comment 5 Andy Dustman 2003-10-20 11:35:33 UTC
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.
Comment 6 Andy Dustman 2003-10-20 11:38:41 UTC
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.
Comment 7 Max Kalika (RETIRED) gentoo-dev 2003-10-20 11:41:06 UTC
5.8.1 is still in very much flux and development. The libperl dependency
is correct.  Please post your emerge --info screen.
Comment 8 Andy Dustman 2003-10-20 11:50:54 UTC
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"
 
Comment 9 Max Kalika (RETIRED) gentoo-dev 2003-10-20 22:02:12 UTC
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.
Comment 10 Gustavo Zacarias (RETIRED) gentoo-dev 2003-10-21 06:57:00 UTC
Good, it's working fine on an X-less firewall machine now.
Thanks.