commit: 5aca3e490b9eb281ad13d30f1e614aef46ede80e Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Mon Nov 18 22:55:47 2024 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Mon Nov 18 22:56:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aca3e49
media-sound/xmms2: backport c23 fixes for gcc15 Closes: https://bugs.gentoo.org/943862 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> media-sound/xmms2/files/xmms2-0.9.4-c23.patch | 33 +++++++++++++++++++++++++++ media-sound/xmms2/xmms2-0.9.4.ebuild | 1 + 2 files changed, 34 insertions(+) diff --git a/media-sound/xmms2/files/xmms2-0.9.4-c23.patch b/media-sound/xmms2/files/xmms2-0.9.4-c23.patch new file mode 100644 index 000000000000..1f74cb4c4a0b --- /dev/null +++ b/media-sound/xmms2/files/xmms2-0.9.4-c23.patch @@ -0,0 +1,33 @@ +https://bugs.gentoo.org/943862 +https://github.com/xmms2/xmms2-devel/commit/b6a6e8c20b +https://github.com/xmms2/xmms2-devel/commit/fdf542b408 +https://github.com/xmms2/xmms2-devel/commit/5bd52ac2e5 +--- a/src/clients/lib/xmmsclient/service/client.c ++++ b/src/clients/lib/xmmsclient/service/client.c +@@ -348,6 +348,6 @@ + xmmsc_sc_interface_entity_t *ifent; + +- x_api_error_if (!name, "with NULL name.", false); +- x_api_error_if (!validate_entity_name (name), "with invalid name", false); ++ x_api_error_if (!name, "with NULL name.", NULL); ++ x_api_error_if (!validate_entity_name (name), "with invalid name", NULL); + + x_return_null_if_fail (parent); +--- a/src/clients/lib/xmmsclient/visualization/unixshm.c ++++ b/src/clients/lib/xmmsclient/visualization/unixshm.c +@@ -29,5 +29,5 @@ + if (t->shmid == -1) { + c->error = strdup ("Couldn't create the shared memory!"); +- return false; ++ return NULL; + } + /* attach early, so that the server doesn't think we aren't there */ +--- a/src/clients/lib/xmmsclient/xmmsclient.c ++++ b/src/clients/lib/xmmsclient/xmmsclient.c +@@ -223,5 +223,5 @@ + xmmsc_get_last_error (xmmsc_connection_t *c) + { +- x_api_error_if (!c, "with a NULL connection", false); ++ x_api_error_if (!c, "with a NULL connection", NULL); + return c->error; + } diff --git a/media-sound/xmms2/xmms2-0.9.4.ebuild b/media-sound/xmms2/xmms2-0.9.4.ebuild index 870046b6842d..a4011e18d871 100644 --- a/media-sound/xmms2/xmms2-0.9.4.ebuild +++ b/media-sound/xmms2/xmms2-0.9.4.ebuild @@ -133,6 +133,7 @@ QA_CONFIG_IMPL_DECL_SKIP=( PATCHES=( "${FILESDIR}"/${PN}-0.9.1-cpp-client.patch "${FILESDIR}"/${PN}-0.9.1-faad.patch + "${FILESDIR}"/${P}-c23.patch ) src_prepare() {
