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 }