Really fix installing Ruby 2.1.0 from trunk

The problem wasn't in quoting as per 0b5206172, but in the fact that
Ruby trunk added a LDFLAGS checker that aborts if any of the paths
listed in it are missing:
3636f8c0f5

This is probably a bug in Ruby, but for now a simple workaround is to
iterate through paths in LDFLAGS and ensure they exist.

References #441
This commit is contained in:
Mislav Marohnić 2013-10-27 21:32:18 +01:00
parent 0b52061728
commit 50bf60f9c2
2 changed files with 11 additions and 1 deletions

View file

@ -699,6 +699,16 @@ build_package_verify_openssl() {
end' >&4 2>&1
}
# Ensure that directories listed in LDFLAGS exist
build_package_ldflags_dirs() {
local arg
for arg in $LDFLAGS; do
case "$arg" in
-L* ) mkdir -p "${arg#-L}" ;;
esac
done
}
rake() {
if [ -e "./Gemfile" ]; then
bundle exec rake "$@"

View file

@ -1,2 +1,2 @@
install_package "openssl-1.0.1e" "https://www.openssl.org/source/openssl-1.0.1e.tar.gz#66bf6f10f060d561929de96f9dfe5b8c" mac_openssl --if has_broken_mac_openssl
install_git "ruby-2.1.0-dev" "https://github.com/ruby/ruby.git" "trunk" autoconf standard verify_openssl
install_git "ruby-2.1.0-dev" "https://github.com/ruby/ruby.git" "trunk" ldflags_dirs autoconf standard verify_openssl