srcpkgs/n*: 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 05:03:21 +02:00
|
|
|
--- a/nx-X11/programs/Xserver/Xext/xf86bigfont.c 2021-02-04 14:34:56.000000000 +0100
|
|
|
|
+++ b/nx-X11/programs/Xserver/Xext/xf86bigfont.c 2021-02-04 14:34:56.000000000 +0100
|
2020-12-25 22:35:08 +01:00
|
|
|
@@ -45,7 +45,6 @@
|
|
|
|
/* Linux libc4 and libc5 only (because glibc doesn't include kernel headers):
|
|
|
|
Linux 2.0.x and 2.2.x define SHMLBA as PAGE_SIZE, but forget to define
|
|
|
|
PAGE_SIZE. It is defined in <asm/page.h>. */
|
|
|
|
-#include <asm/page.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#endif
|
|
|
|
#ifdef SVR4
|