Project

General

Profile

Bug #10750

configure script has bashism on Ruby 2.2.0

Added by taca (Takahiro Kambe) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-netbsd]
[ruby-dev:48823]

Description

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) configure.diff Simple fix. taca (Takahiro Kambe), 01/17/2015 02:08 PM

Associated revisions

Revision 748372be
Added by nobu (Nobuyoshi Nakada) over 4 years ago

configure.in: no pattern substitution

  • configure.in: get rid of pattern substitution, which is not supported by ash, and ash on NetBSD parses whole source first and fails to start. [ruby-dev:48823] [Bug #10750]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 49306
Added by nobu (Nobuyoshi Nakada) over 4 years ago

configure.in: no pattern substitution

  • configure.in: get rid of pattern substitution, which is not supported by ash, and ash on NetBSD parses whole source first and fails to start. [ruby-dev:48823] [Bug #10750]

Revision 49306
Added by nobu (Nobuyoshi Nakada) over 4 years ago

configure.in: no pattern substitution

  • configure.in: get rid of pattern substitution, which is not supported by ash, and ash on NetBSD parses whole source first and fails to start. [ruby-dev:48823] [Bug #10750]

Revision 49306
Added by nobu (Nobuyoshi Nakada) over 4 years ago

configure.in: no pattern substitution

  • configure.in: get rid of pattern substitution, which is not supported by ash, and ash on NetBSD parses whole source first and fails to start. [ruby-dev:48823] [Bug #10750]

Revision 49306
Added by nobu (Nobuyoshi Nakada) over 4 years ago

configure.in: no pattern substitution

  • configure.in: get rid of pattern substitution, which is not supported by ash, and ash on NetBSD parses whole source first and fails to start. [ruby-dev:48823] [Bug #10750]

Revision 49306
Added by nobu (Nobuyoshi Nakada) over 4 years ago

configure.in: no pattern substitution

  • configure.in: get rid of pattern substitution, which is not supported by ash, and ash on NetBSD parses whole source first and fails to start. [ruby-dev:48823] [Bug #10750]

Revision e8e1a374
Added by naruse (Yui NARUSE) over 4 years ago

merge revision(s) 49306: [Backport #10750]

    * configure.in: get rid of pattern substitution, which is not
      supported by ash, and ash on NetBSD parses whole source first
      and fails to start.  [ruby-dev:48823] [Bug #10750]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 49329
Added by naruse (Yui NARUSE) over 4 years ago

merge revision(s) 49306: [Backport #10750]

* configure.in: get rid of pattern substitution, which is not
  supported by ash, and ash on NetBSD parses whole source first
  and fails to start.  [ruby-dev:48823] [Bug #10750]

History

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r49306.


configure.in: no pattern substitution

  • configure.in: get rid of pattern substitution, which is not supported by ash, and ash on NetBSD parses whole source first and fails to start. [ruby-dev:48823] [Bug #10750]

Updated by naruse (Yui NARUSE) over 4 years ago

  • 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.

Also available in: Atom PDF