void-packages/srcpkgs/expect/patches/0001-init-CC.patch
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: 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

21 lines
467 B
Diff

From: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
configure.in | 2 ++
1 file changed, 2 insertions(+)
diff --git configure.in configure.in
index aa6fd6e..ad8db32 100755
--- a/configure.in
+++ b/configure.in
@@ -9,6 +9,8 @@ TEA_INIT([3.9])
AC_CONFIG_AUX_DIR(tclconfig)
+AC_PROG_CC([cc gcc])
+
#--------------------------------------------------------------------
# Configure script for package 'Expect'.
# TEA compliant.
--
2.26.0.292.g33ef6b2f38