From: "rcl (Andrew Kosteltsev)" Date: 2022-01-25T08:57:13+00:00 Subject: [ruby-core:107274] [Ruby master Bug#18507] Incorrect target_os detection in configure script Issue #18507 has been updated by rcl (Andrew Kosteltsev). In case 'arm-unknown-linux-gnueabihf' GNU Autotools recognizes target_os as 'linux-gnueabihf' (and 'linux-gnu' if 'arm-unknown-linux-gnu'). But ruby has own function for getting target_os during configuration process. I think there are no resons to set up ruby for both architectures (arm with soft fp engine and arm with hard fp) on one machine. If it is true then we can define target_os as 'linux' without any suffix. If you want to set up ruby for several arch at the same time then you can stay with 'linux-eabihf'. However, this will create problems for distributors due to the disagreement in determining the target_os by GNU Autotools and determining the target_os by configure script from RUBY. Any case the 'linux-eabihf' is not correct name for target_os. ---------------------------------------- Bug #18507: Incorrect target_os detection in configure script https://bugs.ruby-lang.org/issues/18507#change-96138 * 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: