system/sbbdep: Patch for gcc >= 11.x.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Giancarlo Dessì 2022-01-20 08:30:14 +01:00 committed by Willy Sudiarto Raharjo
parent f61f762452
commit d6399c6d7f
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 13 additions and 0 deletions

11
system/sbbdep/gcc11.patch Normal file
View File

@ -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>

View File

@ -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