Bug 229546 - lang/ruby24: rdoc is installed but cannot be managed by devel/ruby-gems
Summary: lang/ruby24: rdoc is installed but cannot be managed by devel/ruby-gems
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ruby (Nobody)
Depends on:
Reported: 2018-07-05 18:19 UTC by Guangyuan Yang
Modified: 2020-12-19 13:18 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (ruby)


Note You need to log in before you can comment on or make changes to this bug.
Description Guangyuan Yang freebsd_committer 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

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
Comment 1 Matthias Fechner freebsd_committer 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 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 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 2020-12-19 13:18:42 UTC
I can no longer reproduce this issue, closing the PR.