commit:     a977584dd98fc70320153189c12fdeb8e33ed432
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  2 15:52:24 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Jul  2 15:52:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a977584d

games-emulation/pcsx2: further fix build with musl

Due to a missing header, likely only fails with some
specific combination of clang+libstdc+musl or so.

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

 games-emulation/pcsx2/files/pcsx2-1.7.5835-musl-header.patch | 9 +++++++++
 games-emulation/pcsx2/pcsx2-1.7.5835.ebuild                  | 1 +
 games-emulation/pcsx2/pcsx2-1.7.5913.ebuild                  | 1 +
 games-emulation/pcsx2/pcsx2-9999.ebuild                      | 1 +
 4 files changed, 12 insertions(+)

diff --git a/games-emulation/pcsx2/files/pcsx2-1.7.5835-musl-header.patch 
b/games-emulation/pcsx2/files/pcsx2-1.7.5835-musl-header.patch
new file mode 100644
index 000000000000..f945bae30bbd
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-1.7.5835-musl-header.patch
@@ -0,0 +1,9 @@
+https://bugs.gentoo.org/935352
+--- a/pcsx2/SPU2/defs.h
++++ b/pcsx2/SPU2/defs.h
+@@ -8,4 +8,5 @@
+ #include <algorithm>
+ #include <array>
++#include <cstdio>
+ 
+ // 
--------------------------------------------------------------------------------------

diff --git a/games-emulation/pcsx2/pcsx2-1.7.5835.ebuild 
b/games-emulation/pcsx2/pcsx2-1.7.5835.ebuild
index ece5dfc93cc5..50a1ae3cb150 100644
--- a/games-emulation/pcsx2/pcsx2-1.7.5835.ebuild
+++ b/games-emulation/pcsx2/pcsx2-1.7.5835.ebuild
@@ -79,6 +79,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.7.4667-flags.patch
        "${FILESDIR}"/${PN}-1.7.5232-cubeb-automagic.patch
        "${FILESDIR}"/${PN}-1.7.5835-vanilla-shaderc.patch
+       "${FILESDIR}"/${PN}-1.7.5835-musl-header.patch
 )
 
 src_prepare() {

diff --git a/games-emulation/pcsx2/pcsx2-1.7.5913.ebuild 
b/games-emulation/pcsx2/pcsx2-1.7.5913.ebuild
index deabb28cc4af..ed8749726f75 100644
--- a/games-emulation/pcsx2/pcsx2-1.7.5913.ebuild
+++ b/games-emulation/pcsx2/pcsx2-1.7.5913.ebuild
@@ -81,6 +81,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.7.5232-cubeb-automagic.patch
        "${FILESDIR}"/${PN}-1.7.5835-vanilla-shaderc.patch
        "${FILESDIR}"/${PN}-1.7.5855-no-libbacktrace.patch
+       "${FILESDIR}"/${PN}-1.7.5835-musl-header.patch
        "${FILESDIR}"/${PN}-1.7.5913-musl-cache.patch
 )
 

diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild 
b/games-emulation/pcsx2/pcsx2-9999.ebuild
index deabb28cc4af..ed8749726f75 100644
--- a/games-emulation/pcsx2/pcsx2-9999.ebuild
+++ b/games-emulation/pcsx2/pcsx2-9999.ebuild
@@ -81,6 +81,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.7.5232-cubeb-automagic.patch
        "${FILESDIR}"/${PN}-1.7.5835-vanilla-shaderc.patch
        "${FILESDIR}"/${PN}-1.7.5855-no-libbacktrace.patch
+       "${FILESDIR}"/${PN}-1.7.5835-musl-header.patch
        "${FILESDIR}"/${PN}-1.7.5913-musl-cache.patch
 )
 

Reply via email to