765e304c4b
```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 ```
10 lines
281 B
Diff
10 lines
281 B
Diff
--- a/mfsclient/nbdmain.c 2020-06-08 08:19:08.422379805 +0200
|
|
+++ b/mfsclient/nbdmain.c 2020-06-08 08:18:55.079380447 +0200
|
|
@@ -39,6 +39,7 @@
|
|
#include <errno.h>
|
|
#include <inttypes.h>
|
|
#include <pthread.h>
|
|
+#include <sys/file.h>
|
|
|
|
#ifdef HAVE_LINUX_NBD_H
|
|
#include <linux/nbd.h>
|