1 |
commit: df16ce2ac71beb4c015e94915e73c49b03258aac |
2 |
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
3 |
AuthorDate: Wed Oct 26 07:25:02 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 31 17:39:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df16ce2a |
7 |
|
8 |
app-misc/gtk-sunlight: revbump, fix clang16 build, EAPI bump |
9 |
|
10 |
Fix function declarations so clang16 does not complain. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/874717 |
13 |
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/27956 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
...-sunlight-0.4.2-fix-function-declarations.patch | 32 ++++++++++++++++++++++ |
18 |
....4.2-r1.ebuild => gtk-sunlight-0.4.2-r2.ebuild} | 8 ++++-- |
19 |
2 files changed, 38 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/app-misc/gtk-sunlight/files/gtk-sunlight-0.4.2-fix-function-declarations.patch b/app-misc/gtk-sunlight/files/gtk-sunlight-0.4.2-fix-function-declarations.patch |
22 |
new file mode 100644 |
23 |
index 000000000000..bdf4e616d486 |
24 |
--- /dev/null |
25 |
+++ b/app-misc/gtk-sunlight/files/gtk-sunlight-0.4.2-fix-function-declarations.patch |
26 |
@@ -0,0 +1,32 @@ |
27 |
+Fix implicit function declarations as they are not supported by clang16 with standard settings. |
28 |
+ |
29 |
+Bug: https://bugs.gentoo.org/874717 |
30 |
+ |
31 |
+Signed-off-by: Pascal Jäger <pascal.jaeger@×××××××××.de> |
32 |
+ |
33 |
+--- a/callbacks.c |
34 |
++++ b/callbacks.c |
35 |
+@@ -33,6 +33,12 @@ gpointer create_progressbar_window (ChData *data); |
36 |
+ gboolean update_progress(gpointer data); |
37 |
+ gpointer async_lengthy_func(gpointer data); |
38 |
+ |
39 |
++extern void scale_box_sensitive (ChData *data, gboolean sensitive); |
40 |
++extern gshort move_earth_true (ChData *data); |
41 |
++extern void get_and_set_options (ChData *data); |
42 |
++extern gshort get_map_position (ChData *data); |
43 |
++extern gboolean is_peters (ChData *data); |
44 |
++extern void button_sensitive (ChData *data, gboolean sensitive); |
45 |
+ /*************************************** |
46 |
+ Window Callbacks |
47 |
+ ***************************************/ |
48 |
+--- a/sunlight.c |
49 |
++++ b/sunlight.c |
50 |
+@@ -19,6 +19,8 @@ |
51 |
+ |
52 |
+ #include "support.h" |
53 |
+ |
54 |
++extern void change_wallpaper (ChData *data); |
55 |
++ |
56 |
+ void initialize_variables (ChData *data){ |
57 |
+ data->var.gi_rd1 = 1; |
58 |
+ data->var.gi_rd2 = 1; |
59 |
|
60 |
diff --git a/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild b/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild |
61 |
similarity index 82% |
62 |
rename from app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild |
63 |
rename to app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild |
64 |
index e98885b1e722..223a18a74a99 100644 |
65 |
--- a/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild |
66 |
+++ b/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild |
67 |
@@ -1,7 +1,7 @@ |
68 |
-# Copyright 1999-2020 Gentoo Authors |
69 |
+# Copyright 1999-2022 Gentoo Authors |
70 |
# Distributed under the terms of the GNU General Public License v2 |
71 |
|
72 |
-EAPI=7 |
73 |
+EAPI=8 |
74 |
|
75 |
inherit toolchain-funcs xdg |
76 |
|
77 |
@@ -20,6 +20,10 @@ RDEPEND=" |
78 |
x11-libs/gtk+:3" |
79 |
DEPEND="${RDEPEND}" |
80 |
|
81 |
+PATCHES=( |
82 |
+ "${FILESDIR}"/${P}-fix-function-declarations.patch |
83 |
+) |
84 |
+ |
85 |
src_compile() { |
86 |
tc-export CC |
87 |
default |