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@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40205
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
NHOrus 2025-01-19 15:57:22 +04:00 committed by Sam James
parent 3a0ab90bbc
commit 4911181444
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 75 additions and 5 deletions

View File

@ -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);

View File

@ -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}"