Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439534 - net-analyzer/net-snmp-5.7.2_rc1 needs to support the pci USE flag
Summary: net-analyzer/net-snmp-5.7.2_rc1 needs to support the pci USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-24 17:31 UTC by edoceo
Modified: 2012-10-25 23:30 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 edoceo 2012-10-24 17:31:35 UTC
Ihe pci USE flag has disappeared in _rc1 of this package.

I run some Gentoo systems on Linode and their supplied kernels don't have 

CONFIG_PCI=y

Which makes /proc/bus/pic not exist.
And when /proc/bus/pci is empty it causes snmpd to not run, it exit (status 1) when trying.

---
~ # snmpd
pcilib: Cannot open /proc/bus/pci
pcilib: Cannot find any working access method.
---

But if the $(use_with pci) use flag code is added back to the mix then we can build w/o PCI links and run on machines that don't have PCI enabled in the kernel (which I think is odd)

I had mentioned this on #431752 but this is the formal request.  Diego said it's fixed in 5.7.1 (which is older and not in the tree) https://bugs.gentoo.org/show_bug.cgi?id=431752#c12

Please bring back USE="pci" ability for _rc2

Reproducible: Always

Steps to Reproduce:
1. Emerge net-snmp on system w/o CONFIG_PCI
2. Fails to start
3.
Actual Results:  
1. Emerge net-snmp on system w/o CONFIG_PCI
2. Fails to start

Expected Results:  
net-snmp can be build w/o binding to pciutils so that it can run on machines w/o PCI bus.

Most of these system that lack /proc/bus/pci are virtual-hosts (or slices) where the vendor has really "tuned" the kernel.  It's more difficult to get a custom kernel with those vendors than it is to do USE="-pci"
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-10-24 17:44:49 UTC
I told you the USE flag is already there for 5.7.1.

*** This bug has been marked as a duplicate of bug 432926 ***
Comment 2 edoceo 2012-10-25 20:44:06 UTC
This doesn't appear to be fixed.

I've recently synced, /usr/portage/net-analyzer/net-snmp/net-snmp-5.7.2_rc1.ebuild

Is shown as stable:
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"

But it still forces usage of pciutils

COMMON="ssl? ( >=dev-libs/openssl-0.9.6d )
        tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
        rpm? (
                app-arch/rpm
                dev-libs/popt
        )
        bzip2? ( app-arch/bzip2 )
        zlib? ( >=sys-libs/zlib-1.1.4 )
        elf? ( dev-libs/elfutils )
        python? ( dev-python/setuptools )
        sys-apps/pciutils
        lm_sensors? ( sys-apps/lm_sensors )"
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-10-25 20:48:40 UTC
It's NOT on rc1.
Comment 4 edoceo 2012-10-25 23:30:34 UTC
Ok, I think I get it, perhaps you meant 5.7.2; which is not yet stable but has the proper use flag support.