gem list don't show some gems as default #4019

Open
etehtsea opened this Issue Jul 18, 2016 · 7 comments

Projects

None yet

5 participants

@etehtsea
Contributor
etehtsea commented Jul 18, 2016 edited

jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.77-b03 on 1.8.0_77-b03 [darwin-x86_64]

$ gem list |grep default 
jar-dependencies (default: 0.3.2)
minitest (5.9.0, 5.8.4, default: 5.4.1)
net-telnet (default: 0.1.1)
power_assert (default: 0.2.3)
rake (11.2.2, 10.5.0, default: 10.4.2, 10.1.1)
rdoc (4.2.2, default: 4.2.0)
test-unit (default: 3.1.1, 2.5.5)

Gems that are missing from this list:

  • racc
  • psych
  • json
  • jruby-openssl
$ gem uninstall json
ERROR:  While executing gem ... (Gem::InstallError)
    gem "json" cannot be uninstalled because it is a default gem

P.S. Why rake is default on JRuby and is not on MRI?

@mkristian
Member

rake is preinstalled with jruby but should not be a default gem.

the rest looks inconsistent as well.

@etehtsea etehtsea referenced this issue in rubygems/rubygems Aug 16, 2016
Merged

Show default gems for all platforms #1685

@etehtsea
Contributor

Okay, issue that some gems aren't shown as default is unrelated to JRuby itself.
Leaving it open until rubygems will be updated.

@homu homu added a commit to rubygems/rubygems that referenced this issue Aug 17, 2016
@homu homu Auto merge of #1685 - etehtsea:fix-jruby-default, r=segiddins
Show default gems for all platforms

# Description:
Before:

On JRuby 9k:

```sh
gem list
*** LOCAL GEMS ***

did_you_mean (default: 1.0.1)
ffi (1.9.14 java)
jar-dependencies (default: 0.3.5, default: 0.3.2)
jruby-openssl (0.9.17 java) # <----
json (1.8.3 java) # <----
minitest (default: 5.4.1)
net-telnet (default: 0.1.1)
power_assert (default: 0.2.3)
psych (2.0.17 java) # <----
racc (1.4.14 java, 1.4.13 java) # <----
rake (default: 10.4.2)
rdoc (default: 4.2.0)
test-unit (default: 3.1.1)
```

After:

```sh

*** LOCAL GEMS ***

did_you_mean (default: 1.0.1)
ffi (1.9.14 java)
jar-dependencies (default: 0.3.5, default: 0.3.2)
jruby-openssl (default: 0.9.17 java) # <----
json (default: 1.8.3 java) # <----
minitest (default: 5.4.1)
net-telnet (default: 0.1.1)
power_assert (default: 0.2.3)
psych (default: 2.0.17 java) # <----
racc (default: 1.4.14 java, default: 1.4.13 java) # <----
rake (default: 10.4.2)
rdoc (default: 4.2.0)
test-unit (default: 3.1.1)
```

Original issue: jruby/jruby#4019
ba332a8
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Aug 17, 2016
@etehtsea etehtsea Don't install non-default gems to stdlib 20ad5e6
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Aug 17, 2016
@etehtsea etehtsea Don't install non-default gems to stdlib e1f50dc
@headius
Member
headius commented Aug 17, 2016

@etehtsea Help us by letting us know when there's a RubyGems release out. We can pull it into 9.1.3.0 if it's not too drastic.

@etehtsea
Contributor

@headius for sure

@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Aug 18, 2016
@etehtsea etehtsea Don't install non-default gems to stdlib 00da644
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Aug 18, 2016
@etehtsea etehtsea Don't install non-default gems to stdlib 727b106
@headius headius added this to the JRuby 9.1.3.0 milestone Aug 19, 2016
@headius
Member
headius commented Aug 22, 2016

I don't think this will be ready for 9.1.3.0. Bumping.

@headius headius modified the milestone: JRuby 9.1.4.0, JRuby 9.1.3.0 Aug 22, 2016
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Oct 1, 2016
@etehtsea etehtsea RubyGems 2.6.7 + patch in rubygems/rubygems#1685
Fixes #4019
15412e0
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Oct 1, 2016
@etehtsea etehtsea Apply patch from rubygems/rubygems#1685
Fixes #4019
63fcab8
@headius headius closed this in #4198 Oct 5, 2016
@etehtsea
Contributor

please reopen, because fix didn't get into release.

@kares kares reopened this Nov 10, 2016
@enebo enebo modified the milestone: JRuby 9.1.7.0, JRuby 9.1.6.0 Nov 15, 2016
@headius
Member
headius commented Dec 13, 2016

Still waiting on a RubyGems release with the patch in question. We can patch it ourselves, but the first time anyone (or anything, like rvm) updates RubyGems, it will wipe out our change.

I have requested a backport of the patch and a 2.6.9 release of RubyGems in rubygems/rubygems#1685.

@enebo enebo modified the milestone: JRuby 9.2.0.0, JRuby 9.1.7.0 Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment