msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 1.21k forks source link

`texi2dvi` appears to be broken #21575

Open mwtoews opened 1 month ago

mwtoews commented 1 month ago

Description / Steps to reproduce the issue

This is similar to msys2/MSYS2-packages#2596 which has has a "test.zip" attachment used in this report.

First, install texinfo version 7.1-1 (package info):

pacman -S mingw-w64-x86_64-texinfo

Now run texi2dvi test.texi to see issue.

Expected behavior

Running WSL with Ubuntu 22.04.4 LTS the expected behavior looks like this:

$ sudo apt-get install -y texinfo
...
$ texi2dvi --version
texi2dvi (GNU Texinfo 6.8)
...
$ texi2dvi test.texi
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=etex)
 restricted \write18 enabled.
entering extended mode
(./test.texi (/usr/share/texmf/tex/texinfo/texinfo.tex
Loading texinfo [version 2021-04-25.21]: pdf, fonts, glyphs, page headings,
tables, conditionals, indexing, sectioning, toc, environments, defuns, macros,
cross references, insertions, localization, formatting,
and turning on texinfo input format.) [1] )
Output written on test.dvi (1 page, 260 bytes).
Transcript written on test.log.

And test.dvi is generated, as expected. No errors are shown.

Actual behavior

And with a MINGW64 / MSYS2 shell:

$ texi2dvi --version
texi2dvi (GNU Texinfo 7.1)
...
$ texi2dvi test.texi
/mingw64/bin/texi2dvi: texinfo.tex appears to be broken.
This may be due to the environment variable TEX set to something
other than (plain) tex, a corrupt texinfo.tex file, or
to tex itself simply not working.
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Built by MSYS2 project) (preloaded format=etex)
 restricted \write18 enabled.
entering extended mode
(./txiversion.tex
! I can't find file `texinfo.tex'.
l.1 \input texinfo.tex
                       @bye
(Press Enter to retry, or Control-Z to exit)
Please type another input file name:
! Emergency stop.
l.1

No pages of output.
Transcript written on txiversion.log.
/mingw64/bin/texi2dvi: quitting.
$ echo $?
1

Errors are shown and no other files are created.

Verification

Windows Version

MINGW64_NT-10.0-19045

Are you willing to submit a PR?

No response

mwtoews commented 1 month ago

This is a duplicate of msys2/MSYS2-packages#3014 which suggests:

pacman -S mingw-w64-x86_64-texlive-plain-generic

this resolves the issue, but it wasn't obvious without digging. Is there a missing dependency for texinfo?