From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2026-11-24T07:48:33+00:00 Subject: [ruby-core:127693] [Ruby Feature#22628] configure: Skip the GNU config downloader when both auxiliary files exist Issue #22628 has been updated by nobu (Nobuyoshi Nakada). It is not different by native and cross builds, but just the `BASERUBY` is available or not. These auxiliary files are required to run `configure`, which means they should already exist, so I don't think there's any point in trying to download them here. ---------------------------------------- Feature #22628: configure: Skip the GNU config downloader when both auxiliary files exist https://bugs.ruby-lang.org/issues/22628#change-120208 * Author: ledsun (shigeru nakajima) * Status: Open ---------------------------------------- For the official source tarball, I���d like native and cross builds to handle config.guess and config.sub the same way. Today, a native build without BASERUBY uses the bundled files directly, while a cross build requires BASERUBY and therefore takes an extra trip through the downloader to use those same files. Could configure check whether both files are already present before invoking the downloader? With that check, both builds would use the bundled files directly, regardless of whether BASERUBY is available. Here is the patch I tested. ``` diff diff --git a/configure.ac b/configure.ac index b4dc31c..db5fc98 100644 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,9 @@ AS_IF([test "${HAVE_BASERUBY:=no}" != no], [ ]) RUBY_APPEND_OPTION(BASERUBY, "--disable=gems") BASERUBY_VERSION=`$BASERUBY -v` - $BASERUBY -C "$srcdir" tool/downloader.rb -d tool -e gnu config.guess config.sub >&AS_MESSAGE_FD + AS_IF([test ! -e "$srcdir/tool/config.guess" || test ! -e "$srcdir/tool/config.sub"], [ + $BASERUBY -C "$srcdir" tool/downloader.rb -d tool -e gnu config.guess config.sub >&AS_MESSAGE_FD + ]) ]) AS_IF([test "$HAVE_BASERUBY" = no], [ AS_IF([test "$cross_compiling" = yes], [AC_MSG_ERROR([executable host ruby is required for cross-compiling])]) ``` I verified that cross configuration from the official CRuby 4.0.10 source tarball succeeded on x86-64 Linux targeting AArch64 Linux without invoking tool/downloader.rb. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/