void-packages/srcpkgs/xautolock/patches/fix-wait_status.patch
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

14 lines
466 B
Diff

--- a/src/engine.c 2007-12-28 18:15:26.000000000 +0100
+++ b/src/engine.c 2017-01-25 14:48:00.087399865 +0100
@@ -210,11 +210,7 @@
#else /* VMS */
if (lockerPid)
{
-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
- union wait status; /* childs process status */
-#else /* !UTEKV && !SYSV && !SVR4 */
int status = 0; /* childs process status */
-#endif /* !UTEKV && !SYSV && !SVR4 */
if (unlockNow && !disabled)
{