void-packages/srcpkgs/screen/patches/screen-cross_compile_fix.patch
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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
503 B
Diff

--- a/configure 2014-08-12 23:28:34.867815037 +0200
+++ b/configure 2014-08-12 23:31:35.647817252 +0200
@@ -305,6 +305,7 @@
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
+ return 0
set +e
as_fn_set_status $1
exit $1
@@ -6985,7 +6986,6 @@
fi
if test ! -f "$as_myself"; then
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
fi
# Unset variables that we do not need and which cause bugs (e.g. in