From 633f7a928d0aa0f3d341f248e70ef506304e6203 Mon Sep 17 00:00:00 2001 From: Austin Lund Date: Mon, 5 Aug 2019 21:30:17 +1000 Subject: [PATCH] findutils: Run autoreconf to avoid tool version problems When building with SOURCE_DATE_EPOCH unset, makepkg will not update the modifiction times of any of the source files. With the preseved modification times for this source pacakge, 'make' thinks the build files are out of date and tries to reconstruct them. This is done without running autoreconf and hence can lead to a version incompatibility error if the installed version of autotools doesn't match that which generated the files in the first place. This is very simply solved by running autoreconf before trying to build. Output of "makechrootpkg -r /var/lib/archbuild/extra-x86_64 -c -n" with automake 1.16.1 installed and SOURCE_DATE_EPOCH unset: make: Entering directory '/build/findutils/src/findutils-4.6.0/locate' cd .. && make am--refresh make[1]: Entering directory '/build/findutils/src/findutils-4.6.0' CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /build/findutils/src/findutils-4.6.0/build-aux/missing aclocal-1.14 -I gl/m4 -I m4 /build/findutils/src/findutils-4.6.0/build-aux/missing: line 81: aclocal-1.14: command not found WARNING: 'aclocal-1.14' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: It also requires GNU Autoconf, GNU m4 and Perl in order to run: make[1]: *** [Makefile:1681: aclocal.m4] Error 127 --- trunk/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index a3102b70..d211b77a 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -30,6 +30,7 @@ build() { # which is a secure version of locate. sed -i '/^SUBDIRS/s/locate//' Makefile.in + autoreconf ./configure --prefix=/usr # don't build locate, but the docs want a file in there. make -C locate dblocation.texi -- 2.22.0