```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 ```
26 lines
738 B
Diff
26 lines
738 B
Diff
From 836f3efb84a703b3594906572a54616d25cecf5e Mon Sep 17 00:00:00 2001
|
|
From: q66 <daniel@octaforge.org>
|
|
Date: Thu, 21 Jan 2021 21:59:12 +0100
|
|
Subject: [PATCH] add ppcle arch tuple
|
|
|
|
---
|
|
src/basic/architecture.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git src/basic/architecture.h src/basic/architecture.h
|
|
index 620b522..afdff7a 100644
|
|
--- a/src/basic/architecture.h
|
|
+++ b/src/basic/architecture.h
|
|
@@ -94,7 +94,7 @@ int uname_architecture(void);
|
|
# endif
|
|
# else
|
|
# define native_architecture() ARCHITECTURE_PPC_LE
|
|
-# error "Missing LIB_ARCH_TUPLE for PPCLE"
|
|
+# define LIB_ARCH_TUPLE "powerpcle-linux-gnu"
|
|
# endif
|
|
#elif defined(__ia64__)
|
|
# define native_architecture() ARCHITECTURE_IA64
|
|
--
|
|
2.30.0
|
|
|