aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Oltmanns <alpine@oltmanns.dev>2020-12-31 17:29:31 +0100
committerFrank Oltmanns <alpine@oltmanns.dev>2020-12-31 17:53:12 +0000
commit4d8dd9f8687197258377623abc9c630ef6dd96f8 (patch)
treed001d003844a40862db3478ff176c3917c81ac14
parent6c84e88f96f50a8c99a4c26b8dad5ea2f6129073 (diff)
downloadaports-4d8dd9f8687197258377623abc9c630ef6dd96f8.tar.gz
aports-4d8dd9f8687197258377623abc9c630ef6dd96f8.tar.bz2
aports-4d8dd9f8687197258377623abc9c630ef6dd96f8.tar.xz
testing/bazel3: Updated to 3.7.2
-rw-r--r--testing/bazel3/APKBUILD8
-rw-r--r--testing/bazel3/patch_TEMP_FAILURE_RETRY.patch20
2 files changed, 25 insertions, 3 deletions
diff --git a/testing/bazel3/APKBUILD b/testing/bazel3/APKBUILD
index e1e6766162..17071a84e5 100644
--- a/testing/bazel3/APKBUILD
+++ b/testing/bazel3/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=bazel3
-pkgver=3.5.0
+pkgver=3.7.2
pkgrel=0
pkgdesc="A fast, scalable, multi-language and extensible build system"
url="https://bazel.build/"
@@ -19,7 +19,8 @@ subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
"
-source="https://github.com/bazelbuild/bazel/releases/download/$pkgver/bazel-$pkgver-dist.zip"
+source="https://github.com/bazelbuild/bazel/releases/download/$pkgver/bazel-$pkgver-dist.zip
+ patch_TEMP_FAILURE_RETRY.patch"
build() {
# based on
@@ -93,4 +94,5 @@ unpack() {
unzip "$srcdir"/bazel-$pkgver-dist.zip -d "$builddir" > /dev/null
}
-sha512sums="d9e1bac8422b48474709cae5b5a1cba2d71780e2666594d397d874bb86bb13e53b4b953800b4eb50c2a02385fa576bf7b4c2a71534bf13fbdb03d8b96a481f6a bazel-3.5.0-dist.zip"
+sha512sums="e8746ef5ec22feb95e9dbbddb3fb56cf8f49c80f326fc2a4e0ce2619607826fac22f46bfb995daee55bf9ffabb9d646b8454be2bce7b479da5cf2a7e5b3be62b bazel-3.7.2-dist.zip
+b9e54443431fd0523831a777ab193515151402e61fd74bb2bbf5362136c5bf0fdc3072609a6b52d43b3ff3778759250d81c888c4e158d3d54f78f5a7ff6337c7 patch_TEMP_FAILURE_RETRY.patch"
diff --git a/testing/bazel3/patch_TEMP_FAILURE_RETRY.patch b/testing/bazel3/patch_TEMP_FAILURE_RETRY.patch
new file mode 100644
index 0000000000..127c5edbe5
--- /dev/null
+++ b/testing/bazel3/patch_TEMP_FAILURE_RETRY.patch
@@ -0,0 +1,20 @@
+--- a/src/main/tools/linux-sandbox-pid1.cc.old
++++ b/src/main/tools/linux-sandbox-pid1.cc
+@@ -54,6 +54,17 @@
+ #include "src/main/tools/logging.h"
+ #include "src/main/tools/process-tools.h"
+
++// TEPM_FAILURE_RETRY is glibc specific and is not available on e.g. musl
++// Taken from glibc unistd.h
++#ifndef TEMP_FAILURE_RETRY
++# define TEMP_FAILURE_RETRY(expression) \
++ (__extension__ \
++ ({ long int __result; \
++ do __result = (long int) (expression); \
++ while (__result == -1L && errno == EINTR); \
++ __result; }))
++#endif
++
+ static int global_child_pid;
+
+ static void SetupSelfDestruction(int *sync_pipe) {