From 994867d53667f9e643dec99134ef2b4ffee6cc7f Mon Sep 17 00:00:00 2001 From: maxice8 <30738253+maxice8@users.noreply.github.com> Date: Fri, 13 Oct 2017 04:30:57 -0300 Subject: [PATCH] bubblewrap: update to 0.2.0. (#8035) --- .../fix-TEMP_FAILTURE_RETRY-musl.patch | 19 +++++++++++++++++++ srcpkgs/bubblewrap/template | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch diff --git a/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch b/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch new file mode 100644 index 00000000000..5781d7e7934 --- /dev/null +++ b/srcpkgs/bubblewrap/patches/fix-TEMP_FAILTURE_RETRY-musl.patch @@ -0,0 +1,19 @@ +--- bubblewrap.c ++++ bubblewrap.c +@@ -42,6 +42,16 @@ + #define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */ + #endif + ++/* taken from glibc unistd.h and fixes musl */ ++#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 ++ + /* Globals to avoid having to use getuid(), since the uid/gid changes during runtime */ + static uid_t real_uid; + static gid_t real_gid; diff --git a/srcpkgs/bubblewrap/template b/srcpkgs/bubblewrap/template index 884c159fe2b..6b002c04f24 100644 --- a/srcpkgs/bubblewrap/template +++ b/srcpkgs/bubblewrap/template @@ -1,7 +1,7 @@ # Template file for 'bubblewrap' pkgname=bubblewrap -version=0.1.8 -revision=2 +version=0.2.0 +revision=1 build_style=gnu-configure hostmakedepends="automake pkg-config" makedepends="libcap-devel" @@ -10,7 +10,7 @@ maintainer="Duncaen " license="LGPL-2" homepage="https://github.com/projectatomic/bubblewrap" distfiles="https://github.com/projectatomic/bubblewrap/archive/v${version}.tar.gz" -checksum=64f264f1ae3d7b8fbcfb7102592d42096f41ac7edda97ce57486aa3e05d8d489 +checksum=50d612a2775e402105e26f8a9ab4ed314c7ba65ff85d4d051e96970b7136e99c pre_configure() { autoreconf -fi