From 37be0b74de45e1a43925676c48b851a4be6aaa37d4cf85ce236e20aac44f44b6 Mon Sep 17 00:00:00 2001 From: c unix Date: Thu, 9 Mar 2023 21:12:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/games/godot?expand=0&rev=56 --- scons_regression.patch | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scons_regression.patch b/scons_regression.patch index 9708160..79a87d7 100644 --- a/scons_regression.patch +++ b/scons_regression.patch @@ -6,15 +6,20 @@ 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 --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py -index 549319a750..0214ebd8bd 100644 +--- + +diff -r -U 5 a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py -@@ -306,6 +306,7 @@ def configure(env: "Environment"): +@@ -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: \ No newline at end of file + else: + print("Warning: PulseAudio development libraries not found. Disabling the PulseAudio audio driver.") + env["pulseaudio"] = False