From: "rcl (Andrew Kosteltsev)" Date: 2022-01-21T15:19:24+00:00 Subject: [ruby-core:107231] [Ruby master Bug#18507] Incorrect target_os detection in configure script Issue #18507 has been reported by rcl (Andrew Kosteltsev). ---------------------------------------- Bug #18507: Incorrect target_os detection in configure script https://bugs.ruby-lang.org/issues/18507 * 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: