diff --git a/lm_sensors-3.3.4-sensors-detect-ppc-missing-vendor_id.patch b/lm_sensors-3.3.4-sensors-detect-ppc-missing-vendor_id.patch new file mode 100644 index 0000000..5fb0671 --- /dev/null +++ b/lm_sensors-3.3.4-sensors-detect-ppc-missing-vendor_id.patch @@ -0,0 +1,11 @@ +diff -Naur lm_sensors-3.3.4.orig/prog/detect/sensors-detect lm_sensors-3.3.4/prog/detect/sensors-detect +--- lm_sensors-3.3.4.orig/prog/detect/sensors-detect 2013-08-07 09:46:59.000000000 -0400 ++++ lm_sensors-3.3.4/prog/detect/sensors-detect 2013-09-09 13:59:09.753266033 -0400 +@@ -2657,6 +2657,7 @@ + if (m/^processor\s*:\s*(\d+)/) { + push @cpu, $entry if scalar keys(%{$entry}); # Previous entry + $entry = { nr => $1 }; # New entry ++ $entry->{vendor_id} = "undefined"; + next; + } + if (m/^(vendor_id|cpu family|model|model name|stepping|cpuid level)\s*:\s*(.+)$/) { diff --git a/lm_sensors.spec b/lm_sensors.spec index 37e8492..4f65391 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 3.3.4 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Hardware monitoring tools Group: Applications/System License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public domain @@ -17,6 +17,7 @@ Source4: lm_sensors-modprobe-r Patch0: lm_sensors-3.3.4-sensors-detect-null-input.patch Patch1: lm_sensors-3.3.4-lm_sensors-service-modprobe-warnings.patch Patch2: lm_sensors-3.3.4-man-sensors-conf-conv.patch +Patch3: lm_sensors-3.3.4-sensors-detect-ppc-missing-vendor_id.patch %ifarch %{ix86} x86_64 Requires: /usr/sbin/dmidecode @@ -64,6 +65,7 @@ database, and warns of sensor alarms. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 mv prog/init/README prog/init/README.initscripts chmod -x prog/init/fancontrol.init @@ -169,6 +171,10 @@ fi %changelog +* Mon Sep 09 2013 Jaromir Capik - 3.3.4-8 +- Fixing use of uninitialized 'vendor_id' value on ppc (#996590) +- Fixing bogus date in the changelog + * Wed Aug 07 2013 Jaromir Capik - 3.3.4-7 - Fixing the license tag @@ -408,7 +414,7 @@ fi * Tue Nov 08 2005 Phil Knirsch 2.9.1-5 - Fixed lm_sensors pwmconfig patch. -* Tue Sep 01 2005 Phil Knirsch 2.9.1-4 +* Thu Sep 01 2005 Phil Knirsch 2.9.1-4 - Fixed CAN-2005-2672 lm_sensors pwmconfig insecure temporary file usage (#166673) - Fixed missing optflags during build (#166910)