There is a similar issue with not propagating make variables to scripts,
which the attached should address.

It's an edge case, as it's unusual for users to have an
incompatible SHELL set (even fish doesn't set this by default I think).
Also info docs come prebuilt in the distributed tarball,
so they generally don't need to be built anyway.

cheers,
Padraig
From 0b167d9662d0e4a25011f21ae1f98c6aebba0711 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email protected]>
Date: Wed, 4 Feb 2026 21:12:28 +0000
Subject: [PATCH] build: propagate $SHELL to makeinfo-wrapper.sh

A user that had an environment with SHELL=/usr/bin/fish
reported the following when trying to build info docs:

  build-aux/missing (line 4): Unsupported use of '='. In fish

* doc/local.mk: Propagate a make's SHELL
to our makeinfo wrapper, so that the substituted ${SHELL}
uses a compatible shell from the Makefile.
---
 doc/local.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/local.mk b/doc/local.mk
index 129def7cd..e564f7c81 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -25,7 +25,7 @@ doc_coreutils_TEXINFOS = \
   doc/fdl.texi \
   doc/sort-version.texi
 
-MAKEINFO = $(abs_top_builddir)/build-aux/makeinfo-wrapper.sh
+MAKEINFO = SHELL=$(SHELL) $(abs_top_builddir)/build-aux/makeinfo-wrapper.sh
 
 # The customization variable CHECK_NORMAL_MENU_STRUCTURE is necessary with
 # makeinfo versions ≥ 6.8.
-- 
2.52.0

Reply via email to