Project

General

Profile

Actions

Backport #7959

closed

configure contains non-portable shell code

Added by jeremyevans0 (Jeremy Evans) about 11 years ago. Updated almost 8 years ago.


Description

On 2.0.0 and trunk, configure contains non-portable shell code. When run on OpenBSD, configure emits the following errors and results in a ruby that builds but cannot run without manually specifying -I for the ruby lib directories:

...
checking for prefix of external symbols... NONE
checking for pthread.h... (cached) yes
checking if make is GNU make... no
checking for safe null command for make... :
checking for memmem... no
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g;s/ ...: invalid command code "
././configure: s/\//g: not found
././configure: s/^//;s/$//": not found
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g;s/ ...: invalid command code "
././configure: s/\//g: not found
././configure: s/^//;s/$//": not found
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g;s/ ...: invalid command code "
././configure: s/\//g: not found
././configure: s/^//;s/$//": not found
sed: 1: ""s/${[^${}"]}/"&"/g"": invalid command code "
sed: 1: ""s/${[^${}"]
}/"&"/g;s/ ...: invalid command code "
././configure: s/\//g: not found
././configure: s/^//;s/$//": not found
checking for nroff... no
checking for awf... no
.ext/include/x86_64-openbsd/ruby/config.h updated
verconf.h updated
ruby library version = 2.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-2.0.pc

The last revision that worked correctly was 39288.

It's trivial to work around the issue by using "bash configure" instead of "./configure", but that shouldn't be necessary. I'm sorry for not reporting this before the official release of 2.0.0, but this issue was introduced after rc2.


Related issues 1 (0 open1 closed)

Related to Backport200 - Backport #8071: Ruby 2.0 ./configure fails with syntax error on Illumos distributionsClosednagachika (Tomoyuki Chikanaga)03/11/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0