[packages/gnome-applets] - rel 4; fix build

arekm arekm at pld-linux.org
Sat Dec 31 19:23:58 CET 2016


commit 767212a33cad77561fbeb02a3e54412911404165
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Dec 31 19:23:51 2016 +0100

    - rel 4; fix build

 gnome-applets-build.patch | 19 +++++++++++++++++++
 gnome-applets.spec        |  4 +++-
 2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/gnome-applets.spec b/gnome-applets.spec
index 72e48dc..6a6078c 100644
--- a/gnome-applets.spec
+++ b/gnome-applets.spec
@@ -6,12 +6,13 @@ Summary(ru.UTF-8):	Маленькие программы, встраивающи
 Summary(uk.UTF-8):	Маленькі програми, що вбудовуються в панель GNOME
 Name:		gnome-applets
 Version:	3.18.2
-Release:	3
+Release:	4
 Epoch:		1
 License:	GPL v2, FDL
 Group:		X11/Applications
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/gnome-applets/3.18/%{name}-%{version}.tar.xz
 # Source0-md5:	5d4e85d820abefd4298a7470f1234682
+Patch0:		%{name}-build.patch
 URL:		http://www.gnome.org/
 BuildRequires:	adwaita-icon-theme >= 3.14.0
 %ifarch %{ix86} arm mips ppc sh
@@ -481,6 +482,7 @@ wyszarzanie nieaktywnych ikon.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/gnome-applets-build.patch b/gnome-applets-build.patch
new file mode 100644
index 0000000..858bc1a
--- /dev/null
+++ b/gnome-applets-build.patch
@@ -0,0 +1,19 @@
+--- gnome-applets-3.18.2/cpufreq/src/cpufreq-monitor-libcpufreq.c~	2016-02-05 18:35:32.000000000 +0100
++++ gnome-applets-3.18.2/cpufreq/src/cpufreq-monitor-libcpufreq.c	2016-12-31 19:22:46.174263177 +0100
+@@ -23,6 +23,7 @@
+ 
+ #include <stdlib.h>
+ #include <cpufreq.h>
++#include <cpuidle.h>
+ 
+ #include "cpufreq-monitor-libcpufreq.h"
+ #include "cpufreq-utils.h"
+@@ -110,7 +111,7 @@ cpufreq_monitor_libcpufreq_run (CPUFreqM
+ 		/* Check whether it failed because
+ 		 * cpu is not online.
+ 		 */
+-		if (!cpufreq_cpu_exists (cpu)) {
++		if (cpupower_is_cpu_online (cpu)) {
+ 			g_object_set (G_OBJECT (monitor), "online", FALSE, NULL);
+ 			return TRUE;
+ 		}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnome-applets.git/commitdiff/767212a33cad77561fbeb02a3e54412911404165



More information about the pld-cvs-commit mailing list