mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2025-01-29 08:34:31 +01:00
mate-applets: Fix build with Linux Kernel 4.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
5f4d6feb87
commit
e2a382a374
2 changed files with 38 additions and 1 deletions
34
extra/mate-applets/mate-applets-4.8+.patch
Normal file
34
extra/mate-applets/mate-applets-4.8+.patch
Normal file
|
@ -0,0 +1,34 @@
|
|||
From 65b6297b572b3fc8969b53ca975fc530876ba5e0 Mon Sep 17 00:00:00 2001
|
||||
From: Denis Gorodnichev <denis.gorodnichev@gmail.com>
|
||||
Date: Sat, 19 Nov 2016 22:16:11 +0300
|
||||
Subject: [PATCH] build with kernel 4.8
|
||||
|
||||
---
|
||||
cpufreq/src/cpufreq-monitor-libcpufreq.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c
|
||||
index 228a890..40e6294 100644
|
||||
--- a/cpufreq/src/cpufreq-monitor-libcpufreq.c
|
||||
+++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c
|
||||
@@ -19,6 +19,10 @@
|
||||
* Authors : Carlos Garc<72>a Campos <carlosgc@gnome.org>
|
||||
*/
|
||||
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+#include "config.h"
|
||||
+#endif
|
||||
+
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
@@ -111,7 +115,7 @@ cpufreq_monitor_libcpufreq_run (CPUFreqMonitor *monitor)
|
||||
/* Check whether it failed because
|
||||
* cpu is not online.
|
||||
*/
|
||||
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
|
||||
+#ifdef HAVE_LIBCPUFREQ
|
||||
if (!cpufreq_cpu_exists (cpu)) {
|
||||
#else
|
||||
if (cpupower_is_cpu_online (cpu)) {
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
PRGNAM=mate-applets
|
||||
VERSION=${VERSION:-1.18.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_msb}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -72,6 +72,9 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Fix for Linux Kernel 4.8+
|
||||
patch -p1 < $CWD/mate-applets-4.8+.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
Loading…
Add table
Reference in a new issue