diff --git a/srcpkgs/dmtx-utils/patches/fix-getopt_check.patch b/srcpkgs/dmtx-utils/patches/fix-getopt_check.patch new file mode 100644 index 00000000000..a46b06eeb47 --- /dev/null +++ b/srcpkgs/dmtx-utils/patches/fix-getopt_check.patch @@ -0,0 +1,13 @@ +Remove check for getopt_long and not existing source +files common/getopt.c and common/getopt1.c + +--- configure.ac 2015-10-25 20:55:07.635988008 +0100 ++++ 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], diff --git a/srcpkgs/dmtx-utils/template b/srcpkgs/dmtx-utils/template index 9a940ec7696..de2f46801d0 100644 --- a/srcpkgs/dmtx-utils/template +++ b/srcpkgs/dmtx-utils/template @@ -1,7 +1,7 @@ # Template file for 'dmtx-utils' pkgname=dmtx-utils version=0.7.4 -revision=3 +revision=4 build_style=gnu-configure maintainer="Dominik Honnef " hostmakedepends="automake libtool pkg-config" @@ -13,6 +13,8 @@ distfiles="$SOURCEFORGE_SITE/libdmtx/${pkgname}-${version}.tar.bz2" checksum=9f510f6c26a2a73e44da28eae78308973cc274043873cc7f90606624066ec7d0 pre_configure() { - touch aclocal.m4 - libtoolize -f + # Remove check for non-existent common/getopt{,1}.c + sed -i configure.ac \ + -e "/AC_CHECK_FUNC(\[getopt_long\]/s;.*;);" + autoreconf -if }