summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2023-09-08 20:06:07 +0200
committer Matteo Bernardini2024-04-20 17:22:01 +0200
commite2029643559adb2e0da6347f1ade6b8efff0e32c (patch)
tree0ea6bd29d418ebe1744f6df6963e381b9e38da1b
parent7348664936073e3ad54706addd43560c23807ed8 (diff)
downloadslackbuilds-SimGear.tar.gz
libraries/SimGear: Patch for gcc >= 13.x.SimGear
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--libraries/SimGear/SimGear.SlackBuild2
-rw-r--r--libraries/SimGear/compositor-pass-missing-array-include.patch11
2 files changed, 13 insertions, 0 deletions
diff --git a/libraries/SimGear/SimGear.SlackBuild b/libraries/SimGear/SimGear.SlackBuild
index 3b611b701f..485d532e1e 100644
--- a/libraries/SimGear/SimGear.SlackBuild
+++ b/libraries/SimGear/SimGear.SlackBuild
@@ -81,6 +81,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/compositor-pass-missing-array-include.patch
+
mkdir -p build
cd build
cmake \
diff --git a/libraries/SimGear/compositor-pass-missing-array-include.patch b/libraries/SimGear/compositor-pass-missing-array-include.patch
new file mode 100644
index 0000000000..5572f5f9e4
--- /dev/null
+++ b/libraries/SimGear/compositor-pass-missing-array-include.patch
@@ -0,0 +1,11 @@
+diff -ur simgear-2020.3.17.orig/simgear/scene/viewer/Compositor.hxx simgear-2020.3.17/simgear/scene/viewer/Compositor.hxx
+--- simgear-2020.3.17.orig/simgear/scene/viewer/Compositor.hxx 2022-11-20 19:01:30.000000000 +0100
++++ simgear-2020.3.17/simgear/scene/viewer/Compositor.hxx 2023-03-10 18:40:59.219808993 +0100
+@@ -17,6 +17,7 @@
+ #ifndef SG_COMPOSITOR_HXX
+ #define SG_COMPOSITOR_HXX
+
++#include <array>
+ #include <unordered_map>
+ #include <vector>
+