Hi Netmon Herd, I've written an =net-analyzer/net-snmp-5.4.2.1-r2 with a bunch of needed updates, including adding support for building against =sys-apps/lm_sensors-3*. A lot of newer sensor chips only have support via lm_sensors-3 and it has been hardmasked (due to API changes creating build issues) for way too long. sys-apps/net-snmp is one of the last remaining ebuilds to not build against it. Quick summary: -Switch to EAPI=2 -General QA/small stuff (readability adjustments, die, etc.) -Wrap lm_sensors depend in kernel_linux (semi-dupe #234036) -Allow USE flags bzip2/zlib independent of USE rpm (semi-dupe #234036) -Use net-snmp's own build/install for perl/python modules (semi-dupe #234036) -Add support for building with =sys-apps/lm_sensors-3*, while remaining =sys-apps/lm_sensors-2* compat. -snmpd init script: Add reload capability (semi-dupe #273827). -snmpd/snmptrapd init scripts: Use ${SVCNAME}, allow pid file location override capability (looks nicer, keeps style consistency between the two init scripts ;). Files incoming....
Created attachment 199404 [details] net-snmp-5.4.2.1-r2.ebuild net-snmp-5.4.2.1-r2.ebuild
Created attachment 199406 [details, diff] net-snmp-5.4.1-sensors3.patch net-snmp-5.4.1-sensors3.patch Source: http://cvs.fedoraproject.org/viewvc/devel/net-snmp/net-snmp-5.4.1-sensors3.patch Adds support for lm_sensors-3. Latest from upstream and unmodified except for a "Source:" comment added at the top.
Created attachment 199408 [details, diff] net-snmp-5.4.1-sensors3-version_detect.patch net-snmp-5.4.1-sensors3-version_detect.patch Add automatic lm_sensors version detection to the build process and build accordingly (libsensorsMib tries to use the lmsensors_v3 module *all* the time).
Created attachment 199410 [details] snmpd.init
Created attachment 199411 [details] snmptrapd.init
Created attachment 199413 [details] Unified diff of changes vs. current net-snmp-5.4.2.1-r1 Unified diff of changes vs. current net-snmp-5.4.2.1-r1 (cause sometimes its easier to review a diff ;)
bump
Haven't heard anything from netmon, so unless someone objects (and fast) I'm going to revbump net-analyzer/net-snmp using this real soon.
Gordon there is one problem... There is already some work done that's currently not in the tree... Well let me 5 days to check what to do best and if I answer nothing here bump your package on 22.08 :) Thank you for your work.
This is about the only blocker for most people using lm_sensors, isn't it about time to commit this to tree?
(In reply to comment #9) > Gordon there is one problem... There is already some work done that's currently > not in the tree... Well let me 5 days to check what to do best and if I answer > nothing here bump your package on 22.08 :) Thank you for your work. > I didn't see anything in net-snmp cvs/svn/whatever upstream for lm_sensors building auto-detect logic. Perhaps there is now (or I missed it)? I believe most distros are just statically building/choosing lm_sensors-3.x or lm_sensors-2.x (via old the old MIB) support as they have that luxury.
5 days is long gone. I really want to upgrade lm-sensors. Please, lets move on this. If you feel more comfortable, add it to the tree masked for testing purposes.
Committed and removed lm_sensors-3 from package.mask. Closing as FIXED.