diff --git a/media-sound/gtick/files/gtick-0.5.5-c23.patch b/media-sound/gtick/files/gtick-0.5.5-c23.patch new file mode 100644 index 0000000000000..3e48e84392826 --- /dev/null +++ b/media-sound/gtick/files/gtick-0.5.5-c23.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/946659 +--- a/src/optionlexer.h ++++ b/src/optionlexer.h +@@ -24,7 +24,7 @@ + #define OPTIONLEXER_H + + extern FILE *option_in; +-int option_parse(); ++int option_parse(void *option_list); + + void option_lexer_init(char* filename); + void option_lexer_deinit(); diff --git a/media-sound/gtick/files/gtick-0.5.5-no-dmalloc-tests.patch b/media-sound/gtick/files/gtick-0.5.5-no-dmalloc-tests.patch new file mode 100644 index 0000000000000..cfdc2c18b1cd3 --- /dev/null +++ b/media-sound/gtick/files/gtick-0.5.5-no-dmalloc-tests.patch @@ -0,0 +1,12 @@ +We don't want to require last-rited dmalloc for tests. +--- a/testsuite/Makefile.am ++++ b/testsuite/Makefile.am +@@ -63,7 +63,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ + LIBS = @LIBINTL@ @LIBS@ + + AM_CPPFLAGS = -I../src -I../intl -I$(top_srcdir)/intl @DEPS_CFLAGS@ @SNDFILE_CFLAGS@ @CHECK_CFLAGS@ @DMALLOC_CFLAGS@ +-AM_CFLAGS = -DVERSION='"@VERSION@"' -DPACKAGE='"@PACKAGE@"' -DUSE_DMALLOC ++AM_CFLAGS = -DVERSION='"@VERSION@"' -DPACKAGE='"@PACKAGE@"' + + AM_YFLAGS = -d + AM_LFLAGS=-olex.yy.c diff --git a/media-sound/gtick/gtick-0.5.5-r1.ebuild b/media-sound/gtick/gtick-0.5.5-r1.ebuild index 2d7dec66d23ac..5ed0fdd6a79ca 100644 --- a/media-sound/gtick/gtick-0.5.5-r1.ebuild +++ b/media-sound/gtick/gtick-0.5.5-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -22,11 +22,10 @@ DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig nls? ( sys-devel/gettext )" -RESTRICT="test" - PATCHES=( "${FILESDIR}"/${PN}-0.5.5-desktop.patch "${FILESDIR}"/${PN}-0.5.5-autotools.patch + "${FILESDIR}"/${PN}-0.5.5-no-dmalloc-tests.patch ) src_prepare() { @@ -39,6 +38,8 @@ src_prepare() { } src_configure() { + #append-cflags -std=gnu17 + local myeconfargs=( $(use_enable nls) $(use_with sndfile)