From a4ac84217d393870de9731275947958537e8afa3 Mon Sep 17 00:00:00 2001 From: Nikola Pajkovsky Date: Wed, 31 Mar 2010 17:36:36 +0000 Subject: [PATCH] Resolved: 578527 - sensors-detect fails to detect --- lm_sensors-3.1.2-lm85.patch | 12 ++++++++++++ lm_sensors.spec | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 lm_sensors-3.1.2-lm85.patch diff --git a/lm_sensors-3.1.2-lm85.patch b/lm_sensors-3.1.2-lm85.patch new file mode 100644 index 0000000..1ff82a1 --- /dev/null +++ b/lm_sensors-3.1.2-lm85.patch @@ -0,0 +1,12 @@ +diff -up lm_sensors-3.1.2/prog/detect/sensors-detect.lm85 lm_sensors-3.1.2/prog/detect/sensors-detect +--- lm_sensors-3.1.2/prog/detect/sensors-detect.lm85 2010-03-31 17:07:22.339044681 +0200 ++++ lm_sensors-3.1.2/prog/detect/sensors-detect 2010-03-31 17:08:25.518920014 +0200 +@@ -558,7 +558,7 @@ use vars qw(@i2c_adapter_names); + i2c_detect => sub { adt7467_detect(@_, 3); }, + }, { + name => "Analog Devices ADT7467 or ADT7468", +- driver => "to-be-written", ++ driver => "lm85", + i2c_addrs => [0x2e], + i2c_detect => sub { adt7467_detect(@_, 0); }, + }, { diff --git a/lm_sensors.spec b/lm_sensors.spec index e21fae2..6e81169 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 3.1.2 -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 @@ -20,6 +20,8 @@ Requires(post): /sbin/ldconfig BuildRequires: kernel-headers >= 2.2.16, bison, libsysfs-devel, flex, gawk BuildRequires: rrdtool-devel +Patch0: lm_sensors-3.1.2-lm85.patch + %description The lm_sensors package includes a collection of modules for general SMBus access and hardware monitoring. @@ -55,6 +57,8 @@ database, and warns of sensor alarms. %prep %setup -q +%patch0 -p1 -b .lm85 + mv prog/init/README prog/init/README.initscripts chmod -x prog/init/fancontrol.init @@ -175,6 +179,10 @@ fi %changelog +* Wed Mar 31 2010 Nikola Pajkovsky - 3.1.2-2 +- patch lm_sensors-3.1.2-lm85.patch add into sensors-detect driver lm85 +- Resolved: 578527 - sensors-detect fails to detect + * Wed Feb 3 2010 Nikola Pajkovsky - 3.1.2-1 - new upstream release - drop sensors-detect, beacuse it was taken form svn(531126)