]> git.ipfire.org Git - thirdparty/automake.git/commit
automake: allow required files to be in subdirs
authorMike Frysinger <vapier@gentoo.org>
Mon, 21 Feb 2022 04:30:39 +0000 (23:30 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Feb 2022 04:31:09 +0000 (23:31 -0500)
commitc62e723015d00ade6a37fcb91ca0f39c87868665
tree767f262ac4236db1f63bbc2ad4586b7b0bd42cb5
parent13ae585a0184a4c0113fd4f3a19a0cedf1cfe5c2
automake: allow required files to be in subdirs

Fixes automake bug https://bugs.gnu.org/20300.

The internal method for caching path lookups expects the $filename to
only be a filename.  If it's actually a subdir/file itself, then the
cache logic gets confused, and it never matches.  This manifests as
AC_REQUIRE_AUX_FILE([subdir/file]) claiming that the subdir/file path
doesn't exist even when it does.

Before we process any required files, since we already construct the
full path locally, reset the dir & file inputs to the final values.

* bin/automake.in: Split dir & file name back out from the constructed
required file path.
* t/auxdir-subsubdir.sh: New test.
* t/list-of-tests.mk: Add t/auxdir-subsubdir.sh.
bin/automake.in
t/auxdir-subsubdir.sh [new file with mode: 0644]
t/list-of-tests.mk