void-packages/srcpkgs/libnih/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
557 B
Diff

commit 3537454e66c3d9466d9d574467573e4ba4333293
Author: Cameron Nemo <camerontnorman@gmail.com>
Date: Sun Oct 28 01:59:05 2018 -0700
nih/signal.c: only support SIGCLD if it has libc support
diff --git nih/signal.c nih/signal.c
index a241df9..6a263fa 100644
--- a/nih/signal.c
+++ b/nih/signal.c
@@ -87,7 +87,9 @@ static const SignalName signal_names[] = {
{ SIGSTKFLT, "STKFLT" },
#endif
{ SIGCHLD, "CHLD" },
+#ifdef SIGCLD
{ SIGCLD, "CLD" },
+#endif
{ SIGCONT, "CONT" },
{ SIGSTOP, "STOP" },
{ SIGTSTP, "TSTP" },