From 019195a7098a63fb07e7256fcfd2839f3ec00679 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 13 Dec 2007 14:09:18 +0000 Subject: [PATCH] - Fix sensord rdd mode (patch send in by upstream) --- lm_sensors-3.0.0-sensord.patch | 13 +++++++++++++ lm_sensors.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 lm_sensors-3.0.0-sensord.patch diff --git a/lm_sensors-3.0.0-sensord.patch b/lm_sensors-3.0.0-sensord.patch new file mode 100644 index 0000000..1c0a157 --- /dev/null +++ b/lm_sensors-3.0.0-sensord.patch @@ -0,0 +1,13 @@ +--- lm-sensors-3.0.0/prog/sensord/rrd.c (revision 4849) ++++ lm-sensors-3.0.0/prog/sensord/rrd.c (revision 5069) +@@ -157,8 +157,8 @@ + for (index0 = 0; (ret == 0) && (num < MAX_RRD_SENSORS) && features[index0].format; ++ index0) { + const FeatureDescriptor *feature = features + index0; +- const char *rawLabel = features->feature->name; ++ const char *rawLabel = feature->feature->name; + char *label = NULL; + +- if (!(label = sensors_get_label (chip, features->feature))) { ++ if (!(label = sensors_get_label (chip, feature->feature))) { + sensorLog (LOG_ERR, "Error getting sensor label: %s/%s", chip->prefix, rawLabel); + ret = -1; diff --git a/lm_sensors.spec b/lm_sensors.spec index b493620..f3d9112 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 3.0.0 -Release: 1%{?dist} +Release: 2%{?dist} URL: http://www.lm-sensors.org/ Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2 Source1: lm_sensors.sysconfig @@ -8,6 +8,7 @@ Source1: lm_sensors.sysconfig Source2: sensord.sysconfig Source3: sensord.init Patch0: lm_sensors-2.10.4-service-default-off.patch +Patch1: lm_sensors-3.0.0-sensord.patch Summary: Hardware monitoring tools Group: Applications/System License: GPLv2+ @@ -50,6 +51,7 @@ database, and warns of sensor alarms. %prep %setup -q %patch0 -p1 +%patch1 -p1 mv prog/init/README prog/init/README.initscripts chmod -x prog/init/fancontrol.init @@ -163,6 +165,9 @@ fi %changelog +* Thu Dec 13 2007 Hans de Goede 3.0.0-2 +- Fix sensord rdd mode (patch send in by upstream) + * Sat Nov 24 2007 Hans de Goede 3.0.0-1 - New upstream release 3.0.0 (final)