Re: [PATCH 2/2] libtoolize: always copy config-h.in like aclocal.m4

Roumen Petrov <[email protected]> Sun, 21 Jan 2024 18:06:18 +0200
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
Hi,

Mike Frysinger wrote:
> When running `libtoolize --ltdl`, a symlink to the source config-h.in
> is used rather than a copy of the file.  ...
This is fine . Command supports --copy and this is documented in manual page.

>   This breaks `make distcheck` because when a few tests run
> that invoke `libtoolize --ltdl --install` w/out --copy, and then try
This is not only autotool that install links . More or less this is expected.


> to build the project, automake's rules trigger autoheader regen, and
> then update the timestamp, which updates the underlying file, and then
> causes libtool's own files to get out of sync.  So the next time make
> is run in the tree, it tries to regenerate the source files, and fails
> as the source tree is read-only.
>
> Change libtoolize to always copying the header over during install.
> ...
Sure Just to remind what is output from $ autoreconf -ifv

...
autoreconf: running: libtoolize --copy --force
...
autoreconf: running: automake --add-missing --copy --force-missing
...

Remark: project does not use ltld.


Roumen