From c9cb785a5cd61effaa1b313bc278d0a3263925bb Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 10 Jan 2020 17:40:51 +0100 Subject: [PATCH] tlsdate: add ppc32 support in sandbox patch --- .../tlsdate/patches/{aarch64-ppc64.patch => sandbox.patch} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename srcpkgs/tlsdate/patches/{aarch64-ppc64.patch => sandbox.patch} (82%) diff --git a/srcpkgs/tlsdate/patches/aarch64-ppc64.patch b/srcpkgs/tlsdate/patches/sandbox.patch similarity index 82% rename from srcpkgs/tlsdate/patches/aarch64-ppc64.patch rename to srcpkgs/tlsdate/patches/sandbox.patch index a66c457663..f5afd54f28 100644 --- a/srcpkgs/tlsdate/patches/aarch64-ppc64.patch +++ b/srcpkgs/tlsdate/patches/sandbox.patch @@ -1,15 +1,17 @@ --- src/seccomp.c.orig 2018-12-20 16:56:30.070932156 +0100 +++ src/seccomp.c 2018-12-20 16:57:19.849670660 +0100 -@@ -43,6 +43,12 @@ +@@ -43,6 +43,14 @@ # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386 #elif defined(__x86_64__) # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64 +#elif defined(__aarch64__) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64 -+#elif defined(__powerpc64le__) ++#elif defined(__powerpc64__) && defined(__LITTLE_ENDIAN__) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE +#elif defined(__powerpc64__) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64 ++#elif defined(__powerpc__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC #elif defined(__arm__) # ifndef EM_ARM # define EM_ARM 40