On Sun, Sep 01, 2024 at 09:50:07PM +0200, Bruno Haible wrote: > * On mingw, there is a build error > "Can't locate Texinfo/ModulePath.pm in @INC": > > make[4]: Entering directory > '/cygdrive/d/a/ci-check/ci-check/texinfo-7.1.0.91-20240901/build/doc/tp_api' > restore=: && backupdir=".am$$" && \ > rm -rf $backupdir && mkdir $backupdir && \ > if (TEXINFO_DEV_SOURCE=1 > top_srcdir="/cygdrive/d/a/ci-check/ci-check/texinfo-7.1.0.91-20240901/build/.." > > top_builddir="/cygdrive/d/a/ci-check/ci-check/texinfo-7.1.0.91-20240901/build" > /cygdrive/c/Strawberry/perl/bin/perl ../../../tp/texi2any.pl --version) > >/dev/null 2>&1; then \ > for f in texi2any_internals.info texi2any_internals.info-[0-9] > texi2any_internals.info-[0-9][0-9] texi2any_internals.i[0-9] > texi2any_internals.i[0-9][0-9]; do \ > if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ > done; \ > else :; fi && \ > if TEXINFO_DEV_SOURCE=1 > top_srcdir="/cygdrive/d/a/ci-check/ci-check/texinfo-7.1.0.91-20240901/build/.." > > top_builddir="/cygdrive/d/a/ci-check/ci-check/texinfo-7.1.0.91-20240901/build" > /cygdrive/c/Strawberry/perl/bin/perl ../../../tp/texi2any.pl -c > INFO_SPECIAL_CHARS_WARNING=0 -c > TREE_TRANSFORMATIONS=complete_tree_nodes_menus -I ../../../doc/tp_api \ > -o texi2any_internals.info `test -f 'texi2any_internals.texi' || echo > '../../../doc/tp_api/'`texi2any_internals.texi; \ > then \ > rc=0; \ > else \ > rc=$?; \ > $restore $backupdir/* `echo "./texi2any_internals.info" | sed > 's|[^/]*$||'`; \ > fi; \ > rm -rf $backupdir; exit $rc
I don't understand why we are building the texi2any_internals.info file in the first place. I would have expected the file to be distributed with Texinfo, like other .info files. I found the change was made in commit 1db4e2d2fd18b (2024-07-26) on the master branch, which change I then propagated onto the release/7.1 branch as part of other build system fixes. I couldn't find any emails from around that time discussing why the change was made. Patrice, do you remember? Running texi2any as part of the build from the tarball is likely problematic for cross-compiling. (In fact I don't know if Texinfo has been successully cross-compiled in recent years as I don't remember anyone talking about it.)