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.
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...
support for 2.6 kernels are in since lm-sensors-2.8.2.