void-packages/srcpkgs/varnish/patches/musl.patch
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: 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-20 13:17:29 +07:00

22 lines
536 B
Diff

--- a/include/vpf.h 2016-03-03 14:40:01.000000000 +0100
+++ b/include/vpf.h 2018-01-11 11:45:26.521900821 +0100
@@ -30,6 +30,8 @@
#ifndef VPF_H_INCLUDED
#define VPF_H_INCLUDED
+#include <sys/types.h>
+
struct vpf_fh;
struct vpf_fh *VPF_Open(const char *path, mode_t mode, pid_t *pidptr);
--- a/include/vsb.h 2017-11-14 14:39:22.000000000 +0100
+++ b/include/vsb.h 2018-01-11 11:48:15.505912873 +0100
@@ -31,6 +31,8 @@
#ifndef VSB_H_INCLUDED
#define VSB_H_INCLUDED
+#include <sys/types.h>
+
/*
* Structure definition
*/