```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
```
24 lines
609 B
Diff
24 lines
609 B
Diff
From: Markus Koschany <apo@debian.org>
|
|
Date: Sat, 27 Oct 2018 00:04:46 +0200
|
|
Subject: portability
|
|
|
|
Hopefully this prevents FTBFS on non-supported architectures.
|
|
---
|
|
bam.lua | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/bam.lua b/bam.lua
|
|
index f511fac..b23d501 100644
|
|
--- a/bam.lua
|
|
+++ b/bam.lua
|
|
@@ -191,9 +191,6 @@ function GenerateLinuxSettings(settings, conf, arch, compiler)
|
|
settings.link.flags:Add("-m64")
|
|
elseif arch == "armv7l" then
|
|
-- arm 32 bit
|
|
- else
|
|
- print("Unknown Architecture '" .. arch .. "'. Supported: x86, x86_64")
|
|
- os.exit(1)
|
|
end
|
|
settings.link.libs:Add("pthread")
|
|
|