1 |
commit: c1cf6cd3d2ad87c5731653b4992101801d093167 |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 02:13:06 2016 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 02:13:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-mate.git/commit/?id=c1cf6cd3 |
7 |
|
8 |
mate-base/mate-applets: backport kernel 4.7 support |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
.../files/mate-applets-1.10.4-kernel-4.7.patch | 38 ++++++++++++++++++++++ |
13 |
...0.4-r1.ebuild => mate-applets-1.10.4-r2.ebuild} | 3 ++ |
14 |
...2.1-r1.ebuild => mate-applets-1.12.1-r2.ebuild} | 3 ++ |
15 |
3 files changed, 44 insertions(+) |
16 |
|
17 |
diff --git a/mate-base/mate-applets/files/mate-applets-1.10.4-kernel-4.7.patch b/mate-base/mate-applets/files/mate-applets-1.10.4-kernel-4.7.patch |
18 |
new file mode 100644 |
19 |
index 0000000..afe06dc |
20 |
--- /dev/null |
21 |
+++ b/mate-base/mate-applets/files/mate-applets-1.10.4-kernel-4.7.patch |
22 |
@@ -0,0 +1,38 @@ |
23 |
+From 1b4478eab642787c43601259611f7b27e0bb473b Mon Sep 17 00:00:00 2001 |
24 |
+From: leigh123linux <leigh123linux@××××××××××.com> |
25 |
+Date: Thu, 9 Jun 2016 10:06:34 +0100 |
26 |
+Subject: [PATCH] fix build with kernel-4.7 |
27 |
+ |
28 |
+--- |
29 |
+ cpufreq/src/cpufreq-monitor-libcpufreq.c | 9 ++++++++- |
30 |
+ 1 file changed, 8 insertions(+), 1 deletion(-) |
31 |
+ |
32 |
+diff --git a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c |
33 |
+index 40c44ba..5fe79fb 100644 |
34 |
+--- a/cpufreq/src/cpufreq-monitor-libcpufreq.c |
35 |
++++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c |
36 |
+@@ -23,8 +23,11 @@ |
37 |
+ #include <glib/gi18n.h> |
38 |
+ |
39 |
+ #include <stdlib.h> |
40 |
++#include <linux/version.h> |
41 |
+ #include <cpufreq.h> |
42 |
+- |
43 |
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) |
44 |
++#include <cpuidle.h> |
45 |
++#endif |
46 |
+ #include "cpufreq-monitor-libcpufreq.h" |
47 |
+ #include "cpufreq-utils.h" |
48 |
+ |
49 |
+@@ -111,7 +114,11 @@ cpufreq_monitor_libcpufreq_run (CPUFreqMonitor *monitor) |
50 |
+ /* Check whether it failed because |
51 |
+ * cpu is not online. |
52 |
+ */ |
53 |
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) |
54 |
+ if (!cpufreq_cpu_exists (cpu)) { |
55 |
++#else |
56 |
++ if (cpupower_is_cpu_online (cpu)) { |
57 |
++#endif |
58 |
+ g_object_set (G_OBJECT (monitor), "online", FALSE, NULL); |
59 |
+ return TRUE; |
60 |
+ } |
61 |
|
62 |
diff --git a/mate-base/mate-applets/mate-applets-1.10.4-r1.ebuild b/mate-base/mate-applets/mate-applets-1.10.4-r2.ebuild |
63 |
similarity index 96% |
64 |
rename from mate-base/mate-applets/mate-applets-1.10.4-r1.ebuild |
65 |
rename to mate-base/mate-applets/mate-applets-1.10.4-r2.ebuild |
66 |
index 96e901e..4743098 100644 |
67 |
--- a/mate-base/mate-applets/mate-applets-1.10.4-r1.ebuild |
68 |
+++ b/mate-base/mate-applets/mate-applets-1.10.4-r2.ebuild |
69 |
@@ -57,8 +57,11 @@ DEPEND="${RDEPEND} |
70 |
dev-libs/libxslt:0 |
71 |
>=mate-base/mate-common-1.10:0 |
72 |
sys-devel/gettext:* |
73 |
+ sys-kernel/linux-headers |
74 |
virtual/pkgconfig:*" |
75 |
|
76 |
+PATCHES=( "${FILESDIR}/${PN}-1.10.4-kernel-4.7.patch" ) |
77 |
+ |
78 |
src_configure() { |
79 |
gnome2_src_configure \ |
80 |
--libexecdir=/usr/libexec/mate-applets \ |
81 |
|
82 |
diff --git a/mate-base/mate-applets/mate-applets-1.12.1-r1.ebuild b/mate-base/mate-applets/mate-applets-1.12.1-r2.ebuild |
83 |
similarity index 96% |
84 |
rename from mate-base/mate-applets/mate-applets-1.12.1-r1.ebuild |
85 |
rename to mate-base/mate-applets/mate-applets-1.12.1-r2.ebuild |
86 |
index ecc284b..bfa64ba 100644 |
87 |
--- a/mate-base/mate-applets/mate-applets-1.12.1-r1.ebuild |
88 |
+++ b/mate-base/mate-applets/mate-applets-1.12.1-r2.ebuild |
89 |
@@ -65,8 +65,11 @@ DEPEND="${RDEPEND} |
90 |
>=dev-util/intltool-0.50.1:* |
91 |
dev-libs/libxslt:0 |
92 |
sys-devel/gettext:* |
93 |
+ sys-kernel/linux-headers |
94 |
virtual/pkgconfig:*" |
95 |
|
96 |
+PATCHES=( "${FILESDIR}/${PN}-1.10.4-kernel-4.7.patch" ) |
97 |
+ |
98 |
src_configure() { |
99 |
mate_src_configure \ |
100 |
--libexecdir=/usr/libexec/mate-applets \ |