From df16ce2ac71beb4c015e94915e73c49b03258aac Mon Sep 17 00:00:00 2001 From: Pascal Jäger Date: Wed, 26 Oct 2022 09:25:02 +0200 Subject: app-misc/gtk-sunlight: revbump, fix clang16 build, EAPI bump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix function declarations so clang16 does not complain. Closes: https://bugs.gentoo.org/874717 Signed-off-by: Pascal Jäger Closes: https://github.com/gentoo/gentoo/pull/27956 Signed-off-by: Sam James --- ...-sunlight-0.4.2-fix-function-declarations.patch | 32 ++++++++++++++++++++++ app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild | 26 ------------------ app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild | 30 ++++++++++++++++++++ 3 files changed, 62 insertions(+), 26 deletions(-) create mode 100644 app-misc/gtk-sunlight/files/gtk-sunlight-0.4.2-fix-function-declarations.patch delete mode 100644 app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild create mode 100644 app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild 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 + +--- 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-r1.ebuild deleted file mode 100644 index e98885b1e722..000000000000 --- a/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r1.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs xdg - -DESCRIPTION="Real-time Sunlight Wallpaper" -HOMEPAGE="http://realtimesunlightwallpaper.weebly.com/" -SRC_URI="https://ppa.launchpad.net/realtime.sunlight.wallpaper/rsw/ubuntu/pool/main/g/${PN}/${PN}_${PV}.orig.tar.gz" - -LICENSE="GPL-1" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -BDEPEND="virtual/pkgconfig" -RDEPEND=" - dev-libs/glib:2 - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:3" -DEPEND="${RDEPEND}" - -src_compile() { - tc-export CC - default -} diff --git a/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild b/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild new file mode 100644 index 000000000000..223a18a74a99 --- /dev/null +++ b/app-misc/gtk-sunlight/gtk-sunlight-0.4.2-r2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs xdg + +DESCRIPTION="Real-time Sunlight Wallpaper" +HOMEPAGE="http://realtimesunlightwallpaper.weebly.com/" +SRC_URI="https://ppa.launchpad.net/realtime.sunlight.wallpaper/rsw/ubuntu/pool/main/g/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + dev-libs/glib:2 + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-fix-function-declarations.patch +) + +src_compile() { + tc-export CC + default +} -- cgit v1.2.3-65-gdbad