This commit is contained in:
parent
6a9e762b0c
commit
f286d98283
@ -107,48 +107,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
--- prog/dump/isadump.c
|
|
||||||
+++ prog/dump/isadump.c 2006-02-28 13:05:01.000000000 +0100
|
|
||||||
@@ -35,15 +35,26 @@
|
|
||||||
#include "util.h"
|
|
||||||
#include "superio.h"
|
|
||||||
|
|
||||||
-
|
|
||||||
/* To keep glibc2 happy */
|
|
||||||
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0
|
|
||||||
-#include <sys/io.h>
|
|
||||||
+# if !defined(__sparc__) && !defined(__sparc64__) && !defined(__powerpc__)
|
|
||||||
+# include <sys/io.h>
|
|
||||||
+# else
|
|
||||||
+#ifdef __powerpc__
|
|
||||||
+#define __KERNEL__
|
|
||||||
+#define CONFIG_ALL_PPC
|
|
||||||
+#endif
|
|
||||||
+# include <asm/io.h>
|
|
||||||
+#ifdef __powerpc__
|
|
||||||
+#undef __KERNEL__
|
|
||||||
+#undef CONFIG_ALL_PPC
|
|
||||||
+#endif
|
|
||||||
+# endif
|
|
||||||
#else
|
|
||||||
-#include <asm/io.h>
|
|
||||||
+# include <asm/io.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#ifdef __powerpc__
|
|
||||||
+#if defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__)
|
|
||||||
unsigned long isa_io_base = 0; /* XXX for now */
|
|
||||||
#endif /* __powerpc__ */
|
|
||||||
|
|
||||||
@@ -242,7 +253,7 @@ int main(int argc, char *argv[])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifndef __powerpc__
|
|
||||||
+#if !defined(__sparc__) && !defined(__sparc64__) && !defined(__powerpc__)
|
|
||||||
if ((datareg < 0x400) && (addrreg < 0x400) && !flat) {
|
|
||||||
if (ioperm(datareg, 1, 1)) {
|
|
||||||
fprintf(stderr, "Error: Could not ioperm() data "
|
|
||||||
--- prog/init/README
|
--- prog/init/README
|
||||||
+++ prog/init/README 2006-02-28 13:05:01.000000000 +0100
|
+++ prog/init/README 2006-02-28 13:05:01.000000000 +0100
|
||||||
@@ -10,7 +10,7 @@ The script lm_sensors.init is a nice sta
|
@@ -10,7 +10,7 @@ The script lm_sensors.init is a nice sta
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- Makefile
|
|
||||||
+++ Makefile
|
|
||||||
@@ -155,7 +155,7 @@
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
SRCDIRS += kernel/include
|
|
||||||
-SRCDIRS += lib prog/detect prog/dump prog/eeprom prog/pwm \
|
|
||||||
+SRCDIRS += lib prog/detect prog/eeprom prog/pwm \
|
|
||||||
prog/sensors prog/xeon ${PROG_EXTRA:%=prog/%} etc
|
|
||||||
|
|
||||||
# Some often-used commands with default options
|
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 12 10:55:19 CEST 2007 - jdelvare@suse.de
|
||||||
|
|
||||||
|
- lm_sensors-2.8.3-nodump.patch: Removed, should no longer be
|
||||||
|
needed. Since lm_sensors 2.8.6, isadump is only compiled on i386
|
||||||
|
and x86_64.
|
||||||
|
- Likewise, no need to patch prog/dump/isadump.c for powerpc,
|
||||||
|
as it won't be compiled for these architectures anyway.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 5 17:15:43 CEST 2007 - werner@suse.de
|
Thu Apr 5 17:15:43 CEST 2007 - werner@suse.de
|
||||||
|
|
||||||
|
17
sensors.spec
17
sensors.spec
@ -14,7 +14,7 @@ Name: sensors
|
|||||||
BuildRequires: bison flex rrdtool sysfsutils udev
|
BuildRequires: bison flex rrdtool sysfsutils udev
|
||||||
URL: http://www.lm-sensors.org/
|
URL: http://www.lm-sensors.org/
|
||||||
Version: 2.10.3
|
Version: 2.10.3
|
||||||
Release: 1
|
Release: 3
|
||||||
Summary: Hardware health monitoring for Linux
|
Summary: Hardware health monitoring for Linux
|
||||||
License: GNU General Public License (GPL)
|
License: GNU General Public License (GPL)
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
@ -23,14 +23,8 @@ Autoreqprov: on
|
|||||||
Source0: lm_sensors-2.10.3.tar.bz2
|
Source0: lm_sensors-2.10.3.tar.bz2
|
||||||
Source1: README.SuSE
|
Source1: README.SuSE
|
||||||
Patch: lm_sensors-2.10.3.dif
|
Patch: lm_sensors-2.10.3.dif
|
||||||
Patch1: lm_sensors-2.8.3-nodump.patch
|
|
||||||
Patch2: lm_sensors-2.7.0-kernelheaders.dif
|
Patch2: lm_sensors-2.7.0-kernelheaders.dif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%ifarch %ix86 x86_64 ia64 alpha
|
|
||||||
%define we_have_isa 1
|
|
||||||
%else
|
|
||||||
%define we_have_isa 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package includes programs that show data from some sensor chips.
|
This package includes programs that show data from some sensor chips.
|
||||||
@ -56,9 +50,6 @@ Authors:
|
|||||||
%prep
|
%prep
|
||||||
%setup -n lm_sensors-%{version}
|
%setup -n lm_sensors-%{version}
|
||||||
%patch
|
%patch
|
||||||
%if !%{we_have_isa}
|
|
||||||
%patch1
|
|
||||||
%endif
|
|
||||||
%patch2
|
%patch2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -118,6 +109,12 @@ rm -f $RPM_BUILD_ROOT/usr/src/linux/include/sensors.h
|
|||||||
%doc /usr/share/man/man8/*.8.gz
|
%doc /usr/share/man/man8/*.8.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 12 2007 - jdelvare@suse.de
|
||||||
|
- lm_sensors-2.8.3-nodump.patch: Removed, should no longer be
|
||||||
|
needed. Since lm_sensors 2.8.6, isadump is only compiled on i386
|
||||||
|
and x86_64.
|
||||||
|
- Likewise, no need to patch prog/dump/isadump.c for powerpc,
|
||||||
|
as it won't be compiled for these architectures anyway.
|
||||||
* Thu Apr 05 2007 - werner@suse.de
|
* Thu Apr 05 2007 - werner@suse.de
|
||||||
- Update to lm_sensors version 2.10.3 which added support for
|
- Update to lm_sensors version 2.10.3 which added support for
|
||||||
recent devices and support for kernel 2.6.22.
|
recent devices and support for kernel 2.6.22.
|
||||||
|
Loading…
Reference in New Issue
Block a user