ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: shibata.hiroshi@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:70588] [Ruby trunk - Bug #11472] [Assigned] Some default gems are not installed if GEM_HOME is set during Ruby installation
Date: Tue, 25 Aug 2015 12:11:00 +0000	[thread overview]
Message-ID: <redmine.journal-53994.20150825121058.0effb56145af1f80@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11472.20150820202630@ruby-lang.org

Issue #11472 has been updated by Hiroshi SHIBATA.

Status changed from Open to Assigned
Assignee set to Hiroshi SHIBATA

----------------------------------------
Bug #11472: Some default gems are not installed if GEM_HOME is set during Ruby installation
https://bugs.ruby-lang.org/issues/11472#change-53994

* Author: Vladimir Andrijevik
* Status: Assigned
* Priority: Normal
* Assignee: Hiroshi SHIBATA
* ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
As of 2.2.3, the issue which I believe was fixed with [this commit](https://github.com/ruby/ruby/commit/ec171c45975b525bbe5d63b92f1521622aa05394) seems to be back: `minitest`, `test-unit`, and `power_assert` are not installed if `GEM_HOME` is set when building Ruby.

~~~
$ env | grep GEM
GEM_HOME=/Users/vladimir/ruby/default/gems
GEM_PATH=/Users/vladimir/ruby/default/gems

$ ruby-build 2.2.3 ~/ruby/2.2.3

$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]

$ gem list

*** LOCAL GEMS ***

bigdecimal (1.2.6)
io-console (0.4.3)
json (1.8.1)
psych (2.0.8)
rake (10.4.2)
rdoc (4.2.0)
~~~

Doing the exact same installation, but making sure that `GEM_HOME` and `GEM_PATH` are not set, yields:

~~~
$ unset GEM_HOME
$ unset GEM_PATH
$ ruby-build 2.2.3 ~/ruby/2.2.3

$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]

$ gem list

*** LOCAL GEMS ***

bigdecimal (1.2.6)
io-console (0.4.3)
json (1.8.1)
minitest (5.4.3)
power_assert (0.2.2)
psych (2.0.8)
rake (10.4.2)
rdoc (4.2.0)
test-unit (3.0.8)
~~~

I do not observe this behavior with Ruby 2.2.2, so I believe it is a regression introduced in 2.2.3. Thank you for your consideration, and please let me know if I did something wrong – this is my first time reporting an issue here.



-- 
https://bugs.ruby-lang.org/

  parent reply	other threads:[~2015-08-25 11:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-11472.20150820202630@ruby-lang.org>
2015-08-20 20:26 ` [ruby-core:70478] [Ruby trunk - Bug #11472] [Open] Some default gems are not installed if GEM_HOME is set during Ruby installation vladimir
2015-08-25 12:11 ` shibata.hiroshi [this message]
2019-03-13  0:27 ` [ruby-core:91805] [Ruby trunk Bug#11472] " hsbt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-53994.20150825121058.0effb56145af1f80@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).