ec4c2d75fa
```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 ```
39 lines
1 KiB
Diff
39 lines
1 KiB
Diff
From 9b8a97da0946d01f60798a5636062141a61a92ac Mon Sep 17 00:00:00 2001
|
|
From: q66 <daniel@octaforge.org>
|
|
Date: Fri, 10 Apr 2020 20:26:23 +0200
|
|
Subject: [PATCH] add powerpc64 in 64-bit platforms to unbreak build
|
|
|
|
---
|
|
Shared/All.h | 2 +-
|
|
Source/Shared/All.h | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git Shared/All.h Shared/All.h
|
|
index cc9a988..615e3d1 100644
|
|
--- a/Shared/All.h
|
|
+++ b/Shared/All.h
|
|
@@ -123,7 +123,7 @@ Global compiler settings (useful for porting)
|
|
#endif
|
|
#endif
|
|
|
|
-#if __x86_64__ || __aarch64__
|
|
+#if __x86_64__ || __aarch64__ || __powerpc64__
|
|
#ifndef PLATFORM_x64
|
|
#define PLATFORM_x64
|
|
#endif
|
|
diff --git Source/Shared/All.h Source/Shared/All.h
|
|
index cc9a988..615e3d1 100644
|
|
--- a/Source/Shared/All.h
|
|
+++ b/Source/Shared/All.h
|
|
@@ -123,7 +123,7 @@ Global compiler settings (useful for porting)
|
|
#endif
|
|
#endif
|
|
|
|
-#if __x86_64__ || __aarch64__
|
|
+#if __x86_64__ || __aarch64__ || __powerpc64__
|
|
#ifndef PLATFORM_x64
|
|
#define PLATFORM_x64
|
|
#endif
|
|
--
|
|
2.25.1
|
|
|