aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/27.2/12_all_make-info-dir.patch')
-rw-r--r--emacs/27.2/12_all_make-info-dir.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/emacs/27.2/12_all_make-info-dir.patch b/emacs/27.2/12_all_make-info-dir.patch
new file mode 100644
index 0000000..7b11313
--- /dev/null
+++ b/emacs/27.2/12_all_make-info-dir.patch
@@ -0,0 +1,29 @@
+Make it build with mksh
+Patch from emacs-29 branch
+https://bugs.gentoo.org/930086
+https://debbugs.gnu.org/70484
+
+commit 42766f95e5c0e7eb9e21db964ed93c7e093cc0b9
+Author: Ulrich M├╝ller <ulm@gentoo.org>
+Date: Tue Apr 23 07:37:17 2024 +0200
+
+ * build-aux/make-info-dir: Avoid bashism (bug#70484).
+
+--- emacs-27.2/build-aux/make-info-dir
++++ emacs-27.2/build-aux/make-info-dir
+@@ -33,7 +33,8 @@
+
+ ## Header contains non-printing characters, so this is more
+ ## reliable than using awk.
+-cat <"${1?}" || exit
++test $# -ge 2 || exit 1
++cat <"$1"
+ shift
+
+ exec "${AWK-awk}" '
+@@ -71,4 +72,4 @@
+ if (data[dircat])
+ printf "\n%s\n%s", topic[dircat], data[dircat]
+ }
+-' "${@?}"
++' "$@"