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: New
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 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-05 18:19 UTC by Guangyuan Yang
Modified: 2018-07-05 21:24 UTC (History)
1 user (show)

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


Attachments

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
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 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/