Re: texi2any C code still built even though XS modules were disabled

Gavin Smith <[email protected]>
Newsgroups gmane.comp.tex.texinfo.bugs
Message-ID <aWvkFhlw4CvOxxQ5@orangestar>
On Sat, Jan 17, 2026 at 08:08:11PM +0100, [email protected] wrote:
> On Sat, Jan 17, 2026 at 06:42:53PM +0000, Gavin Smith wrote:
> > > I just commited changes to avoid loading XS overrides when XS modules
> > > are disabled at configure time.  I believe that the issue you reported
> > > was there for a long time, maybe even since the first MiscXS modules.
> > > It never showed in practice because the situation do not often arises,
> > > and maybe we just did make clean when it happened, and because before
> > > some point, with the C codes in libraries, the modules could be loaded
> > > and used even if XS modules were disabled, and it would not have been
> > > noticed unless one had TEXINFO_XS=debug set.
> > 
> > I thought it was disabled in Texinfo::XSLoader.  texi2any.pl sets
> > $Texinfo::XSLoader::disable_XS if XS modules are disabled.  However,
> > the tests under tta/perl/t don't use texi2any.pl.
> 
> For t/z_misc/*.t tests, I plan to add the same BEGIN block that I just
> added to t/test_utils.pl.  Should I proceed or do you have a better
> idea?

The only other idea I have is that Texinfo::XSLoader could get the value
itself in its own BEGIN { } block.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.