Skip to content

Commit

Permalink
Add a workaround for missing call to cross_compile block
Browse files Browse the repository at this point in the history
The cross_compiling block wasn't called for the x86_64-linux platform
leading to an additional dependency to mini_portile2 and missing
post install message.

Patch to rake-compiler is here: rake-compiler/rake-compiler#171

Fixes #1991
  • Loading branch information
larskanis committed Mar 3, 2020
1 parent 62db71d commit 33e5b42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/cross-ruby.rb
Expand Up @@ -166,6 +166,7 @@ def verify_dll(dll, cross_ruby)
RakeCompilerDock.sh <<-EOT, platform: plat
gem install bundler --no-document &&
bundle &&
find /usr/local/rvm/gems -name extensiontask.rb | while read f ; do sudo sed -i 's/callback.call(spec) if callback/@cross_compiling.call(spec) if @cross_compiling/' $f ; done &&
rake native:#{plat} pkg/#{HOE.spec.full_name}-#{plat}.gem MAKE='nice make -j`nproc`' RUBY_CC_VERSION=#{ENV["RUBY_CC_VERSION"]}
EOT
end
Expand Down

0 comments on commit 33e5b42

Please sign in to comment.