[ruby-dev:48828] [ruby-trunk - Bug #10750] configure script has bashism on Ruby 2.2.0
From:
naruse@...
Date:
2015-01-19 03:01:27 UTC
List:
ruby-dev #48828
Issue #10750 has been updated by Yui NARUSE.
Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
ruby_2_2 r49329 merged revision(s) 49306.
----------------------------------------
Bug #10750: configure script has bashism on Ruby 2.2.0
https://bugs.ruby-lang.org/issues/10750#change-51097
* Author: Takahiro Kambe
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-netbsd]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
----------------------------------------
On Ruby 2.2.0, configure script has bashism part and it cause syntax error:
~~~
./configure: 21262: Syntax error: Bad substitution
~~~
The problem line:
~~~
test "x${linker_flag}" = x || flag="${linker_flag}${flag// /,}"
~~~
`${flag// /}` is not portable syntax but bash specific syntax.
The problem dose happens on NetBSD 7.0_BETA and current (7.99.4), but not on NetBSD 6.1_STABLE.
So, it might be some bug or syntax change on NetBSD.
Anyway, I do not think it is good idea to use none portable shell syntax.
---Files--------------------------------
configure.diff (424 Bytes)
--
https://bugs.ruby-lang.org/