commit: 491118144424d5fd00ab6b1c74a01623217bb875 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sun Jan 19 11:57:22 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Feb 10 09:26:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49111814
media-sound/gstreamripper: Port to C23, fix implicit decls in configure As usual, autoreconf, patch for configure.in to work after autoreconf, and patches to fix function definitions or usage that weren't problematic last time, with C99 port Closes: https://bugs.gentoo.org/945203 Closes: https://bugs.gentoo.org/899850 Closes: https://bugs.gentoo.org/879711 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40205 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/gstreamripper-0.2-C23-fixes.patch | 62 ++++++++++++++++++++++ ...r-0.2-r1.ebuild => gstreamripper-0.2-r2.ebuild} | 18 +++++-- 2 files changed, 75 insertions(+), 5 deletions(-) diff --git a/media-sound/gstreamripper/files/gstreamripper-0.2-C23-fixes.patch b/media-sound/gstreamripper/files/gstreamripper-0.2-C23-fixes.patch new file mode 100644 index 000000000000..a16de37a350f --- /dev/null +++ b/media-sound/gstreamripper/files/gstreamripper-0.2-C23-fixes.patch @@ -0,0 +1,62 @@ +https://bugs.gentoo.org/945203 +Fix remaining incorrect usage of a function, prepare for autoreconf +--- a/configure.in ++++ b/configure.in +@@ -3,7 +3,7 @@ + dnl If you don't want it to overwrite it, + dnl Please disable it in the Anjuta project configuration + +-AC_INIT(configure.in) ++AC_INIT(configure.ac) + AM_INIT_AUTOMAKE(GStreamripperX, 0.2) + AM_CONFIG_HEADER(config.h) + +--- a/src/callbacks.c ++++ b/src/callbacks.c +@@ -86,7 +86,7 @@ + (GTK_WIDGET(Mainwidget), "entry1")), ""); + + if(child_pid <= 0) +- showError(GTK_WIDGET(button)); ++ showError(); + } + } + +@@ -161,7 +161,7 @@ + error->message); + g_error_free(error); + error = NULL; +- showError(GTK_WIDGET(Mainwidget)); ++ showError(); + return 0; + } + +@@ -550,7 +550,7 @@ + { + gint child_pid = startNewThread(); + if(child_pid <= 0) +- showError(GTK_WIDGET(button)); ++ showError(); + } + else + { +@@ -571,7 +571,7 @@ + } + + //open location +-void on_locateButton_clicked(GtkWidget * button, gpointer * user_data) ++void on_locateButton_clicked(GtkWidget * button, gpointer user_data) + { + gchar *file = getFile(dialog1, 1); + if(file != NULL) +--- a/src/callbacks.h ++++ b/src/callbacks.h +@@ -34,7 +34,7 @@ + + void kill_proc(gboolean all, gint curtab); + +-void on_locateButton_clicked(); ++void on_locateButton_clicked(GtkWidget * button, gpointer user_data); + + gboolean on_window1_delete_event(GtkButton * button,GdkEvent * event, + gpointer user_data); diff --git a/media-sound/gstreamripper/gstreamripper-0.2-r1.ebuild b/media-sound/gstreamripper/gstreamripper-0.2-r2.ebuild similarity index 77% rename from media-sound/gstreamripper/gstreamripper-0.2-r1.ebuild rename to media-sound/gstreamripper/gstreamripper-0.2-r2.ebuild index 0413f8eac1cb..238b58935f3c 100644 --- a/media-sound/gstreamripper/gstreamripper-0.2-r1.ebuild +++ b/media-sound/gstreamripper/gstreamripper-0.2-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit desktop +inherit desktop autotools MY_P=GStreamripperX-${PV} @@ -22,9 +22,17 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" -PATCHES=" - ${FILESDIR}/${P}-C99-fixes.patch -" +PATCHES=( + "${FILESDIR}/${P}-C99-fixes.patch" + "${FILESDIR}/${P}-C23-fixes.patch" +) + +src_prepare() { + default + + # bug https://bugs.gentoo.org/879711 + eautoreconf +} src_compile() { emake CFLAGS="${CFLAGS}"
