From 7dca6b53a995a9782026f726c291344b5b8e0ab2 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 19 Dec 2023 21:30:47 -0800 Subject: [PATCH] Add tool/missing-baseruby.bat, used when BASERUBY not available Previously, the embedded semicolon in BASERUBY if BASERUBY is not available breaks tarball builds without BASERUBY when using OpenBSD make, due to the inability to escape MFLAGS correctly. This moves the same BASERUBY code into a separate file, avoiding the MFLAGS quoting issue. BASERUBY must be passed to build-ext because it is required by ripper since the introduction of lrama. Fixes [Bug #19683] Co-authored-by: Nobuyoshi Nakada --- configure.ac | 2 +- tool/missing-baseruby.bat | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 tool/missing-baseruby.bat diff --git a/configure.ac b/configure.ac index b01ba53839..a57e506d55 100644 --- a/configure.ac +++ b/configure.ac @@ -89,7 +89,7 @@ AS_IF([test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'p ]) AS_IF([test "$HAVE_BASERUBY" = no], [ AS_IF([test "$cross_compiling" = yes], [AC_MSG_ERROR([executable host ruby is required for cross-compiling])]) - BASERUBY="echo executable host ruby is required. use --with-baseruby option.; false" + BASERUBY=$srcdir/tool/missing-baseruby.bat ]) AC_SUBST(BASERUBY) AC_SUBST(HAVE_BASERUBY) diff --git a/tool/missing-baseruby.bat b/tool/missing-baseruby.bat new file mode 100755 index 0000000000..d6d66a4d86 --- /dev/null +++ b/tool/missing-baseruby.bat @@ -0,0 +1,5 @@ +: " +@echo off +: " +echo executable host ruby is required. use --with-baseruby option. +exit 1