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

Rake bootstrap fails on with JRuby 9.1.13.0 #8220

Closed
jakelandis opened this issue Sep 12, 2017 · 4 comments
Closed

Rake bootstrap fails on with JRuby 9.1.13.0 #8220

jakelandis opened this issue Sep 12, 2017 · 4 comments

Comments

@jakelandis
Copy link
Contributor

To reproduce:

git clone https://github.com/elastic/logstash.git
(ensure clean environment)
rvm implode
\curl -sSL https://get.rvm.io | bash -s stable
rvm install jruby-9.1.13.0
(new shell)
cd logstash
rvm use jruby-9.1.13.0
rake bootstrap

results in

 rake bootstrap
mkdir -p vendor
mkdir vendor/_
Downloading http://jruby.org.s3.amazonaws.com/downloads/9.1.13.0/jruby-bin-9.1.13.0.tar.gz
Installing minitar 0.5.4 because the build process needs it.
mkdir -p build
mkdir -p build/bootstrap
[bootstrap] Fetching and installing gem: minitar (0.5.4)
rake aborted!
Gem::UnsatisfiableDependencyError: Unable to resolve dependency: user requested 'rake (= 12.1.0)'
/private/tmp/logstash/rakelib/gems.rake:39:in `block in (root)'
/private/tmp/logstash/rakelib/gems.rake:16:in `block in (root)'
/private/tmp/logstash/rakelib/dependency.rake:12:in `block in (root)'
/private/tmp/logstash/rakelib/vendor.rake:15:in `block in untar'
/private/tmp/logstash/rakelib/vendor.rake:87:in `block in (root)'
/private/tmp/logstash/rakelib/z_rubycheck.rake:28:in `(root)'
Gem::MissingSpecError: Could not find 'minitar' (= 0.5.4) among 12 total gem(s)
Checked in 'GEM_PATH=/private/tmp/logstash/vendor/bundle/jruby/2.3.0', execute `gem env` for more information
/private/tmp/logstash/rakelib/gems.rake:13:in `block in (root)'
/private/tmp/logstash/rakelib/dependency.rake:12:in `block in (root)'
/private/tmp/logstash/rakelib/vendor.rake:15:in `untar'
/private/tmp/logstash/rakelib/vendor.rake:87:in `block in (root)'
/private/tmp/logstash/rakelib/z_rubycheck.rake:28:in `<main>'
Tasks: TOP => gem:install
(See full trace by running task with --trace)

Workarounds:

  • Use JRuby 9.1.12.0 to bootstrap (.13 will still be used when running)
  • (assuming rake is installed elsewhere):
gem uninstall -i  ~/.rvm/gems/jruby-9.1.13.0@global rake
@jordansissel
Copy link
Contributor

The workaround (remove rake) fails on Windows JRuby:

PS C:\Users\jls\IdeaProjects\logstash> gem uninstall rake
ERROR:  While executing gem ... (Gem::InstallError)
    gem "rake" cannot be uninstalled because it is a default gem

@jordansissel
Copy link
Contributor

Attempting to use rake 12.1.0 directly also fails:

PS C:\Users\jls\IdeaProjects\logstash> jruby C:\jruby-9.1.13.0\lib\ruby\gems\shared\gems\rake-12.1.0\exe\rake --version 
rake, version 12.1.0

PS C:\Users\jls\IdeaProjects\logstash> jruby C:\jruby-9.1.13.0\lib\ruby\gems\shared\gems\rake-12.1.0\exe\rake bootstrap Installing minitar 0.5.4 because the build process needs it.
[bootstrap] Fetching and installing gem: minitar (0.5.4)
rake aborted!
Gem::UnsatisfiableDependencyError: Unable to resolve dependency: user requested 'rake (= 12.1.0)'

@jordansissel
Copy link
Contributor

Workaround confirmed - Downgrade system jruby to 9.1.12.0

PS C:\Users\jls\IdeaProjects\logstash> jruby -S rake bootstrap
Installing minitar 0.5.4 because the build process needs it.
[bootstrap] Fetching and installing gem: minitar (0.5.4)
Fetching: minitar-0.5.4.gem (100%)
Successfully installed minitar-0.5.4
1 gem installed

@kares
Copy link
Contributor

kares commented Dec 11, 2019

let us call it a day, bootstrap seems fine these days using JRuby 9.2

@kares kares closed this as completed Dec 11, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants