void-packages/srcpkgs/libcprops/patches/musl.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

20 lines
531 B
Diff

--- a/util.c 2012-01-13 23:25:58.000000000 +0100
+++ b/util.c 2018-05-26 20:14:12.290726591 +0200
@@ -386,7 +386,7 @@
msg = "Invalid back reference to a subexpression.";
break;
-#ifdef linux
+#ifdef __GLIBC__
case REG_EEND:
msg = "Non specific error.";
break;
@@ -400,7 +400,7 @@
msg = "Invalid use of pattern operators such as group or list.";
break;
-#ifdef linux
+#ifdef __GLIBC__
case REG_ESIZE:
msg = "Compiled regular expression requires a pattern buffer larger than 64Kb.";
break;