> From: Gavin Smith <[email protected]>
> Date: Sat, 17 Jan 2026 11:13:59 +0000
> 
> I can't build Texinfo anymore now this 'glob' module has been added.
> 
> make[4]: Entering directory '/home/g/src/texinfo/GIT/tta/gnulib/lib'
> make[5]: Entering directory '/home/g/src/texinfo/GIT/tta/gnulib/lib'
> /bin/bash ../../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc 
> -DHAVE_CONFIG_H -I. -I../../C     -Wno-cast-qual -Wno-conversion 
> -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function 
> -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough 
> -Wno-pedantic -Wno-sign-conversion -Wno-type-limits 
> -Wno-unused-const-variable -Wno-unsuffixed-float-constants -Wno-error  -MT 
> libgnu_la-getprogname.lo -MD -MP -MF .deps/libgnu_la-getprogname.Tpo -c -o 
> libgnu_la-getprogname.lo `test -f 'getprogname.c' || echo './'`getprogname.c
> libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../C 
> -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef 
> -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion 
> -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits 
> -Wno-unused-const-variable -Wno-unsuffixed-float-constants -Wno-error -MT 
> libgnu_la-getprogname.lo -MD -MP -MF .deps/libgnu_la-getprogname.Tpo -c 
> getprogname.c  -fPIC -DPIC -o .libs/libgnu_la-getprogname.o
> getprogname.c: In function 'getprogname':
> getprogname.c:255:4: error: #error "getprogname module not ported to this OS"
>   255 | #  error "getprogname module not ported to this OS"
>       |    ^~~~~
> make[5]: *** [Makefile:3572: libgnu_la-getprogname.lo] Error 1
> 
> getprogname was brought in by the commit that added the glob module,
> 1a5348c9282eda0bf (2026-01-12).
> 
> This is always the risk with adding more gnulib modules, due to the 
> dependencies
> they can bring in.  It brings in a large amount of code for the sake of
> a function that is only called once.
> 
> It is used to find htmlxref files.
> 
> I'm going to try to remove the "glob" module for now.
> 
> Perhaps we could disable the code that uses glob on the mingw-w64
> systems where it does not exist.

What is 'glob' used for?  Perhaps it would be possible to write native
Windows code to achieve the same, since Windows APIs for finding files
by their wildcards do exist.  As long as the code doesn't need any
'glob'-specific features and doesn't use Unix-style wildcards like
"*.[ch]", replacing it with Windows native code shouldn't be
difficult.

  • texi... Gavin Smith
    • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
      • ... Eli Zaretskii
        • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
          • ... Eli Zaretskii
      • ... Patrice Dumas
        • ... Gavin Smith
          • ... Gavin Smith
            • ... Eli Zaretskii
            • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
              • ... Gavin Smith
                • ... Patrice Dumas
                • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
                • ... Gavin Smith
                • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
                • ... Gavin Smith
                • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
                • ... Gavin Smith

Reply via email to