[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Texinfo: inconsistent behavior: cmd line vs. env
From: |
Bogdan |
Subject: |
[PATCH] Texinfo: inconsistent behavior: cmd line vs. env |
Date: |
Tue, 21 Mar 2023 14:13:40 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
Hello.
As suggested by Gavin, I'm reporting a problem (or at least a
"surprising inconsistency") in the texi2dvi script. This is related to
Automake bug#29188 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29188).
Since texinfo-4.9, one can set the build directory with an
environment variable "TEXI2DVI_BUILD_DIRECTORY". Unfortunately,
texinfo has a problem/inconsistency there. When setting "--build-dir="
on the command line, the build mode is set to "tidy" (which cleans
some log files, etc.). Fine. The problem is that if you set the build
directory using an environment variable, the mode is NOT set to
"tidy", leaving the logs files (and failing tests in Automake).
Luckily, you can also set the build mode from an environment variable,
"TEXI2DVI_BUILD_MODE".
The attached patch changes this behavior: when the user provides the
build directory via an environment variable, but not the build mode,
set the build mode to 'tidy', to match the command-line processing. I
did a simple manual test, seems to be working.
Thank you for Texinfo!
Bogdan Drozdowski
P.S. I didn't manage to find any bugtracker for Texinfo, so I don't
know if I'm not duplicating some other report or patch.
--
Regards - Bogdan ('bogdro') D. (GNU/Linux & FreeDOS)
X86 assembly (DOS, GNU/Linux): http://bogdro.evai.pl/index-en.php
Soft(EN): http://bogdro.evai.pl/soft http://bogdro.evai.pl/soft4asm
www.Xiph.org www.TorProject.org www.LibreOffice.org www.GnuPG.org
texinfo-env-match-cmdline-builddir.diff
Description: Text Data