2fd8d4df94
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
19 lines
708 B
Diff
19 lines
708 B
Diff
--- a/seccomp-sandbox.c 2020-01-30 15:59:29.517540311 +0100
|
|
+++ b/seccomp-sandbox.c 2020-01-30 16:03:43.046273793 +0100
|
|
@@ -40,6 +40,16 @@
|
|
#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386
|
|
#elif defined __x86_64__ || defined __amd64__
|
|
#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64
|
|
+#elif defined __aarch64__
|
|
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64
|
|
+#elif defined __arm__
|
|
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM
|
|
+#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
|
|
#endif
|
|
#endif /* SECCOMP_AUDIT_ARCH */
|
|
|