Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536212 - net-analyzer/net-snmp USE=-perl installs perl scripts / should conditionally depend on dev-lang/perl
Summary: net-analyzer/net-snmp USE=-perl installs perl scripts / should conditionally ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-10 14:48 UTC by Bruno
Modified: 2015-02-14 17:37 UTC (History)
0 users

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 Bruno 2015-01-10 14:48:43 UTC
When installing net-snmp with USE=-perl it should not (runtime) depend on perl.

emerge net-snmp:
net-analyzer/net-snmp-5.7.3_pre5-r1 to /mnt/aphrodite/ USE="bzip2 ipv6 minimal ssl zlib -X -doc -elf -lm_sensors -mfd-rewrites -mysql -netlink -pci -perl -python -rpm (-selinux) -tcpd -ucd-compat" PYTHON_TARGETS="python2_7"


Perl dependency is added by perl-module eclass, unconditionally.

Files installed which need perl:
/usr/share/snmp/snmp_perl_trapd.pl
/usr/bin/ipf-mod.pl
/usr/bin/net-snmp-cert
/usr/bin/snmp-bridge-mib

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-19 11:43:22 UTC
What if you then remove dev-lang/perl - do snmpd and snmptrapd it still run as expected? Because the hard dependency on dev-lang/perl might happen to be correct in that case.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-19 11:48:24 UTC
# grep '#!.*perl' `qlist -eo net-snmp`
/usr/bin/fixproc:#!/usr/bin/perl
/usr/bin/snmp-bridge-mib:#!/usr/bin/perl
/usr/bin/snmpconf:#!/usr/bin/perl
/usr/bin/ipf-mod.pl:#!/usr/bin/perl
/usr/bin/net-snmp-cert:#!/usr/bin/perl
/usr/bin/traptoemail:#!/usr/bin/perl
/usr/share/snmp/mib2c.perl.conf:#!/usr/bin/perl -w
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-19 11:58:25 UTC
I'll do some testing with an improved ebuild. The current ebuilds already remove some perl scripts, so we should just extend that and set a magical variable to remove the hard-coded dev-lang/perl dependency inherited from perl-module.eclass and then re-add the dependency conditionally in the ebuild.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-19 15:10:10 UTC
Please try with -r3.
Comment 5 Bruno 2015-02-14 17:37:04 UTC
(In reply to Jeroen Roovers from comment #4)
> Please try with -r3.

Works for me, thanks