summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/bootstrap-prefix.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 34b6c25a82..7edc5b9d3e 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -856,6 +856,10 @@ bootstrap_gnu() {
# doesn't match
sed -i -e '/_GL_WARN_ON_USE (gets/d' lib/stdio.in.h lib/stdio.h
+ # macOS 10.13 have an issue with %n, which crashes m4
+ efetch "http://rsync.prefix.bitzolder.nl/sys-devel/m4/files/m4-1.4.18-darwin17-printf-n.patch" || return 1
+ patch -p1 < "${DISTDIR}"/m4-1.4.18-darwin17-printf-n.patch || return 1
+
# Bug 715880
efetch http://dev.gentoo.org/~heroxbd/m4-1.4.18-glibc228.patch || return 1
patch -p1 < "${DISTDIR}"/m4-1.4.18-glibc228.patch || return 1
@@ -1304,10 +1308,7 @@ bootstrap_bison() {
}
bootstrap_m4() {
- bootstrap_gnu m4 1.4.18 ||
- bootstrap_gnu m4 1.4.17 ||
- bootstrap_gnu m4 1.4.16 ||
- bootstrap_gnu m4 1.4.15
+ bootstrap_gnu m4 1.4.18 # version is patched, so beware
}
bootstrap_gzip() {