ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions.
@ 2011-07-20 12:29 Vit Ondruch
  2011-07-25 11:06 ` [ruby-core:38485] [Ruby 1.9 - Bug #5060][Assigned] " Yui NARUSE
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Vit Ondruch @ 2011-07-20 12:29 UTC (permalink / raw)
  To: ruby-core


Issue #5060 has been reported by Vit Ondruch.

----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
http://redmine.ruby-lang.org/issues/5060

Author: Vit Ondruch
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 1.9.3


It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).


-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:38485] [Ruby 1.9 - Bug #5060][Assigned] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
@ 2011-07-25 11:06 ` Yui NARUSE
  2011-07-25 23:50 ` [ruby-core:38506] [Ruby 1.9 - Bug #5060][Closed] " Eric Hodel
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Yui NARUSE @ 2011-07-25 11:06 UTC (permalink / raw)
  To: ruby-core


Issue #5060 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Eric Hodel
Target version set to 1.9.x


----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
http://redmine.ruby-lang.org/issues/5060

Author: Vit Ondruch
Status: Assigned
Priority: Normal
Assignee: Eric Hodel
Category: 
Target version: 1.9.x
ruby -v: 1.9.3


It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).


-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:38506] [Ruby 1.9 - Bug #5060][Closed] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
  2011-07-25 11:06 ` [ruby-core:38485] [Ruby 1.9 - Bug #5060][Assigned] " Yui NARUSE
@ 2011-07-25 23:50 ` Eric Hodel
  2012-06-21  5:34 ` [ruby-core:45745] [ruby-trunk - Bug #5060][Assigned] " vo.x (Vit Ondruch)
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Eric Hodel @ 2011-07-25 23:50 UTC (permalink / raw)
  To: ruby-core


Issue #5060 has been updated by Eric Hodel.

Status changed from Assigned to Closed

Since I committed r32608 and r32611 I think this issue is now invalid.

If a different version of rake or rdoc are installed they will behave the same as the bundled library.  rake _0.9.2.1_ will load the built-in version of rake, for example.  If a newer version of RDoc were installed rdoc and ri would behave the same.

I'm closing this ticket unless differing behavior can be reproduced.
----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
http://redmine.ruby-lang.org/issues/5060

Author: Vit Ondruch
Status: Closed
Priority: Normal
Assignee: Eric Hodel
Category: 
Target version: 1.9.x
ruby -v: 1.9.3


It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).


-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:45745] [ruby-trunk - Bug #5060][Assigned] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
  2011-07-25 11:06 ` [ruby-core:38485] [Ruby 1.9 - Bug #5060][Assigned] " Yui NARUSE
  2011-07-25 23:50 ` [ruby-core:38506] [Ruby 1.9 - Bug #5060][Closed] " Eric Hodel
@ 2012-06-21  5:34 ` vo.x (Vit Ondruch)
  2013-02-17  8:35 ` [ruby-core:52363] [ruby-trunk - Bug #5060] " drbrain (Eric Hodel)
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: vo.x (Vit Ondruch) @ 2012-06-21  5:34 UTC (permalink / raw)
  To: ruby-core


Issue #5060 has been updated by vo.x (Vit Ondruch).

Status changed from Closed to Assigned

Sorry, I'm reopening, but the issue is still present.

When you install Ruby, it carries initial version of /usr/bin/rdoc [1] (I picked up the RDoc as an example, but it is valid also for Rake, etc). Now let's assume that you will install updated RDoc, which replaces the file with the typical RubyGems stub, something like:

$ cat /usr/bin/rdoc
#!/usr/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'rdoc' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

version = ">= 0"

if ARGV.first
  str = ARGV.first
  str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
  if str =~ /\A_(.*)_\z/
    version = $1
    ARGV.shift
  end
end

gem 'rdoc', version
load Gem.bin_path('rdoc', 'rdoc', version)


Now, this is problem for packaging systems, namely RPM (but I would be surprised if that is not issue for DEB as well). If you will do monolithic Ruby package, which provides /usr/bin/rdoc and later you want to package independent updated version of RDoc gem, which provides /usr/bin/rdoc as well, you are in conflict, since the files are different. If they would be the same (and there is no reason to be different IMO), there would be no conflict. The file would be own by two packages in parallel, which is supported scenario.

So what I'd like to see is the RubyGems stub in /usr/bin, especially after you committed r32608.

Actually, I'm trying to put together some proposal to solve #5481 and #6124, which might fix also this issue.

Thank you.





[1] https://github.com/ruby/ruby/blob/trunk/bin/rdoc
----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
https://bugs.ruby-lang.org/issues/5060#change-27328

Author: vo.x (Vit Ondruch)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: 
Target version: 2.0.0
ruby -v: 1.9.3


It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:52363] [ruby-trunk - Bug #5060] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
                   ` (2 preceding siblings ...)
  2012-06-21  5:34 ` [ruby-core:45745] [ruby-trunk - Bug #5060][Assigned] " vo.x (Vit Ondruch)
@ 2013-02-17  8:35 ` drbrain (Eric Hodel)
  2013-10-14 13:20 ` [ruby-core:57850] " salimane (Salimane Adjao Moustapha)
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: drbrain (Eric Hodel) @ 2013-02-17  8:35 UTC (permalink / raw)
  To: ruby-core


Issue #5060 has been updated by drbrain (Eric Hodel).

Target version changed from 2.0.0 to next minor

This is too risky to fix for 2.0.0, sorry I did not have time.
----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
https://bugs.ruby-lang.org/issues/5060#change-36413

Author: vo.x (Vit Ondruch)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: 
Target version: next minor
ruby -v: 1.9.3


It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:57850] [ruby-trunk - Bug #5060] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
                   ` (3 preceding siblings ...)
  2013-02-17  8:35 ` [ruby-core:52363] [ruby-trunk - Bug #5060] " drbrain (Eric Hodel)
@ 2013-10-14 13:20 ` salimane (Salimane Adjao Moustapha)
  2017-12-08 14:12 ` [ruby-core:84134] [Ruby trunk Bug#5060] " mame
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: salimane (Salimane Adjao Moustapha) @ 2013-10-14 13:20 UTC (permalink / raw)
  To: ruby-core


Issue #5060 has been updated by salimane (Salimane Adjao Moustapha).


drbrain (Eric Hodel) wrote:
> This is too risky to fix for 2.0.0, sorry I did not have time.
I would like to know when this issue can be solved and pushed into trunk at least :)
Thanks


----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
https://bugs.ruby-lang.org/issues/5060#change-42448

Author: vo.x (Vit Ondruch)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: 
Target version: next minor
ruby -v: 1.9.3
Backport: 


It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:84134] [Ruby trunk Bug#5060] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
                   ` (4 preceding siblings ...)
  2013-10-14 13:20 ` [ruby-core:57850] " salimane (Salimane Adjao Moustapha)
@ 2017-12-08 14:12 ` mame
  2017-12-12 14:54 ` [ruby-core:84221] " v.ondruch
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mame @ 2017-12-08 14:12 UTC (permalink / raw)
  To: ruby-core

Issue #5060 has been updated by mame (Yusuke Endoh).

Assignee changed from drbrain (Eric Hodel) to hsbt (Hiroshi SHIBATA)

@hsbt-san, I might be wrong but has this issue been solved by default/bundled gems?

----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
https://bugs.ruby-lang.org/issues/5060#change-68240

* Author: vo.x (Vit Ondruch)
* Status: Assigned
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: next minor
* ruby -v: 1.9.3
* Backport: 
----------------------------------------
It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).



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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:84221] [Ruby trunk Bug#5060] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
                   ` (5 preceding siblings ...)
  2017-12-08 14:12 ` [ruby-core:84134] [Ruby trunk Bug#5060] " mame
@ 2017-12-12 14:54 ` v.ondruch
  2017-12-13  1:55 ` [ruby-core:84229] " hsbt
  2018-11-23  2:13 ` [ruby-core:89995] " hsbt
  8 siblings, 0 replies; 10+ messages in thread
From: v.ondruch @ 2017-12-12 14:54 UTC (permalink / raw)
  To: ruby-core

Issue #5060 has been updated by vo.x (Vit Ondruch).


No, this is still not resolved (testing with r61169). Only Rake (which is "bundled" gem) appears to be have RubyGems generated stub which won't conflict unless RubyGems changes the algorithm. The remaining executables (namely bundle, bundler, rdoc) are conflicting.

----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
https://bugs.ruby-lang.org/issues/5060#change-68343

* Author: vo.x (Vit Ondruch)
* Status: Assigned
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: next minor
* ruby -v: 1.9.3
* Backport: 
----------------------------------------
It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).



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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:84229] [Ruby trunk Bug#5060] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
                   ` (6 preceding siblings ...)
  2017-12-12 14:54 ` [ruby-core:84221] " v.ondruch
@ 2017-12-13  1:55 ` hsbt
  2018-11-23  2:13 ` [ruby-core:89995] " hsbt
  8 siblings, 0 replies; 10+ messages in thread
From: hsbt @ 2017-12-13  1:55 UTC (permalink / raw)
  To: ruby-core

Issue #5060 has been updated by hsbt (Hiroshi SHIBATA).


I understood this issue. I try to resolve current specification at Ruby 2.6.

----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
https://bugs.ruby-lang.org/issues/5060#change-68354

* Author: vo.x (Vit Ondruch)
* Status: Assigned
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: next minor
* ruby -v: 1.9.3
* Backport: 
----------------------------------------
It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).



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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:89995] [Ruby trunk Bug#5060] Executables in bin folder conflict with their gem versions.
  2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
                   ` (7 preceding siblings ...)
  2017-12-13  1:55 ` [ruby-core:84229] " hsbt
@ 2018-11-23  2:13 ` hsbt
  8 siblings, 0 replies; 10+ messages in thread
From: hsbt @ 2018-11-23  2:13 UTC (permalink / raw)
  To: ruby-core

Issue #5060 has been updated by hsbt (Hiroshi SHIBATA).


I created a patch for fixing this.

https://github.com/ruby/ruby/pull/2023

@nobu Can you review the above patch?

----------------------------------------
Bug #5060: Executables in bin folder conflict with their gem versions.
https://bugs.ruby-lang.org/issues/5060#change-75100

* Author: vo.x (Vit Ondruch)
* Status: Assigned
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
* ruby -v: 1.9.3
* Backport: 
----------------------------------------
It would be nice if the executables for rdoc, rake, ri, etc. locate in bin folder, would be standard RubyGems stubs. Otherwise, once there is installed version of such library as a gem, the original file is rewritten and the functionality of bundled library is lost.

But my main concern is the conflict between ruby and gem executables, since it makes packaging for Linux distributions hard (for Fedora and RHEL in my case).



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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-11-23  2:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-20 12:29 [ruby-core:38257] [Ruby 1.9 - Bug #5060][Open] Executables in bin folder conflict with their gem versions Vit Ondruch
2011-07-25 11:06 ` [ruby-core:38485] [Ruby 1.9 - Bug #5060][Assigned] " Yui NARUSE
2011-07-25 23:50 ` [ruby-core:38506] [Ruby 1.9 - Bug #5060][Closed] " Eric Hodel
2012-06-21  5:34 ` [ruby-core:45745] [ruby-trunk - Bug #5060][Assigned] " vo.x (Vit Ondruch)
2013-02-17  8:35 ` [ruby-core:52363] [ruby-trunk - Bug #5060] " drbrain (Eric Hodel)
2013-10-14 13:20 ` [ruby-core:57850] " salimane (Salimane Adjao Moustapha)
2017-12-08 14:12 ` [ruby-core:84134] [Ruby trunk Bug#5060] " mame
2017-12-12 14:54 ` [ruby-core:84221] " v.ondruch
2017-12-13  1:55 ` [ruby-core:84229] " hsbt
2018-11-23  2:13 ` [ruby-core:89995] " hsbt

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).