Accepting request 1070572 from games
factory fails since scons update 4.5.1 OBS-URL: https://build.opensuse.org/request/show/1070572 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/godot?expand=0&rev=25
This commit is contained in:
commit
2403f9d7a1
59
VMA-fix-gcc13.patch
Normal file
59
VMA-fix-gcc13.patch
Normal file
@ -0,0 +1,59 @@
|
||||
From b113e6d4ff18dc1b1e6f4ec1bd0e307fd1d8623d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= <rverschelde@gmail.com>
|
||||
Date: Thu, 9 Mar 2023 10:46:35 +0100
|
||||
Subject: [PATCH] Vulkan: Fix VMA build with GCC 13
|
||||
|
||||
Fixes #74647.
|
||||
---
|
||||
thirdparty/vulkan/patches/VMA-fix-gcc13.patch | 26 +++++++++++++++++++
|
||||
thirdparty/vulkan/vk_mem_alloc.h | 4 +++
|
||||
2 files changed, 30 insertions(+)
|
||||
create mode 100644 thirdparty/vulkan/patches/VMA-fix-gcc13.patch
|
||||
|
||||
diff --git a/thirdparty/vulkan/patches/VMA-fix-gcc13.patch b/thirdparty/vulkan/patches/VMA-fix-gcc13.patch
|
||||
new file mode 100644
|
||||
index 000000000000..08928503a768
|
||||
--- /dev/null
|
||||
+++ b/thirdparty/vulkan/patches/VMA-fix-gcc13.patch
|
||||
@@ -0,0 +1,26 @@
|
||||
+From 29d492b60c84ca784ea0943efc7d2e6e0f3bdaac Mon Sep 17 00:00:00 2001
|
||||
+From: Adam Sawicki <adam.sawicki@amd.com>
|
||||
+Date: Thu, 19 Jan 2023 13:19:55 +0100
|
||||
+Subject: [PATCH] Added missing #include <cstdio>
|
||||
+
|
||||
+For snprintf, for compatibility with GCC 13.
|
||||
+Fixes #312 - thanks @marxin !
|
||||
+---
|
||||
+ thirdparty/vulkan/vk_mem_alloc.h | 4 ++++
|
||||
+ 1 file changed, 4 insertions(+)
|
||||
+
|
||||
+diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
|
||||
+index b787c36..0fe459b 100644
|
||||
+--- a/thirdparty/vulkan/vk_mem_alloc.h
|
||||
++++ b/thirdparty/vulkan/vk_mem_alloc.h
|
||||
+@@ -2614,6 +2614,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
|
||||
+ #include <bit> // For std::popcount
|
||||
+ #endif
|
||||
+
|
||||
++#if VMA_STATS_STRING_ENABLED
|
||||
++ #include <cstdio> // For snprintf
|
||||
++#endif
|
||||
++
|
||||
+ /*******************************************************************************
|
||||
+ CONFIGURATION SECTION
|
||||
+
|
||||
diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
|
||||
index 184ee005d827..ea30060649f2 100644
|
||||
--- a/thirdparty/vulkan/vk_mem_alloc.h
|
||||
+++ b/thirdparty/vulkan/vk_mem_alloc.h
|
||||
@@ -2582,6 +2582,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
|
||||
#include <bit> // For std::popcount
|
||||
#endif
|
||||
|
||||
+#if VMA_STATS_STRING_ENABLED
|
||||
+ #include <cstdio> // For snprintf
|
||||
+#endif
|
||||
+
|
||||
/*******************************************************************************
|
||||
CONFIGURATION SECTION
|
||||
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 9 12:00:00 UTC 2023 - cunix@mail.de
|
||||
|
||||
- added scons_regression.patch for scons 4.5.1 until 4.5.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 9 11:54:06 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Include upstream fix for GCC 13: VMA-fix-gcc13.patch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 3 12:00:00 UTC 2023 - cunix@mail.de
|
||||
|
||||
|
14
godot.spec
14
godot.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package godot
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2017 Luke Jones, luke.nukem.jones@gmail.com
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -36,6 +36,8 @@ Source1: https://downloads.tuxfamily.org/godotengine/%{version}/%{name}-%
|
||||
Patch0: certs_fallback.patch
|
||||
# Heap-buffer-overflow in bundled tinyexr
|
||||
Patch1: tinyexr_thirdparty_upstream.patch
|
||||
Patch2: VMA-fix-gcc13.patch
|
||||
Patch3: scons_regression.patch
|
||||
BuildRequires: Mesa-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
@ -62,11 +64,11 @@ BuildRequires: pkgconfig(theoradec)
|
||||
BuildRequires: pkgconfig(vorbis)
|
||||
BuildRequires: pkgconfig(vorbisfile)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xkbcommon)
|
||||
BuildRequires: pkgconfig(xcursor)
|
||||
BuildRequires: pkgconfig(xext)
|
||||
BuildRequires: pkgconfig(xi)
|
||||
BuildRequires: pkgconfig(xinerama)
|
||||
BuildRequires: pkgconfig(xkbcommon)
|
||||
BuildRequires: pkgconfig(xrandr)
|
||||
BuildRequires: pkgconfig(xrender)
|
||||
|
||||
@ -86,10 +88,10 @@ BuildRequires: pkgconfig(freetype2) >= 2.10.2
|
||||
# Using bundled freetype2 throws build errors, if
|
||||
# we don't use bundled libpng and zlib as well.
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(graphite2)
|
||||
BuildRequires: pkgconfig(harfbuzz)
|
||||
BuildRequires: glslang-devel
|
||||
BuildRequires: mbedtls-devel
|
||||
BuildRequires: pkgconfig(graphite2)
|
||||
BuildRequires: pkgconfig(harfbuzz)
|
||||
BuildRequires: pkgconfig(libwslay)
|
||||
BuildRequires: pkgconfig(libzstd)
|
||||
BuildRequires: pkgconfig(miniupnpc)
|
||||
@ -126,6 +128,7 @@ Provides: bundled(minizip) = 1.2.13
|
||||
|
||||
Provides: bundled(FastLZ)
|
||||
Provides: bundled(FastNoiseLite)
|
||||
Provides: bundled(JetBrainsMono_Regular)
|
||||
Provides: bundled(RVO2-3D)
|
||||
Provides: bundled(Tangent_Space_Normal_Maps)
|
||||
Provides: bundled(amd-fsr) = 1.0.2
|
||||
@ -137,7 +140,6 @@ Provides: bundled(doctest) = 2.4.9
|
||||
Provides: bundled(etcpak) = 1.0
|
||||
Provides: bundled(glad) = 2.0.2
|
||||
Provides: bundled(google-droid-fonts)
|
||||
Provides: bundled(JetBrainsMono_Regular)
|
||||
Provides: bundled(hqx)
|
||||
Provides: bundled(icu4c) = 72.1
|
||||
Provides: bundled(ifaddrs-android)
|
||||
@ -232,6 +234,8 @@ Bash command line completion support for %{name} and %{name}-runner
|
||||
%setup -q -n %{name}-%{version}-stable
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
cp thirdparty/README.md thirdparty_README.md
|
||||
|
||||
|
25
scons_regression.patch
Normal file
25
scons_regression.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From: cunix@mail.de
|
||||
Date: 2023-03-09 22:00:00
|
||||
Subject: scons 4.5.1 regression
|
||||
References: https://github.com/godotengine/godot/issues/74683
|
||||
|
||||
work around regression of scons 4.5.1
|
||||
expected to be fixed with 4.5.2
|
||||
|
||||
---
|
||||
|
||||
diff -r -U 5 a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
|
||||
--- a/platform/linuxbsd/detect.py
|
||||
+++ b/platform/linuxbsd/detect.py
|
||||
@@ -305,10 +305,11 @@
|
||||
env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"])
|
||||
|
||||
if env["pulseaudio"]:
|
||||
if not env["use_sowrap"]:
|
||||
if os.system("pkg-config --exists libpulse") == 0: # 0 means found
|
||||
+ env["CPPDEFINES"] = list(env["CPPDEFINES"])
|
||||
env.ParseConfig("pkg-config libpulse --cflags --libs")
|
||||
env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
|
||||
else:
|
||||
print("Warning: PulseAudio development libraries not found. Disabling the PulseAudio audio driver.")
|
||||
env["pulseaudio"] = False
|
Loading…
Reference in New Issue
Block a user