68ae91179e
incompatible types have been changed in the callee in package rrdtool too, which means that there is a type incompatibility again. Because the other change reportedly makes more snese, I'm dropping this one. I am sorry for the noise, for removing a patch just after adding it. But as explained in an email, when fixing dozens of packages, it is not really possible for me to assume that call targets in another packages might be a better place to address this. If the request is OK, please forward it to Factory soon too so that it does not blocking switching to GCC 14. Thanks! OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=127
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
From c4b5b7114a43b771331a68317c46644aef42ebb5 Mon Sep 17 00:00:00 2001
|
|
From: "jdelvare@suse.de" <jdelvare@suse.de>
|
|
Date: Tue, 14 Oct 2008 14:34:53 +0200
|
|
Subject: [PATCH 04/11] lm_sensors-3.0.3-hint-at-kernel-extra-package
|
|
|
|
---
|
|
prog/detect/sensors-detect | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
|
|
index fed2b3b6..f5b890ba 100755
|
|
--- a/prog/detect/sensors-detect
|
|
+++ b/prog/detect/sensors-detect
|
|
@@ -3090,13 +3090,16 @@ sub initialize_conf
|
|
# [2] -> SUBLEVEL
|
|
# [3] -> EXTRAVERSION
|
|
#
|
|
-use vars qw($kernel_version @kernel_version $kernel_arch);
|
|
+use vars qw($kernel_version @kernel_version $kernel_flavor $kernel_arch);
|
|
|
|
sub initialize_kernel_version
|
|
{
|
|
chomp($kernel_version = `uname -r`);
|
|
$kernel_version =~ /(\d+)\.(\d+)\.(\d+)(.*)/;
|
|
@kernel_version = ($1, $2, $3, $4);
|
|
+ if ($kernel_version[3] =~ /-([a-z]+)$/) {
|
|
+ chomp($kernel_flavor = $1);
|
|
+ }
|
|
chomp($kernel_arch = `uname -m`);
|
|
|
|
# We only support kernels >= 2.6.5
|
|
@@ -7389,6 +7392,9 @@ sub generate_modprobes
|
|
print "Warning: the required module $driver is not currently installed\n".
|
|
"on your system. Check https://hwmon.wiki.kernel.org/device_support_status for\n".
|
|
"driver availability.\n\n";
|
|
+ print "You may need to install package kernel-$kernel_flavor-extra for\n".
|
|
+ "lm-sensors to work properly.\n\n" if $kernel_flavor;
|
|
+
|
|
} else {
|
|
$hwmon_modules{$driver}++
|
|
unless hwmon_is_autoloaded($driver);
|
|
--
|
|
2.43.0
|
|
|