srcpkgs/[A-Z]*: convert patches to -Np1
```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
```
2021-06-19 03:03:21 +00:00
|
|
|
--- a/configure.ac 2021-01-18 20:39:16.546501531 +0100
|
|
|
|
+++ b/configure.ac 2021-01-18 20:57:43.667587518 +0100
|
2021-01-18 20:25:55 +00:00
|
|
|
@@ -142,7 +142,8 @@
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -std=gnu99 -pipe -g"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -pipe -g"
|
|
|
|
AC_CXX_FLAG([-std=c++11])
|
|
|
|
- AC_CXX_FLAG([-Wno-c++11-narrowing])
|
|
|
|
+ AC_CXX_FLAG([-Wno-narrowing])
|
|
|
|
+ AC_CXX_FLAG([-Wno-deprecated-copy])
|
|
|
|
AC_C_FLAG([-Wno-unused-local-typedefs])
|
|
|
|
AC_CXX_FLAG([-Wno-unused-local-typedefs])
|
|
|
|
|