diff options
author | Gene Carlson | 2023-09-09 08:17:41 +0200 |
---|---|---|
committer | Matteo Bernardini | 2024-04-27 10:31:23 +0200 |
commit | 17815afc56d28e25f7872d2c8fae41e85404bb1c (patch) | |
tree | e7d64008f7f2646c2923e49708188d362aa6f66a | |
parent | 68ac93024440c1dcb61e579018ce241a1ab44180 (diff) | |
download | slackbuilds-bazel.tar.gz |
development/bazel: Add missing include for gcc >= 13.x.bazel
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | development/bazel/abseil-missing-stdint.patch | 10 | ||||
-rw-r--r-- | development/bazel/apply-abseil-stdint.patch | 13 | ||||
-rw-r--r-- | development/bazel/bazel.SlackBuild | 6 |
3 files changed, 28 insertions, 1 deletions
diff --git a/development/bazel/abseil-missing-stdint.patch b/development/bazel/abseil-missing-stdint.patch new file mode 100644 index 0000000000..725a8925a3 --- /dev/null +++ b/development/bazel/abseil-missing-stdint.patch @@ -0,0 +1,10 @@ +--- abseil-cpp.orig/absl/strings/internal/str_format/extension.h ++++ abseil-cpp/absl/strings/internal/str_format/extension.h +@@ -26,6 +26,7 @@ + #include "absl/base/port.h" + #include "absl/meta/type_traits.h" + #include "absl/strings/internal/str_format/output.h" ++#include <cstdint> + #include "absl/strings/string_view.h" + + namespace absl { diff --git a/development/bazel/apply-abseil-stdint.patch b/development/bazel/apply-abseil-stdint.patch new file mode 100644 index 0000000000..b5065aa1b6 --- /dev/null +++ b/development/bazel/apply-abseil-stdint.patch @@ -0,0 +1,13 @@ +--- distdir_deps.bzl.orig 2023-09-05 16:10:13.000617742 +0900 ++++ distdir_deps.bzl 2023-09-05 16:10:42.471484181 +0900 +@@ -163,6 +163,10 @@ + }, + "com_google_absl": { + "archive": "20211102.0.tar.gz", ++ "patch_args": ["-p1"], ++ "patches": [ ++ "//:abseil-missing-stdint.patch" ++ ], + "sha256": "dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4", + "urls": [ + "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz", diff --git a/development/bazel/bazel.SlackBuild b/development/bazel/bazel.SlackBuild index 846294510c..2095aa1644 100644 --- a/development/bazel/bazel.SlackBuild +++ b/development/bazel/bazel.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bazel VERSION=${VERSION:-5.4.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -76,6 +76,10 @@ 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 {} \; +# Missing include. +patch -p0 < $CWD/apply-abseil-stdint.patch +cp $CWD/abseil-missing-stdint.patch . + # Export environmental variables # Please change JAVA_HOME if not using zulu-openjdk11 export JAVA_HOME=/usr/lib$LIBDIRSUFFIX/zulu-openjdk11 |