From cd1d525ac3a5b02cae66b23d12a36dcdad953a79 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 10 Jan 2020 17:40:01 +0100 Subject: [PATCH] kcgi: update seccomp patch for ppc32 --- srcpkgs/kcgi/patches/ppc-sandbox.patch | 18 ++++++++++++++++++ srcpkgs/kcgi/patches/ppc64-sandbox.patch | 15 --------------- srcpkgs/kcgi/template | 1 + 3 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 srcpkgs/kcgi/patches/ppc-sandbox.patch delete mode 100644 srcpkgs/kcgi/patches/ppc64-sandbox.patch diff --git a/srcpkgs/kcgi/patches/ppc-sandbox.patch b/srcpkgs/kcgi/patches/ppc-sandbox.patch new file mode 100644 index 00000000000..17ed63ff9a8 --- /dev/null +++ b/srcpkgs/kcgi/patches/ppc-sandbox.patch @@ -0,0 +1,18 @@ +--- configure ++++ configure +@@ -444,6 +444,15 @@ if [ ${HAVE_SECCOMP_FILTER} -eq 1 ]; then + arm*) + echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM" + ;; ++ ppc64le) ++ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE" ++ ;; ++ ppc64) ++ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64" ++ ;; ++ ppc) ++ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC" ++ ;; + esac + fi + diff --git a/srcpkgs/kcgi/patches/ppc64-sandbox.patch b/srcpkgs/kcgi/patches/ppc64-sandbox.patch deleted file mode 100644 index b1f1bf329f3..00000000000 --- a/srcpkgs/kcgi/patches/ppc64-sandbox.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- configure -+++ configure -@@ -438,6 +438,12 @@ if [ ${HAVE_SECCOMP_FILTER} -eq 1 ]; then - arm*) - echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM" - ;; -+ ppc64le) -+ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE" -+ ;; -+ ppc64) -+ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64" -+ ;; - esac - fi - diff --git a/srcpkgs/kcgi/template b/srcpkgs/kcgi/template index 3f3a741dc71..6da09244332 100644 --- a/srcpkgs/kcgi/template +++ b/srcpkgs/kcgi/template @@ -27,6 +27,7 @@ seccomp_audit_get_suffix() { aarch64*) echo "AARCH64" ;; ppc64le*) echo "PPC64LE" ;; ppc64*) echo "PPC64" ;; + ppc*) echo "PPC" ;; *) echo "UNKNOWN" ;; esac }