Skip to content
Commits on Source (2)
mate-applets (1.22.1-2) unstable; urgency=medium
[ Frédéric Bonnard ]
* Switch to libcpupower usage. (Closes: #930783).
-- Mike Gabriel <sunweaver@debian.org> Fri, 09 Aug 2019 10:56:01 +0200
mate-applets (1.22.1-1) unstable; urgency=medium
[ Martin Wimpress ]
......
......@@ -13,7 +13,7 @@ Build-Depends: cdbs,
dh-exec,
dpkg-dev (>= 1.16.1.1),
intltool,
libcpufreq-dev,
libcpupower-dev,
libdbus-1-dev,
libdbus-glib-1-dev,
libglib2.0-dev,
......
Description: Fix building on systems with Linux >= 4.7
Author: Martin Wimpress <code@flexion.org>
diff -rupN a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c
--- a/cpufreq/src/cpufreq-monitor-libcpufreq.c
+++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c
@@ -111,11 +111,7 @@ cpufreq_monitor_libcpufreq_run (CPUFreqM
/* Check whether it failed because
* cpu is not online.
*/
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
if (!cpufreq_cpu_exists (cpu)) {
-#else
- if (cpupower_is_cpu_online (cpu)) {
-#endif
g_object_set (G_OBJECT (monitor), "online", FALSE, NULL);
return TRUE;
}
1000-fix-build-on-linux-4.7-or-newer.patch
......@@ -23,7 +23,7 @@ DEB_CONFIGURE_EXTRA_FLAGS += \
--libexecdir=/usr/lib/mate-applets \
--localstatedir=/var \
--disable-static \
--with-cpufreq-lib=cpufreq
--with-cpufreq-lib=cpupower
common-install-indep:: remove-cruft
common-install-arch:: remove-cruft
......