1 |
commit: 644c7541bcd61e638e06d6b06b6656340a0f6f61 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 24 21:39:44 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 24 21:47:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=644c7541 |
7 |
|
8 |
x11-plugins/wmclockmon: fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707198 |
11 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
.../wmclockmon/files/wmclockmon-0.8.1-gcc-10.patch | 247 +++++++++++++++++++++ |
15 |
x11-plugins/wmclockmon/wmclockmon-0.8.1-r1.ebuild | 5 +- |
16 |
2 files changed, 250 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/x11-plugins/wmclockmon/files/wmclockmon-0.8.1-gcc-10.patch b/x11-plugins/wmclockmon/files/wmclockmon-0.8.1-gcc-10.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..f891c27e1a0 |
21 |
--- /dev/null |
22 |
+++ b/x11-plugins/wmclockmon/files/wmclockmon-0.8.1-gcc-10.patch |
23 |
@@ -0,0 +1,247 @@ |
24 |
+diff -Naur wmclockmon-0.8.1.orig/src/main.c wmclockmon-0.8.1/src/main.c |
25 |
+--- wmclockmon-0.8.1.orig/src/main.c 2005-06-15 16:04:57.000000000 +0200 |
26 |
++++ wmclockmon-0.8.1/src/main.c 2020-02-24 22:27:45.957224984 +0100 |
27 |
+@@ -221,6 +221,7 @@ |
28 |
+ static char* label = NULL; |
29 |
+ |
30 |
+ |
31 |
++ |
32 |
+ /* prototypes */ |
33 |
+ static void rotate_style(); |
34 |
+ static Bool stringdiff(const char *s1, const char *s2); |
35 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-cal/main.c wmclockmon-0.8.1/wmclockmon-cal/main.c |
36 |
+--- wmclockmon-0.8.1.orig/wmclockmon-cal/main.c 2005-06-15 15:55:27.000000000 +0200 |
37 |
++++ wmclockmon-0.8.1/wmclockmon-cal/main.c 2020-02-24 22:35:38.832391977 +0100 |
38 |
+@@ -15,6 +15,22 @@ |
39 |
+ #include "mainwindow.h" |
40 |
+ #include "main.h" |
41 |
+ |
42 |
++GtkWidget *application; |
43 |
++GtkWidget *alarmlist; |
44 |
++GtkWidget *wid_backlight; |
45 |
++GtkWidget *wid_blink; |
46 |
++GtkWidget *wid_styledir; |
47 |
++GtkWidget *wid_stylename; |
48 |
++GtkWidget *wid_color; |
49 |
++GtkWidget *wid_command; |
50 |
++GtkWidget *wid_msgcmd; |
51 |
++GtkWidget *wid_h12; |
52 |
++GtkWidget *wid_itm; |
53 |
++GtkWidget *wid_locale; |
54 |
++ |
55 |
++int selected_row; |
56 |
++ |
57 |
++struct tm *timeinfos; |
58 |
+ |
59 |
+ void Usage () { |
60 |
+ printf("Usage: "PACKAGE"-cal [-h] [-v]\n" |
61 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-cal/main.h wmclockmon-0.8.1/wmclockmon-cal/main.h |
62 |
+--- wmclockmon-0.8.1.orig/wmclockmon-cal/main.h 2005-06-15 15:55:27.000000000 +0200 |
63 |
++++ wmclockmon-0.8.1/wmclockmon-cal/main.h 2020-02-24 22:35:32.799388390 +0100 |
64 |
+@@ -9,7 +9,7 @@ |
65 |
+ #include <sys/time.h> |
66 |
+ |
67 |
+ |
68 |
+-struct tm *timeinfos; |
69 |
++extern struct tm *timeinfos; |
70 |
+ |
71 |
+ void quit_app(); |
72 |
+ |
73 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-cal/mainwindow.h wmclockmon-0.8.1/wmclockmon-cal/mainwindow.h |
74 |
+--- wmclockmon-0.8.1.orig/wmclockmon-cal/mainwindow.h 2005-06-15 15:55:27.000000000 +0200 |
75 |
++++ wmclockmon-0.8.1/wmclockmon-cal/mainwindow.h 2020-02-24 22:34:22.609356664 +0100 |
76 |
+@@ -7,20 +7,20 @@ |
77 |
+ |
78 |
+ #include <gtk/gtk.h> |
79 |
+ |
80 |
+-GtkWidget *application; |
81 |
+-GtkWidget *alarmlist; |
82 |
+-GtkWidget *wid_backlight; |
83 |
+-GtkWidget *wid_blink; |
84 |
+-GtkWidget *wid_styledir; |
85 |
+-GtkWidget *wid_stylename; |
86 |
+-GtkWidget *wid_color; |
87 |
+-GtkWidget *wid_command; |
88 |
+-GtkWidget *wid_msgcmd; |
89 |
+-GtkWidget *wid_h12; |
90 |
+-GtkWidget *wid_itm; |
91 |
+-GtkWidget *wid_locale; |
92 |
++extern GtkWidget *application; |
93 |
++extern GtkWidget *alarmlist; |
94 |
++extern GtkWidget *wid_backlight; |
95 |
++extern GtkWidget *wid_blink; |
96 |
++extern GtkWidget *wid_styledir; |
97 |
++extern GtkWidget *wid_stylename; |
98 |
++extern GtkWidget *wid_color; |
99 |
++extern GtkWidget *wid_command; |
100 |
++extern GtkWidget *wid_msgcmd; |
101 |
++extern GtkWidget *wid_h12; |
102 |
++extern GtkWidget *wid_itm; |
103 |
++extern GtkWidget *wid_locale; |
104 |
+ |
105 |
+-int selected_row; |
106 |
++extern int selected_row; |
107 |
+ |
108 |
+ gint list_unsel_cb (GtkCList *clist, |
109 |
+ gint row, |
110 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-config/actions.c wmclockmon-0.8.1/wmclockmon-config/actions.c |
111 |
+--- wmclockmon-0.8.1.orig/wmclockmon-config/actions.c 2005-06-15 15:55:27.000000000 +0200 |
112 |
++++ wmclockmon-0.8.1/wmclockmon-config/actions.c 2020-02-24 22:32:59.929329239 +0100 |
113 |
+@@ -19,6 +19,24 @@ |
114 |
+ #include "edit.h" |
115 |
+ #include "actions.h" |
116 |
+ |
117 |
++GtkWidget *application; |
118 |
++GtkWidget *alarmlist; |
119 |
++GtkWidget *wid_backlight; |
120 |
++GtkWidget *wid_blink; |
121 |
++GtkWidget *wid_styledir; |
122 |
++GtkWidget *wid_stylename; |
123 |
++GtkWidget *wid_color; |
124 |
++GtkWidget *wid_command; |
125 |
++GtkWidget *wid_msgcmd; |
126 |
++GtkWidget *wid_h12; |
127 |
++GtkWidget *wid_clk; |
128 |
++GtkWidget *wid_itm; |
129 |
++GtkWidget *wid_bin; |
130 |
++GtkWidget *wid_locale; |
131 |
++GtkWidget *wid_showcal; |
132 |
++GtkWidget *wid_calalrms; |
133 |
++ |
134 |
++int selected_row; |
135 |
+ |
136 |
+ void quit_app() { |
137 |
+ FREE(command); |
138 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-config/edit.c wmclockmon-0.8.1/wmclockmon-config/edit.c |
139 |
+--- wmclockmon-0.8.1.orig/wmclockmon-config/edit.c 2005-06-15 15:55:27.000000000 +0200 |
140 |
++++ wmclockmon-0.8.1/wmclockmon-config/edit.c 2020-02-24 22:30:01.651270068 +0100 |
141 |
+@@ -16,6 +16,8 @@ |
142 |
+ static GtkWidget *wid_date; |
143 |
+ static GtkWidget *wid_mesg; |
144 |
+ |
145 |
++char *newalarm; |
146 |
++ |
147 |
+ void set_data(GtkWidget *widget, GtkWidget *data) { |
148 |
+ char *wstat = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(wid_status)->entry)); |
149 |
+ char *wtime = gtk_entry_get_text(GTK_ENTRY(wid_time)); |
150 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-config/edit.h wmclockmon-0.8.1/wmclockmon-config/edit.h |
151 |
+--- wmclockmon-0.8.1.orig/wmclockmon-config/edit.h 2005-06-15 15:55:27.000000000 +0200 |
152 |
++++ wmclockmon-0.8.1/wmclockmon-config/edit.h 2020-02-24 22:29:53.652267413 +0100 |
153 |
+@@ -5,7 +5,7 @@ |
154 |
+ #ifndef EDIT_H |
155 |
+ #define EDIT_H |
156 |
+ |
157 |
+-char *newalarm; |
158 |
++extern char *newalarm; |
159 |
+ |
160 |
+ void edit_dialog(const char *title, |
161 |
+ int on, |
162 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-config/mainwindow.h wmclockmon-0.8.1/wmclockmon-config/mainwindow.h |
163 |
+--- wmclockmon-0.8.1.orig/wmclockmon-config/mainwindow.h 2005-06-15 15:55:27.000000000 +0200 |
164 |
++++ wmclockmon-0.8.1/wmclockmon-config/mainwindow.h 2020-02-24 22:33:31.864339834 +0100 |
165 |
+@@ -7,24 +7,24 @@ |
166 |
+ |
167 |
+ #include <gtk/gtk.h> |
168 |
+ |
169 |
+-GtkWidget *application; |
170 |
+-GtkWidget *alarmlist; |
171 |
+-GtkWidget *wid_backlight; |
172 |
+-GtkWidget *wid_blink; |
173 |
+-GtkWidget *wid_styledir; |
174 |
+-GtkWidget *wid_stylename; |
175 |
+-GtkWidget *wid_color; |
176 |
+-GtkWidget *wid_command; |
177 |
+-GtkWidget *wid_msgcmd; |
178 |
+-GtkWidget *wid_h12; |
179 |
+-GtkWidget *wid_clk; |
180 |
+-GtkWidget *wid_itm; |
181 |
+-GtkWidget *wid_bin; |
182 |
+-GtkWidget *wid_locale; |
183 |
+-GtkWidget *wid_showcal; |
184 |
+-GtkWidget *wid_calalrms; |
185 |
++extern GtkWidget *application; |
186 |
++extern GtkWidget *alarmlist; |
187 |
++extern GtkWidget *wid_backlight; |
188 |
++extern GtkWidget *wid_blink; |
189 |
++extern GtkWidget *wid_styledir; |
190 |
++extern GtkWidget *wid_stylename; |
191 |
++extern GtkWidget *wid_color; |
192 |
++extern GtkWidget *wid_command; |
193 |
++extern GtkWidget *wid_msgcmd; |
194 |
++extern GtkWidget *wid_h12; |
195 |
++extern GtkWidget *wid_clk; |
196 |
++extern GtkWidget *wid_itm; |
197 |
++extern GtkWidget *wid_bin; |
198 |
++extern GtkWidget *wid_locale; |
199 |
++extern GtkWidget *wid_showcal; |
200 |
++extern GtkWidget *wid_calalrms; |
201 |
+ |
202 |
+-int selected_row; |
203 |
++extern int selected_row; |
204 |
+ |
205 |
+ gint list_unsel_cb (GtkCList *clist, |
206 |
+ gint row, |
207 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-config/tools.c wmclockmon-0.8.1/wmclockmon-config/tools.c |
208 |
+--- wmclockmon-0.8.1.orig/wmclockmon-config/tools.c 2005-06-15 15:55:27.000000000 +0200 |
209 |
++++ wmclockmon-0.8.1/wmclockmon-config/tools.c 2020-02-24 22:28:02.883230608 +0100 |
210 |
+@@ -17,6 +17,21 @@ |
211 |
+ #include <sys/types.h> |
212 |
+ #include "configfile.h" |
213 |
+ |
214 |
++int backlight; |
215 |
++int switch_authorized; |
216 |
++int h12; |
217 |
++int time_mode; |
218 |
++int use_leds; |
219 |
++int use_locale; |
220 |
++int showcal; |
221 |
++int calalrms; |
222 |
++char *style_name; |
223 |
++char *style_dir; |
224 |
++char *config_file; |
225 |
++char *light_color; |
226 |
++char *command; |
227 |
++char *msgcmd; |
228 |
++Alarm *alarms; |
229 |
+ |
230 |
+ int fexist(const char *filename) { |
231 |
+ FILE *file; |
232 |
+diff -Naur wmclockmon-0.8.1.orig/wmclockmon-config/variables.h wmclockmon-0.8.1/wmclockmon-config/variables.h |
233 |
+--- wmclockmon-0.8.1.orig/wmclockmon-config/variables.h 2005-06-15 15:55:27.000000000 +0200 |
234 |
++++ wmclockmon-0.8.1/wmclockmon-config/variables.h 2020-02-24 22:18:40.479043297 +0100 |
235 |
+@@ -7,20 +7,20 @@ |
236 |
+ |
237 |
+ #include "defines.h" |
238 |
+ |
239 |
+-int backlight; |
240 |
+-int switch_authorized; |
241 |
+-int h12; |
242 |
+-int time_mode; |
243 |
+-int use_leds; |
244 |
+-int use_locale; |
245 |
+-int showcal; |
246 |
+-int calalrms; |
247 |
+-char *style_name; |
248 |
+-char *style_dir; |
249 |
+-char *config_file; |
250 |
+-char *light_color; |
251 |
+-char *command; |
252 |
+-char *msgcmd; |
253 |
+-Alarm *alarms; |
254 |
++extern int backlight; |
255 |
++extern int switch_authorized; |
256 |
++extern int h12; |
257 |
++extern int time_mode; |
258 |
++extern int use_leds; |
259 |
++extern int use_locale; |
260 |
++extern int showcal; |
261 |
++extern int calalrms; |
262 |
++extern char *style_name; |
263 |
++extern char *style_dir; |
264 |
++extern char *config_file; |
265 |
++extern char *light_color; |
266 |
++extern char *command; |
267 |
++extern char *msgcmd; |
268 |
++extern Alarm *alarms; |
269 |
+ |
270 |
+ #endif |
271 |
|
272 |
diff --git a/x11-plugins/wmclockmon/wmclockmon-0.8.1-r1.ebuild b/x11-plugins/wmclockmon/wmclockmon-0.8.1-r1.ebuild |
273 |
index 1d0d2cc3003..830ad8041b5 100644 |
274 |
--- a/x11-plugins/wmclockmon/wmclockmon-0.8.1-r1.ebuild |
275 |
+++ b/x11-plugins/wmclockmon/wmclockmon-0.8.1-r1.ebuild |
276 |
@@ -1,4 +1,4 @@ |
277 |
-# Copyright 1999-2018 Gentoo Authors |
278 |
+# Copyright 1999-2020 Gentoo Authors |
279 |
# Distributed under the terms of the GNU General Public License v2 |
280 |
|
281 |
EAPI=7 |
282 |
@@ -21,7 +21,8 @@ DEPEND="${RDEPEND} |
283 |
x11-base/xorg-proto |
284 |
x11-libs/libXt" |
285 |
|
286 |
-PATCHES=( "${FILESDIR}"/${P}-gtk.patch ) |
287 |
+PATCHES=( "${FILESDIR}"/${P}-gtk.patch |
288 |
+ "${FILESDIR}"/${P}-gcc-10.patch ) |
289 |
|
290 |
DOCS=( AUTHORS BUGS ChangeLog NEWS README THANKS TODO \ |
291 |
doc/sample2.wmclockmonrc doc/sample1.wmclockmonrc ) |