1 |
commit: a57cdb2cac51ad73069b1365045dd3d74e394c5b |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 6 11:37:15 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 11:37:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57cdb2c |
7 |
|
8 |
x11-misc/xsensors: Patch configure.ac for missing AM_PATH_GTK_2_0 |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Closes: https://bugs.gentoo.org/740646 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
x11-misc/xsensors/files/xsensors-0.80-Werror.patch | 14 +++++++++ |
15 |
x11-misc/xsensors/files/xsensors-0.80-gtk220.patch | 34 ++++++++++++++++++++++ |
16 |
x11-misc/xsensors/xsensors-0.80.ebuild | 11 +++---- |
17 |
3 files changed, 52 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/x11-misc/xsensors/files/xsensors-0.80-Werror.patch b/x11-misc/xsensors/files/xsensors-0.80-Werror.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..b903404256a |
22 |
--- /dev/null |
23 |
+++ b/x11-misc/xsensors/files/xsensors-0.80-Werror.patch |
24 |
@@ -0,0 +1,14 @@ |
25 |
+--- a/src/Makefile.am |
26 |
++++ b/src/Makefile.am |
27 |
+@@ -4,10 +4,7 @@ |
28 |
+ -DG_LOG_DOMAIN=\"GnomeCPUInfoApplet\" \ |
29 |
+ -DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ |
30 |
+ -DDATADIR=\""$(datadir)"\" \ |
31 |
+- -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED \ |
32 |
+- -DGDK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED \ |
33 |
+- -ansi -Wall -Wmissing-prototypes -Wmissing-declarations \ |
34 |
+- -Werror |
35 |
++ -ansi -Wall -Wmissing-prototypes -Wmissing-declarations |
36 |
+ |
37 |
+ bin_PROGRAMS = xsensors |
38 |
+ |
39 |
|
40 |
diff --git a/x11-misc/xsensors/files/xsensors-0.80-gtk220.patch b/x11-misc/xsensors/files/xsensors-0.80-gtk220.patch |
41 |
new file mode 100644 |
42 |
index 00000000000..9b53de08864 |
43 |
--- /dev/null |
44 |
+++ b/x11-misc/xsensors/files/xsensors-0.80-gtk220.patch |
45 |
@@ -0,0 +1,34 @@ |
46 |
+--- a/configure.ac |
47 |
++++ b/configure.ac |
48 |
+@@ -29,7 +29,7 @@ |
49 |
+ [Force GTK2 GUI, even if GTK3 is available @<:@default=check@:>@])], |
50 |
+ [], [with_gtk2=no]) |
51 |
+ |
52 |
+-if [ test "x$with_gtk2" == xno ]; then |
53 |
++if [ test "x$with_gtk2" = xno ]; then |
54 |
+ PKG_CHECK_MODULES([GTK],[gtk+-3.0],foundgtk3=true,foundgtk3=false) |
55 |
+ else |
56 |
+ echo "Using GTK2..." |
57 |
+@@ -37,18 +37,13 @@ |
58 |
+ fi |
59 |
+ |
60 |
+ if [ $foundgtk3 ]; then |
61 |
+- XSENSORS_CFLAGS="`pkg-config --cflags gtk+-3.0` -Werror -Wall" |
62 |
+- XSENSORS_LIBS="`pkg-config --libs gtk+-3.0`" |
63 |
++ XSENSORS_CFLAGS="`${PKG_CONFIG} --cflags gtk+-3.0` -Wall -Wall" |
64 |
++ XSENSORS_LIBS="`${PKG_CONFIG} --libs gtk+-3.0`" |
65 |
+ else |
66 |
+- if [ test "x$with_gtk2" == xno ]; then |
67 |
+- echo "GTK3 is not installed, checking for GTK2 instead..." |
68 |
+- fi |
69 |
+- AM_PATH_GTK_2_0(2.8.0,,AC_MSG_ERROR([ |
70 |
++ AC_MSG_ERROR([ |
71 |
+ *** GTK+ is required to build xsensors; please make sure you have the GTK+ |
72 |
+ *** development headers installed. The latest version of GTK+ is |
73 |
+-*** always available at http://www.gtk.org/.])) |
74 |
+- XSENSORS_CFLAGS="`pkg-config --cflags gtk+-2.0` -Werror -Wall" |
75 |
+- XSENSORS_LIBS="`pkg-config --libs gtk+-2.0`" |
76 |
++*** always available at http://www.gtk.org/.]) |
77 |
+ fi |
78 |
+ |
79 |
+ AC_SUBST(XSENSORS_CFLAGS) |
80 |
|
81 |
diff --git a/x11-misc/xsensors/xsensors-0.80.ebuild b/x11-misc/xsensors/xsensors-0.80.ebuild |
82 |
index 455f446c563..43258aef8b9 100644 |
83 |
--- a/x11-misc/xsensors/xsensors-0.80.ebuild |
84 |
+++ b/x11-misc/xsensors/xsensors-0.80.ebuild |
85 |
@@ -23,17 +23,14 @@ DEPEND=" |
86 |
BDEPEND=" |
87 |
virtual/pkgconfig |
88 |
" |
89 |
+PATCHES=( |
90 |
+ "${FILESDIR}"/${P}-gtk220.patch |
91 |
+ "${FILESDIR}"/${P}-Werror.patch |
92 |
+) |
93 |
|
94 |
src_prepare() { |
95 |
default |
96 |
|
97 |
- sed -i \ |
98 |
- -e '/-DG.*_DISABLE_DEPRECATED/d' \ |
99 |
- -e 's#-Werror#-Wall#g' \ |
100 |
- -e 's#==#=#g' \ |
101 |
- -e 's#pkg-config#${PKG_CONFIG}#g' \ |
102 |
- src/Makefile.am configure.ac || die |
103 |
- |
104 |
eautoreconf |
105 |
} |