* [gentoo-commits] repo/gentoo:master commit in: app-misc/gtk-sunlight/, app-misc/gtk-sunlight/files/
@ 2022-10-31 17:43 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-10-31 17:43 UTC (permalink / raw
To: gentoo-commits
commit: df16ce2ac71beb4c015e94915e73c49b03258aac
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Wed Oct 26 07:25:02 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 31 17:39:48 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df16ce2a
app-misc/gtk-sunlight: revbump, fix clang16 build, EAPI bump
Fix function declarations so clang16 does not complain.
Closes: https://bugs.gentoo.org/874717
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
Closes: https://github.com/gentoo/gentoo/pull/27956
Signed-off-by: Sam James <sam <AT> gentoo.org>
...-sunlight-0.4.2-fix-function-declarations.patch | 32 ++++++++++++++++++++++
....4.2-r1.ebuild => gtk-sunlight-0.4.2-r2.ebuild} | 8 ++++--
2 files changed, 38 insertions(+), 2 deletions(-)
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
new file mode 100644
index 000000000000..bdf4e616d486
--- /dev/null
+++ b/app-misc/gtk-sunlight/files/gtk-sunlight-0.4.2-fix-function-declarations.patch
@@ -0,0 +1,32 @@
+Fix implicit function declarations as they are not supported by clang16 with standard settings.
+
+Bug: https://bugs.gentoo.org/874717
+
+Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
+
+--- a/callbacks.c
++++ b/callbacks.c
+@@ -33,6 +33,12 @@ gpointer create_progressbar_window (ChData *data);
+ gboolean update_progress(gpointer data);
+ gpointer async_lengthy_func(gpointer data);
+
++extern void scale_box_sensitive (ChData *data, gboolean sensitive);
++extern gshort move_earth_true (ChData *data);
++extern void get_and_set_options (ChData *data);
++extern gshort get_map_position (ChData *data);
++extern gboolean is_peters (ChData *data);
++extern void button_sensitive (ChData *data, gboolean sensitive);
+ /***************************************
+ Window Callbacks
+ ***************************************/
+--- a/sunlight.c
++++ b/sunlight.c
+@@ -19,6 +19,8 @@
+
+ #include "support.h"
+
++extern void change_wallpaper (ChData *data);
++
+ void initialize_variables (ChData *data){
+ data->var.gi_rd1 = 1;
+ data->var.gi_rd2 = 1;
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
similarity index 82%
rename from app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild
rename to app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild
index e98885b1e722..223a18a74a99 100644
--- a/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild
+++ b/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit toolchain-funcs xdg
@@ -20,6 +20,10 @@ RDEPEND="
x11-libs/gtk+:3"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-function-declarations.patch
+)
+
src_compile() {
tc-export CC
default
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-31 17:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-31 17:43 [gentoo-commits] repo/gentoo:master commit in: app-misc/gtk-sunlight/, app-misc/gtk-sunlight/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox