commit:     10df240119d2c7c5dbd0a6414776a647fe8e5506
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 15 19:07:55 2025 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Fri Aug 15 19:07:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10df2401

games-emulation/snes9x: Add patch to fix some build failures

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 .../snes9x/files/snes9x-1.63-compile.patch         | 35 ++++++++++++++++++++++
 games-emulation/snes9x/snes9x-1.63.ebuild          |  1 +
 2 files changed, 36 insertions(+)

diff --git a/games-emulation/snes9x/files/snes9x-1.63-compile.patch 
b/games-emulation/snes9x/files/snes9x-1.63-compile.patch
new file mode 100644
index 000000000000..23efcbf2ea8a
--- /dev/null
+++ b/games-emulation/snes9x/files/snes9x-1.63-compile.patch
@@ -0,0 +1,35 @@
+diff --git a/external/glslang/SPIRV/SpvBuilder.h 
b/external/glslang/SPIRV/SpvBuilder.h
+index 02e9cf40..f5d9c2c6 100644
+--- a/external/glslang/SPIRV/SpvBuilder.h
++++ b/external/glslang/SPIRV/SpvBuilder.h
+@@ -61,6 +61,7 @@ namespace spv {
+ #include <set>
+ #include <sstream>
+ #include <stack>
++#include <cstdint>
+ #include <unordered_map>
+ #include <map>
+
+diff --git a/unix/Makefile.in b/unix/Makefile.in
+index a87cd079..7c78a0a5 100644
+--- a/unix/Makefile.in
++++ b/unix/Makefile.in
+@@ -37,7 +37,7 @@ GASM       = @CXX@
+ INCLUDES   += -I. -I.. -I../apu/ -I../apu/bapu -I../jma/ -I../filter/
+
+ CCFLAGS    = @S9XFLGS@ @S9XDEFS@ $(DEFS)
+-CFLAGS     = $(CCFLAGS)
++CFLAGS     += $(CCFLAGS)
+
+ .SUFFIXES: .o .cpp .c .cc .h .m .i .s .obj
+ 
+diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt
+index 6d13d493..ef56eea2 100644
+--- a/gtk/CMakeLists.txt
++++ b/gtk/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.18)
++cmake_minimum_required(VERSION 4.0)
+ project(snes9x-gtk VERSION 1.63)
+
+ option(USE_SLANG "Build support for Vulkan output and .slangp shaders" ON)

diff --git a/games-emulation/snes9x/snes9x-1.63.ebuild 
b/games-emulation/snes9x/snes9x-1.63.ebuild
index c471c2e5994a..f2585b46c09e 100644
--- a/games-emulation/snes9x/snes9x-1.63.ebuild
+++ b/games-emulation/snes9x/snes9x-1.63.ebuild
@@ -72,6 +72,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.63-flags.patch
        "${FILESDIR}"/${PN}-1.63-optional-wayland.patch
        "${FILESDIR}"/${PN}-1.63-vulkan-fix.patch
+       "${FILESDIR}"/${PN}-1.63-compile.patch
 )
 
 pkg_setup() {

Reply via email to