[mate-applets] 03/04: debian/patches: Add 1000-fix-build-on-linux-4.7-or-newer.patch.
Martin Wimpress
flexiondotorg-guest at moszumanska.debian.org
Sat Sep 24 23:58:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
flexiondotorg-guest pushed a commit to branch master
in repository mate-applets.
commit f9aa59715407f1b792f95b590c549f47e13d9e9d
Author: Martin Wimpress <code at flexion.org>
Date: Sat Sep 24 23:25:38 2016 +0100
debian/patches: Add 1000-fix-build-on-linux-4.7-or-newer.patch.
---
.../patches/1000-fix-build-on-linux-4.7-or-newer.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/1000-fix-build-on-linux-4.7-or-newer.patch b/debian/patches/1000-fix-build-on-linux-4.7-or-newer.patch
new file mode 100644
index 0000000..349d9d3
--- /dev/null
+++ b/debian/patches/1000-fix-build-on-linux-4.7-or-newer.patch
@@ -0,0 +1,18 @@
+Description: Fix building on systems with Linux >= 4.7
+Author: Martin Wimpress <code at 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;
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6692119
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1000-fix-build-on-linux-4.7-or-newer.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-applets.git
More information about the pkg-mate-commits
mailing list