aboutsummaryrefslogtreecommitdiff
path: root/system/sbbdep
diff options
context:
space:
mode:
authorGiancarlo Dessì <gian@giand.it>2022-01-20 08:30:14 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-01-22 08:22:58 +0700
commitd6399c6d7f45a6ebd9ffdd3614867afbb9abcb36 (patch)
tree66b09716b3821cc9b518c6a98a5024b90e40fa9e /system/sbbdep
parentf61f7624526b154ee0c1e165d5524e9176cd956d (diff)
system/sbbdep: Patch for gcc >= 11.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/sbbdep')
-rw-r--r--system/sbbdep/gcc11.patch11
-rw-r--r--system/sbbdep/sbbdep.SlackBuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/system/sbbdep/gcc11.patch b/system/sbbdep/gcc11.patch
new file mode 100644
index 0000000000000..0211711e83578
--- /dev/null
+++ b/system/sbbdep/gcc11.patch
@@ -0,0 +1,11 @@
+--- libsl3/src/sl3/value.cpp 2017-08-05 14:01:24.000000000 -0400
++++ libsl3/src/sl3/value.cpp.new 2022-01-19 21:38:19.648276809 -0500
+@@ -10,6 +10,8 @@
+ #include <sl3/value.hpp>
+
+ #include <algorithm>
++#include <stdexcept>
++#include <limits>
+ #include <climits>
+ #include <cmath>
+ #include <iomanip>
diff --git a/system/sbbdep/sbbdep.SlackBuild b/system/sbbdep/sbbdep.SlackBuild
index 3b28e89c60ef4..8ccbf189bb54a 100644
--- a/system/sbbdep/sbbdep.SlackBuild
+++ b/system/sbbdep/sbbdep.SlackBuild
@@ -86,6 +86,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 {} \;
+# Fix issue with gcc 11+
+patch -p0 < $CWD/gcc11.patch
mkdir -p build
cd build