Re: automake-1.17.90 pretest released [alpha]

Ross Burton <[email protected]> Thu, 27 Feb 2025 18:23:42 +0000
Newsgroups gmane.comp.sysutils.automake.general
Message-ID <[email protected]>
On 27 Feb 2025, at 16:22, Karl Berry <[email protected]> wrote:
>
> Hi Ross,
>
>    | configure:2612: error: possibly undefined macro: AM_RUN_LOG
>
> I've been unable to reproduce this, even though you get the error
> pervasively :(. I tried cloning your repo:
>
> git clone git://git.yoctoproject.org/matchbox-sato
> PATH=/path/to/pretest/bin:$PATH
> sh autogen.sh
> grep AM_RUN_LOG configure
> <no output>
>
> Looking at the configure script I get, AM_RUN_LOG has been expanded in
> that spot.
>
> In general, I believe AM_RUN_LOG should be discovered by aclocal, though
> I admit I'm not exactly clear on how all that works.
> Does AM_RUN_LOG appear in your aclocal.m4?
> Is aclocal.m4 stale, perhaps?
> Does adding --force to the autoreconf invocation in your autogen.sh help?
>
> I'm not sure what else is going on. --thanks, karl.

Yeah, this is more interesting.

A leaner test case is icon-naming-utils.  If I build that with automake 1.17.0, it works.  If I build it _from clean_ with 1.17.90, it works.

If I build it with 1.17.0 and then autoreconf with 1.17.90, it fails.  Really mysteriously the generated aclocal.m4 has been regenerated (because the copyright dates are different) but it is missing the AM_RUN_LOG macro.

For bonus fun I _know_ the aclocal.m4 is regenerated as for historical reasons (that I plan on reviewing and potentially removing) we delete aclocal.m4 from the source before running autoreconf.

I have three complete build trees if you want to have a proper dig (with the release, with the alpha but on a dirty source tree built with the release, with the alpha from a clean source tree), but attached are the three different aclocal.m4 files as a demonstration of what is happening.

I see from comparison of the logs that the code triggering this ("checking how to create a ustar tar archive… gnutar”) isn’t in the log for the 1.17 build.

Ross
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
icon-naming-utils-1.17.0-aclocal.m4 (application/octet-stream, 35.2 KB) - not displayed
icon-naming-utils-1.17.90-clean-aclocal.m4 (application/octet-stream, 36.2 KB) - not displayed
icon-naming-utils-1.17.90-dirty-aclocal.m4 (application/octet-stream, 35.5 KB) - not displayed