Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71112 - net-snmp 5.1.1-r1 ebuild's 'lm_sensors' USE flag incompatible with 2.6.x kernel
Summary: net-snmp 5.1.1-r1 ebuild's 'lm_sensors' USE flag incompatible with 2.6.x kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-13 19:01 UTC by Jesse D. Guardiani
Modified: 2004-12-04 08:23 UTC (History)
0 users

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


Attachments
This patch breaks the lm-sensors ebuild dep and makes it possible to build net-snmp with lm_sensors USE flag under a 2.6.x kernel (net-snmp-5.1.1-r1.ebuild.lm_sensors.2_6_kernel.patch,378 bytes, patch)
2004-11-13 19:04 UTC, Jesse D. Guardiani
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse D. Guardiani 2004-11-13 19:01:28 UTC
The lm-sensors ebuild cannot be built with a 2.6.x kernel because the 2.6.x kernel already comes with the chip modules and the `sensors` and `sensors-detect` programs. Therefore, the lm-sensors ebuild dependency in the current net-snmp 5.1.1-r1 ebuild makes it difficult to build net-snmp under a 2.6.x kernel. I had to apply the following patch which breaks the lm-sensors ebuild dependency to get it working with my 2.6.9-r1 kernel.

Reproducible: Always
Steps to Reproduce:
1. build and install 2.6.x kernel with i2c and sensor chip support
2. run `sensors-detect` and get sensors working
3. add "lm_sensors" to global USE flags in /etc/make.conf and `emerge net-snmp`

Actual Results:  
net-snmp ebuild then attempts to build lm-sensors ebuild and deps, which are
unnecessary and won't build properly with a 2.6 kernel.

Expected Results:  
Instead, net-snmp ebuild should have detected presense of 2.6 kernel and skipped
lm-sensors ebuild dependency, while still patching according to lm_sensors USE flag.
Comment 1 Jesse D. Guardiani 2004-11-13 19:04:05 UTC
Created attachment 43899 [details, diff]
This patch breaks the lm-sensors ebuild dep and makes it possible to build net-snmp with lm_sensors USE flag under a 2.6.x kernel

However, this isn't a good long-term solution...
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2004-12-04 08:23:06 UTC
support for 2.6 kernels are in since lm-sensors-2.8.2.