void-packages/srcpkgs/dmtx-utils/patches/fix-getopt_check.patch
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid is kept at -Np0

```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

13 lines
404 B
Diff

Remove check for getopt_long and not existing source
files common/getopt.c and common/getopt1.c
--- a/configure.ac 2015-10-25 20:55:07.635988008 +0100
+++ b/configure.ac 2015-10-25 20:56:18.683993130 +0100
@@ -20,7 +20,6 @@
AC_CHECK_HEADERS([sysexits.h])
AC_CHECK_HEADERS([getopt.h])
-AC_CHECK_FUNC([getopt_long], [], [ AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt1]) ])
AC_ARG_ENABLE(
[dmtxquery],