Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 199408 Details for
Bug 279423
net-analyzer/net-snmp-5.4.2.1 revamp + add =sys-apps/lm_sensors-3* support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
net-snmp-5.4.1-sensors3-version_detect.patch
net-snmp-5.4.1-sensors3-version_detect.patch (text/plain), 1.36 KB, created by
Gordon Malm (RETIRED)
on 2009-07-28 04:48:23 UTC
(
hide
)
Description:
net-snmp-5.4.1-sensors3-version_detect.patch
Filename:
MIME Type:
Creator:
Gordon Malm (RETIRED)
Created:
2009-07-28 04:48:23 UTC
Size:
1.36 KB
patch
obsolete
>From: Gordon Malm <gengor@gentoo.org> > >Detect lm_sensors version and build accordingly. > >--- a/agent/mibgroup/hardware/sensors.h >+++ b/agent/mibgroup/hardware/sensors.h >@@ -1,13 +1,21 @@ > config_require(hardware/sensors/hw_sensors) > > #if defined(solaris) >+ > # if defined(HAVE_PICL_H) > config_require(hardware/sensors/picld_sensors) > # else > config_require(hardware/sensors/kstat_sensors) > # endif >+ > #else >+ >+# if defined(HAVE_LMSENSORS_V2) >+config_require(hardware/sensors/lmsensors_v2) >+# else > config_require(hardware/sensors/lmsensors_v3) >+# endif >+ > #endif > > //config_require(hardware/sensors/dummy_sensors) >--- a/configure.in >+++ b/configure.in >@@ -1909,6 +1909,25 @@ done > > AC_MSG_RESULT([$new_module_list.]) > >+echo " $new_module_list " | $GREP "ucd-snmp/lmsensorsMib" > /dev/null >+if test $? -eq 0 ; then >+ case $target_os in >+ linux*) >+ AC_CHECK_HEADER(sensors/sensors.h,,[AC_MSG_ERROR([asked to use lm_sensors but I couldn't find sensors/sensors.h])]) >+ >+ AC_MSG_CHECKING([lm_sensors version]) >+ AC_EGREP_CPP(lmsensors_v2,[ >+#include <sensors/sensors.h> >+#if SENSORS_API_VERSION < 0x400 >+lmsensors_v2 >+#endif >+ ], [AC_DEFINE([HAVE_LMSENSORS_V2], [1], [Define if lm_sensors version 2.x])] >+ have_lmsensors_ver="2.x", have_lmsensors_ver="3.x or higher") >+ AC_MSG_RESULT([$have_lmsensors_ver]) >+ ;; >+ esac >+fi >+ > #--------------------- > # loop over module list > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279423
:
199404
|
199406
| 199408 |
199410
|
199411
|
199413