From: "nobu (Nobuyoshi Nakada)" Date: 2022-01-22T16:18:56+00:00 Subject: [ruby-core:107241] [Ruby master Bug#18507] Incorrect target_os detection in configure script Issue #18507 has been updated by nobu (Nobuyoshi Nakada). It seems like intentional, as there is the second substitution. Is arm-linux-eabihf incorrect? ---------------------------------------- Bug #18507: Incorrect target_os detection in configure script https://bugs.ruby-lang.org/issues/18507#change-96100 * Author: rcl (Andrew Kosteltsev) * Status: Open * Priority: Normal * ruby -v: 3.1.0 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- configure.ac incorrectly detect target_os by target triplet such as arm-unknown-linux-gnueabihf. In case arm-unknown-linux-gnueabihf suffix we have incorrect ruby arch = 'arm-linux-eabihf' instead of 'arm-linux'. configure.ac: 246: target_os=`echo $target_os | sed 's/linux-gnu$/linux/;s/linux-gnu/linux-/'` should be changed to: target_os=`echo $target_os | sed 's/linux-gnu[[^ ]]*$/linux/;s/linux-gnu/linux-/'` and correspondently configure: 7619: target_os=`echo $target_os | sed 's/linux-gnu$/linux/;s/linux-gnu/linux-/'` should be changed to: target_os=`echo $target_os | sed 's/linux-gnu[^ ]*$/linux/;s/linux-gnu/linux-/'` ---Files-------------------------------- ruby-3.1.0-configure-target-os.patch (983 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: