Hi Gavin,Thanks for reporting. I added automake@ in CC. The issue is twofold; the automake error message could be cleaner, but the problem is on Texinfo's side.
Automake already excludes $(infodir)/dir when checking for leftovers. However, if another file causes the check to fail, the diagnostic prints the unfiltered list, including dir. Unfortunately, that makes this look like two errors.
Regarding the difference between automake releases: the previous check only detected regular files, so it missed the leftover link. Removing that link during Texinfo's uninstall should resolve the failure and there's no need to remove dir.
The misleading diagnostic is an Automake issue. I will try to fix it tomorrow.
-- With Valediction, Kamila Szewczyk (https://iczelia.net) On 10/31/26 6:57 PM, Gavin Smith wrote:
I tried building the current git sources for GNU Texinfo with the
automake-1.19.92 pretest. There are two errors with "make distcheck":
./share/info/dir
./bin/makeinfo
The second line is a file (symlink) that we install, so we can presumably
fix this. This would be the following item from NEWS:
- distcheck now detects symbolic links left in the installation tree
after uninstall, including dangling links.
However, there may be a problem with the "dir" file. The contents of
the dir file left over are as follows:
$ cat ../../_inst/share/info/dir
This is the file .../info/dir, which contains the
topmost node of the Info hierarchy, called (dir)Top.
The first time you invoke Info, you start off looking at this node.
File: dir, Node: Top This is the top of the INFO tree
This (the Directory node) gives a menu of major topics.
Typing "q" exits, "H" lists all Info commands, "d" returns here,
"h" gives a primer for first-timers,
"mEmacs<Return>" visits the Emacs manual, etc.
In Emacs, you can click mouse button 2 on a menu item or cross reference
to select it.
* Menu:
As you can see, the dir file has no entries. It appears that the file is
created by "make install" and not removed.
Here are the lines output when install-info runs when the "uninstall" target
is being built (output from "make distcheck").
make[3]: Entering directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texinfo.dvi'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/info-stnd.dvi'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texi2any_api.dvi'
rm -rf
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texinfo.html'
rm -rf
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/info-stnd.html'
rm -rf
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texi2any_api.html'
install-info
--info-dir='/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info' --remove
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info/texinfo.info'
install-info
--info-dir='/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info' --remove
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info/info-stnd.info'
install-info
--info-dir='/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info' --remove
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info/texi2any_api.info'
cd '/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info' && rm -f
texinfo.info texinfo.info-[0-9] texinfo.info-[0-9][0-9] texinfo.i[0-9]
texinfo.i[0-9][0-9]
cd '/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info' && rm -f
info-stnd.info info-stnd.info-[0-9] info-stnd.info-[0-9][0-9] info-stnd.i[0-9]
info-stnd.i[0-9][0-9]
cd '/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info' && rm -f
texi2any_api.info texi2any_api.info-[0-9] texi2any_api.info-[0-9][0-9]
texi2any_api.i[0-9] texi2any_api.i[0-9][0-9]
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texinfo.pdf'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/info-stnd.pdf'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texi2any_api.pdf'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texinfo.ps'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/info-stnd.ps'
rm -f
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/doc/texinfo/texi2any_api.ps'
make[3]: Leaving directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc'
If I change to the distcheck test directory
(/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc)
and run "make install", here is the output:
$ make install
Making install in tta_api
make[1]: Entering directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc/tta_api'
make install-am
make[2]: Entering directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc/tta_api'
make[3]: Entering directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc/tta_api'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc/tta_api'
make[2]: Leaving directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc/tta_api'
make[1]: Leaving directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc/tta_api'
make[1]: Entering directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc'
make[2]: Entering directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc'
make[2]: Nothing to be done for 'install-exec-am'.
WARNING: If your texmf tree does not already contain
up-to-date versions, you must install
texinfo.tex, txi-??.tex and txi-??_??.tex manually,
perhaps in TEXMF/tex/texinfo/,
where TEXMF is a root of your TeX tree.
See INSTALL for some considerations.
You can run make TEXMF=/your/texmf install-tex to do this.
You may also need to install epsf.tex in
TEXMF/tex/generic/dvips, if your TeX
installation did not include it.
/usr/bin/mkdir -p '/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info'
/usr/bin/install -c -m 644 ./texinfo.info ./texinfo.info-1 ./texinfo.info-2
./texinfo.info-3 ./texinfo.info-4 ./info-stnd.info ./texi2any_api.info
./texi2any_api.info-1 ./texi2any_api.info-2
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info'
install-info
--info-dir='/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info'
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info/texinfo.info'
install-info
--info-dir='/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info'
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info/info-stnd.info'
install-info
--info-dir='/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info'
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_inst/share/info/texi2any_api.info'
make[2]: Leaving directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc'
make[1]: Leaving directory
'/home/g/src/texinfo/GIT/texinfo-7.3dev/_build/sub/doc'
The relevant lines are the "install-info" lines.
If I run "rm ../../../_inst/share/info/dir" then "make install" again, dir is
recreated. I presume that install-info creates the dir file because it does
not previously exist.
Any ideas if this is a problem in Texinfo or in Automake, and why we have
never experienced this problem before with older releases of Automake?
It would be likely that any package installing Info files would have this
problem with "make distcheck", although it is possible that we do something
differently from other packages.
Note that usually, "make uninstall" should not delete the dir file as this
is a shared directory of Info files to be added to when different packages
are installed.
OpenPGP_0xC868F0B6DE38409D.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
