Re: fix: autoreconf fails due to .m4 files added but not installed
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.sysutils.automake.general |
|---|---|
| Message-ID | <ZaIZboxDOkEsfwyd@vapier> |
On 28 May 2022 12:14, Jim Meyering wrote: > A few days ago I was preparing to release grep and wanted to make sure > it'd work with the latest automake and autoconf, so I built and installed > each from master. That exposed these errors when bootstrapping grep. I > think it was a prerequisite to have run grep's "make maintainer-clean": > > configure.ac:41: warning: _AM_PROG_RM_F is m4_require'd but not\ > m4_defun'd > configure.ac:41: warning: _AM_PROG_XARGS_N is m4_require'd but not\ > m4_defun'd > configure:5058: error: possibly undefined macro: _AM_PROG_RM_F > configure:5059: error: possibly undefined macro: _AM_PROG_XARGS_N > > I've just pushed the attached fix. > Introduced in v1.16.5-46-g38da1d906 and v1.16.5-45-g3099097d7 > so this doesn't need a NEWS update. > > Mike, can you add an automake test that would have caught this? does `make distcheck` not catch this ? would be nice if we could catch with a git checkout directly, but seems difficult to pull off. would it be reasonable to assume that every m4/*.m4 file is supposed to be installed ? that wouldn't be too hard to run tests against, but it would make things a little more tricky for devs working out of the git tree with uncommitted local changes. the problem with running $ACLOCAL is that it's configured to search the local ../m4/ tree for all macros that exist ... is there some m4 invocation we could run that would scan all the installed m4 files ? we can pass down the known list of m4 files to be installed, but how to actually scan/validate them i'm not sure. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmWiGW4ACgkQQWM7n+g3 9YH9Vw/+LZoE0Vy9zNbZ4B3cWUqh4TnAocuzbwsbmKRqMX4n0v+KQ8kt/9PG4xfA ffz1hp3RmtzF034wymj5kJiSJ+pHa9vgs3HwpLPLBNf/Pzu9uwdH8Ucddh4Z8nnr XN683c1uW7X36RvqO5OPjJ60gsOQgrvPcv6gr46nJNOcVa5jhmaQcLIioIC3eFiW lD3Vm/TE9RywETN55XZwEooneL4hZvWKL0t/hydjoIpUfNWYdoveIW712XpBANbd QOt/k4rT7PyxUgLxMwC9AVLLufHo+JLxElR0zAV8me3W8WAy30jvk8mPjPzcvu2x d6vRcNH7CyffBnDYM2u3XQEnFSFbFpNqbeFpuM4mPj7HBcZi50/CbBIqIgWxbcRg 5geUA47cYO883S73UFopNnLgua0cMxx0KWXOJMwUqX4929fCNlEfM9FK3Fpl7k14 99uG/IElcaB+98QP1rXtgifWYS5sLONDObPLo7Nf72XI1bjdLnEgQ83pqsRsTwwp RYgCpE/9KugF1W03/nwjdWUn7P/S3qm+K7FxChcsC4t8W7OxsKd8kbIcjwn5bRgA Z/MpBebUE4Y/JMWdA7xIhVPKwqem3TUORO7JV5FCJgWK3Tl6Fg/m1goCzbf5E1WA 8lwjYr0+Cz0fNsBM7aY9iEAyQCRXz8Dvt/NCf6BaeTlNh5de4fA= =/EvA -----END PGP SIGNATURE-----