[newlib-cygwin/cygwin-3_6-branch] Cygwin: doc: Explictly name the output when building .info files

Corinna Vinschen corinna@sourceware.org
Thu Feb 12 20:17:30 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=061eb0a8723b3118c1d3c6405307cd0927365fd7

commit 061eb0a8723b3118c1d3c6405307cd0927365fd7
Author:     Jon Turney <jon.turney@dronecode.org.uk>
AuthorDate: Wed Jan 14 13:43:37 2026 +0000
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Thu Feb 12 21:15:36 2026 +0100

    Cygwin: doc: Explictly name the output when building .info files
    
    This works around a bug in docbook2x-texi seen with bash 5.3 while
    cross-building from Fedora 42.
    
    If the --output-dir option to db2x_texixml isn't specified (always the
    case when invoked by docbook2x-texi), then the script attempts cd ''
    which is now an error ("cd: null directory") rather than being treated
    as equivalent to cd '.'
    
    Instead, explicitly name the output file when building .info files.
    
    (cherry picked from commit 3a7c3c07f7fcad43f44405afbf39d650668e72b2)

Diff:
---
 winsup/doc/Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/winsup/doc/Makefile.am b/winsup/doc/Makefile.am
index 650e0c9247c6..e3ee3261237f 100644
--- a/winsup/doc/Makefile.am
+++ b/winsup/doc/Makefile.am
@@ -24,7 +24,7 @@ XMLTO_HTML_CHUNK_QUIET=$(XMLTO_HTML_CHUNK_QUIET_$(V))
 XMLTO_MAN_QUIET_=--stringparam man.output.quietly=1
 XMLTO_MAN_QUIET=$(XMLTO_MAN_QUIET_$(V))
 
-DOCBOOK2XTEXI=@DOCBOOK2XTEXI@ --xinclude --info --utf8trans-map=charmap
+DOCBOOK2XTEXI=@DOCBOOK2XTEXI@ --xinclude --info --utf8trans-map=charmap --to-stdout
 
 -include Makefile.dep
 
@@ -131,7 +131,7 @@ utils2man.stamp: $(cygwin-ug-net_SOURCES) man.xsl
 	@touch $@
 
 cygwin-ug-net.info: $(cygwin-ug-net_SOURCES) charmap
-	$(AM_V_GEN)$(DOCBOOK2XTEXI) $(srcdir)/cygwin-ug-net.xml --string-param output-file=cygwin-ug-net
+	$(AM_V_GEN)$(DOCBOOK2XTEXI) $(srcdir)/cygwin-ug-net.xml --string-param output-file=cygwin-ug-net >$@
 
 cygwin-api/cygwin-api.html: $(cygwin-api_SOURCES) html.xsl
 	$(AM_V_GEN)$(XMLTO) html -o cygwin-api/ -m $(srcdir)/html.xsl $(XMLTO_HTML_CHUNK_QUIET) $<
@@ -144,7 +144,7 @@ api2man.stamp: $(cygwin-api_SOURCES) man.xsl
 	@touch $@
 
 cygwin-api.info: $(cygwin-api_SOURCES) charmap
-	$(AM_V_GEN)$(DOCBOOK2XTEXI) $(srcdir)/cygwin-api.xml --string-param output-file=cygwin-api
+	$(AM_V_GEN)$(DOCBOOK2XTEXI) $(srcdir)/cygwin-api.xml --string-param output-file=cygwin-api >$@
 
 # this generates a custom charmap for docbook2x-texi which has a mapping for ®
 charmap:


More information about the Cygwin-cvs mailing list