Package: src:gkrellm2-cpufreq
Version: 0.6.4-4
Control: tags -1 ftbfs patch

--

Dear maintainer,
gkrellm2-cpufreq fails to build on ppc64el.
On this architecture libcpupower is used instead of libcpufreq .
Actually licpupower can be used on all arches so I propose to switch to
it with this patch.

Regards,


F.
diff -Nru gkrellm2-cpufreq-0.6.4/debian/control 
gkrellm2-cpufreq-0.6.4/debian/control
--- gkrellm2-cpufreq-0.6.4/debian/control       2013-05-30 18:49:13.000000000 
+0200
+++ gkrellm2-cpufreq-0.6.4/debian/control       2013-06-14 00:28:51.000000000 
+0200
@@ -2,7 +2,7 @@
 Section: x11
 Priority: extra
 Maintainer: John Paul Adrian Glaubitz <[email protected]>
-Build-Depends: debhelper (>= 9), libcpufreq-dev, gkrellm (>= 2.1.4), 
libgtk2.0-dev
+Build-Depends: debhelper (>= 9), libcpupower-dev, gkrellm (>= 2.1.4), 
libgtk2.0-dev
 Standards-Version: 3.9.4
 Homepage: http://chw.populus.org/rub/7
 Vcs-Git: git://github.com/glaubitz/gkrellm-cpufreq-debian.git
diff -Nru gkrellm2-cpufreq-0.6.4/debian/patches/series 
gkrellm2-cpufreq-0.6.4/debian/patches/series
--- gkrellm2-cpufreq-0.6.4/debian/patches/series        2013-05-30 
18:48:52.000000000 +0200
+++ gkrellm2-cpufreq-0.6.4/debian/patches/series        2013-06-14 
00:28:51.000000000 +0200
@@ -1 +1,2 @@
 0001-Modify-Makefile-to-make-sure-linker-flags-are-proper.patch
+switch-from-cpufreq-to-cpupower.patch
diff -Nru 
gkrellm2-cpufreq-0.6.4/debian/patches/switch-from-cpufreq-to-cpupower.patch 
gkrellm2-cpufreq-0.6.4/debian/patches/switch-from-cpufreq-to-cpupower.patch
--- gkrellm2-cpufreq-0.6.4/debian/patches/switch-from-cpufreq-to-cpupower.patch 
1970-01-01 01:00:00.000000000 +0100
+++ gkrellm2-cpufreq-0.6.4/debian/patches/switch-from-cpufreq-to-cpupower.patch 
2013-06-14 00:28:51.000000000 +0200
@@ -0,0 +1,21 @@
+From: Frédéric Bonnard <[email protected]>
+Date: Thu, 29 Aug 2019 15:47:16 +0200
+X-Dgit-Generated: 0.6.4-4 a98e40d06dd307a3d4c1b4da301c64a93dbd08c4
+Subject: Switch from cpufreq to cpupower
+
+On ppc64el, cpupower must be used. But one can use it on all arches
+also.
+
+---
+
+--- gkrellm2-cpufreq-0.6.4.orig/Makefile
++++ gkrellm2-cpufreq-0.6.4/Makefile
+@@ -6,7 +6,7 @@ GTK_LIB = `pkg-config gtk+-2.0 --libs`
+ FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
+ LIBS = $(GTK_LIB)
+ 
+-LDFLAGS += -shared -lcpufreq
++LDFLAGS += -shared -lcpupower
+ 
+ CC = gcc $(CFLAGS) $(FLAGS)
+ 

Attachment: pgplCpc6T2AYI.pgp
Description: PGP signature

Reply via email to