Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installing in path containing spaces #94

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions linux/internal/build-ruby-inside-mock
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ echo ORIG_RUBYLIB=\"$RUBYLIB\"

echo LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:$ROOT/lib\"
echo SSL_CERT_FILE=\"$ROOT/lib/ca-bundle.crt\"
echo RUBYOPT=\"-r$ROOT/lib/restore_environment\"
echo RUBYOPT=\"-rrestore_environment\"
for DIR in "$ROOT"/lib/ruby/gems/*/deplibs/*/*; do
echo LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH:$DIR\"
done
EOF
echo "echo GEM_HOME=\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\"" >> "$FILE"
echo "echo GEM_PATH=\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\"" >> "$FILE"
echo "echo GEM_HOME=\\\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\\\"" >> "$FILE"
echo "echo GEM_PATH=\\\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\\\"" >> "$FILE"

cat >> "$FILE" <<EOF
echo RUBYLIB=\"$LOAD_PATHS\"
Expand Down Expand Up @@ -183,7 +183,7 @@ run cp $LIBDIR/libtermcap.so.2 /tmp/ruby/lib/
run cp $USRLIBDIR/libreadline.so.5 /tmp/ruby/lib/
run cp $FFILIBDIR/libffi.so.6 /tmp/ruby/lib/
run cp /system/ca-bundle.crt /tmp/ruby/lib/
run cp /system/restore_environment.rb /tmp/ruby/lib/
run cp /system/restore_environment.rb /tmp/ruby/lib/ruby/site_ruby/
export SSL_CERT_FILE=/tmp/ruby/lib/ca-bundle.crt

# Dump various information about the Ruby binaries.
Expand Down
8 changes: 4 additions & 4 deletions osx/build-ruby
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ echo ORIG_RUBYLIB=\"$RUBYLIB\"

echo TERMINFO=/usr/share/terminfo
echo SSL_CERT_FILE=\"$ROOT/lib/ca-bundle.crt\"
echo RUBYOPT=\"-r$ROOT/lib/restore_environment\"
echo RUBYOPT=\"-rrestore_environment\"
EOF
echo "echo GEM_HOME=\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\"" >> "$FILE"
echo "echo GEM_PATH=\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\"" >> "$FILE"
echo "echo GEM_HOME=\\\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\\\"" >> "$FILE"
echo "echo GEM_PATH=\\\"\$ROOT/lib/ruby/gems/$RUBY_COMPAT_VERSION\\\"" >> "$FILE"

cat >> "$FILE" <<EOF
echo RUBYLIB=\"$LOAD_PATHS\"
Expand Down Expand Up @@ -296,7 +296,7 @@ pushd "$TMPBUILDROOT" >/dev/null

# Copy over various useful files.
run cp -pR "$RUNTIME_DIR"/lib/*.dylib* lib/
run cp "$SELFDIR/internal/restore_environment.rb" lib/
run cp "$SELFDIR/internal/restore_environment.rb" lib/ruby/site_ruby/
run cp "$SELFDIR/../shared/ca-bundle.crt" lib/
export SSL_CERT_FILE="$TMPBUILDROOT/lib/ca-bundle.crt"

Expand Down