Bug 229546

Summary: lang/ruby24: rdoc is installed but cannot be managed by devel/ruby-gems
Product: Ports & Packages Reporter: Guangyuan Yang <ygy>
Component: Individual Port(s)Assignee: freebsd-ruby (Nobody) <ruby>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: mfechner, rene, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (ruby)
Version: Latest   
Hardware: Any   
OS: Any   

Description Guangyuan Yang freebsd_committer freebsd_triage 2018-07-05 18:19:06 UTC
This is causing confusions. There is a rubygem-rdoc (4.3.0) in the ports but it's not depended by ruby or ruby-gem, however, ruby installs a newer version of rdoc (5.0.0), but gem cannot see it.

vagrant@freebsd:~ % sudo pkg install ruby

[1/1] Installing ruby-2.4.4,1...
[1/1] Extracting ruby-2.4.4,1: 100%

vagrant@freebsd:~ % rdoc --version
5.0.0

vagrant@freebsd:~ % sudo pkg install ruby24-gems

[1/1] Installing ruby24-gems-2.7.6...
[1/1] Extracting ruby24-gems-2.7.6: 100%

vagrant@freebsd:~ % gem list
*** LOCAL GEMS ***

vagrant@freebsd:~ % sudo pkg install rubygem-rdoc

[1/1] Installing rubygem-rdoc-4.3.0_1...
[1/1] Extracting rubygem-rdoc-4.3.0_1: 100%

vagrant@freebsd:~ % gem list
*** LOCAL GEMS ***
rdoc (4.3.0)

vagrant@freebsd:~ % rdoc --version
4.3.0
Comment 1 Matthias Fechner freebsd_committer freebsd_triage 2018-07-05 19:12:11 UTC
For me it works fine:
gem list |grep rdoc
rdoc (6.0.4)

pkg info |grep rdoc
rubygem-rdoc-6.0.4             RDoc produces HTML and command-line documentation for Ruby projects
rubygem-sdoc-1.0.0             Create rdoc html with javascript search index

pkg info |grep ruby-
ruby-2.4.4,1                   Object-oriented interpreted scripting language
Comment 2 Guangyuan Yang freebsd_committer freebsd_triage 2018-07-05 21:24:46 UTC
(In reply to Matthias Fechner from comment #1)

I am saying that, without rubygem-rdoc being installed, lang/ruby comes with a rdoc 5.0.0 but cannot be seen by gem, and once rubygem-rdoc is installed, that rdoc will be rewritten.

Also, it seems that rubygem-rdoc 6.0.4 just got committed and the package is not yet ready :) http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/
Comment 3 Walter Schwarzenfeld freebsd_triage 2019-09-04 19:17:43 UTC
We have version 6.1.2. Is this still relevant or can we close here.
Comment 4 Rene Ladan freebsd_committer freebsd_triage 2020-03-31 11:22:49 UTC
Ruby 2.4 expired today, is this problem relevant to 2.5 or higher too?
Comment 5 Guangyuan Yang freebsd_committer freebsd_triage 2020-12-19 13:18:42 UTC
I can no longer reproduce this issue, closing the PR.