commit:     c519615b50883fa073847cdace575e98252fd3b1
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 21 00:18:38 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Nov 21 00:19:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c519615b

games-engines/xzip: fix build w/ upcoming clang16

Closes: https://bugs.gentoo.org/874906
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-engines/xzip/files/xzip-1.8.2-clang16.patch                | 9 +++++++++
 .../xzip/{xzip-1.8.2-r3.ebuild => xzip-1.8.2-r4.ebuild}          | 4 ++++
 2 files changed, 13 insertions(+)

diff --git a/games-engines/xzip/files/xzip-1.8.2-clang16.patch 
b/games-engines/xzip/files/xzip-1.8.2-clang16.patch
new file mode 100644
index 000000000000..ce702ba3e86e
--- /dev/null
+++ b/games-engines/xzip/files/xzip-1.8.2-clang16.patch
@@ -0,0 +1,9 @@
+Ideally belongs in xio.h, but using requires including more headers.
+https://bugs.gentoo.org/874906
+--- a/osdepend.c
++++ b/osdepend.c
+@@ -13,2 +13,4 @@
+ 
++void xio_bell();
++
+ /* File names will be O/S dependent */

diff --git a/games-engines/xzip/xzip-1.8.2-r3.ebuild 
b/games-engines/xzip/xzip-1.8.2-r4.ebuild
similarity index 92%
rename from games-engines/xzip/xzip-1.8.2-r3.ebuild
rename to games-engines/xzip/xzip-1.8.2-r4.ebuild
index 50bfddd967c0..04394c46e036 100644
--- a/games-engines/xzip/xzip-1.8.2-r3.ebuild
+++ b/games-engines/xzip/xzip-1.8.2-r4.ebuild
@@ -19,6 +19,10 @@ RDEPEND=${DEPEND}
 
 S="${WORKDIR}/xzip"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-clang16.patch
+)
+
 src_compile() {
        tc-export CC
        emake \

Reply via email to