void-packages/srcpkgs/csync2/patches/musl-strlcpy.patch
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

18 lines
360 B
Diff

--- a/rsync.c 2015-03-09 15:08:51.000000000 +0100
+++ b/rsync.c 2015-10-06 16:44:57.988159380 +0200
@@ -39,6 +39,7 @@
#endif
+#if defined(__GLIBC__)
/* This has been taken from rsync:lib/compat.c */
/**
@@ -61,6 +62,7 @@
}
return ret;
}
+#endif
/* splits filepath at the last '/', if any, like so:
* dirname basename filepath