Project

General

Profile

Actions

Bug #18507

open

Incorrect target_os detection in configure script

Added by rcl (Andrew Kosteltsev) about 2 years ago. Updated about 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:107231]

Description

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) ruby-3.1.0-configure-target-os.patch This patch fixes this issue rcl (Andrew Kosteltsev), 01/21/2022 03:18 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0