Project

General

Profile

Bug #12764

rubygems with multi default gem problem

Added by znz (Kazuhiro NISHIYAMA) almost 3 years ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:77284]

Description

This issue may affect Ruby committers only.
This does not probably affect released ruby.

With development ruby, make install many times.
After them, default gems are duplicated when exists updated.
And gem with old version in Gemfile does not work well.

Example:

% gem list rdoc

*** LOCAL GEMS ***

rdoc (default: 5.0.0.beta2, default: 4.2.1)
% cat Gemfile
# frozen_string_literal: true
source "https://rubygems.org"

# gem "rails"
gem 'rdoc', '4.2.1'
% cat Gemfile.lock
GEM
  remote: https://rubygems.org/
  specs:
    rdoc (4.2.1)

PLATFORMS
  ruby

DEPENDENCIES
  rdoc (= 4.2.1)

BUNDLED WITH
   1.13.0
% bundle exec ruby -r rdoc -e 'p RDoc::VERSION'
"5.0.0.beta2"

FYI: Difference of bundled gem and default gem (in Japanese)


Files

rbinstall-destdir.patch (997 Bytes) rbinstall-destdir.patch jeremyevans0 (Jeremy Evans), 06/25/2019 06:05 PM

Associated revisions

Revision f550da51
Added by hsbt (Hiroshi SHIBATA) 7 months ago

Removed old gemspecs of default gems for the Ruby committers.

[Bug #12764][ruby-core:77284]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 66844
Added by hsbt (Hiroshi SHIBATA) 7 months ago

Removed old gemspecs of default gems for the Ruby committers.

[Bug #12764][ruby-core:77284]

History

Updated by hsbt (Hiroshi SHIBATA) about 1 year ago

  • Assignee set to hsbt (Hiroshi SHIBATA)
  • Status changed from Open to Assigned
#2

Updated by hsbt (Hiroshi SHIBATA) 7 months ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r66844.


Removed old gemspecs of default gems for the Ruby committers.

[Bug #12764][ruby-core:77284]

Updated by jeremyevans0 (Jeremy Evans) about 2 months ago

This change broke installation when using --dest-dir, if the gem file without --dest-dir exists and the user performing the install does not have write access to the containing directory. This affects building a package for the OpenBSD port if a previous package is already installed. Attached is a patch to fix the issue. I plan on committing it unless I hear objections.

Also available in: Atom PDF