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
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.
# 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
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.
Please try with -r3.
(In reply to Jeroen Roovers from comment #4) > Please try with -r3. Works for me, thanks