Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562980 - dev-ruby/hoe-3.13.0-r1 rdoc: command not found
Summary: dev-ruby/hoe-3.13.0-r1 rdoc: command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 559886 569532 570426 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-13 08:44 UTC by Anton Bolshakov
Modified: 2021-07-24 09:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2015-10-13 08:44:09 UTC
* Running prepare phase for all ...
 * Running source copy phase for ruby21 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/hoe-3.13.0-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/hoe-3.13.0-r1/work ...
 * Running compile phase for all ...
/var/tmp/portage/dev-ruby/hoe-3.13.0-r1/temp/environment: line 674: rdoc: command not found
 * ERROR: dev-ruby/hoe-3.13.0-r1::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4333:  Called ruby-ng_src_compile
 *   environment, line 4024:  Called _ruby_invoke_environment 'all' 'all_ruby_compile'
 *   environment, line  589:  Called all_ruby_compile
 *   environment, line  674:  Called die
 * The specific snippet of code:
 *       rdoc --title "seattlerb's hoe-3.5.1 Documentation" -o doc --main README.txt lib History.txt Manifest.txt README.txt || die
 *
 * If you need support, post the output of `emerge --info '=dev-ruby/hoe-3.13.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/hoe-3.13.0-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
Comment 1 Anton Bolshakov 2015-10-13 08:52:59 UTC
not sure if it helps:

bash# equery f rdoc | grep bin
/usr/bin
/usr/bin/rdoc-2
/usr/bin/rdoc21
/usr/bin/ri-2
/usr/bin/ri21
Comment 2 Anton Bolshakov 2015-10-13 09:01:28 UTC
That's right. /usr/bin/rdoc is a symlink which was pointing to /usr/bin/rdoc19 (and it is gone).

I've changed it -> /usr/bin/rdoc21 and it fixed the problem

So there are two issues:
 - does "hoe" really need rdoc even if doc flag is disabled?
 - rdoc ebuild should install a proper symlink
Comment 3 Hans de Graaff gentoo-dev Security 2015-10-14 05:36:24 UTC
Did you read news item "2015-08-26-ruby-19-removal" and use eselect to select a new ruby version after removing ruby 1.9?
Comment 4 Anton Bolshakov 2015-10-14 23:26:02 UTC
(In reply to Hans de Graaff from comment #3)
> Did you read news item "2015-08-26-ruby-19-removal" and use eselect to
> select a new ruby version after removing ruby 1.9?

Yes, and that's exactly the reason why it is broken now

bash# eselect ruby list
Available Ruby profiles:
  [1]   ruby20 (with Rubygems)
  [2]   ruby21 (with Rubygems) *
Comment 5 Willard Dawson 2015-10-17 17:11:54 UTC
This ebuild fails with ruby19 uninstalled, ruby21 selected and rdoc installed.  Same issue as reported in this bug, I think.
Comment 6 Willard Dawson 2015-10-17 17:12:57 UTC
(In reply to Willard Dawson from comment #5)
> This ebuild fails with ruby19 uninstalled, ruby21 selected and rdoc
> installed.  Same issue as reported in this bug, I think.

... except, having /usr/bin/rdoc link to rdoc21 does not fix it for me.  I'll open a new bug.
Comment 7 Willard Dawson 2015-10-17 17:18:29 UTC
(In reply to Willard Dawson from comment #6)
> (In reply to Willard Dawson from comment #5)
> > This ebuild fails with ruby19 uninstalled, ruby21 selected and rdoc
> > installed.  Same issue as reported in this bug, I think.
> 
> ... except, having /usr/bin/rdoc link to rdoc21 does not fix it for me. 
> I'll open a new bug.

*sigh* Apologies for the noise.  I had a stray copy of rdoc in /usr/local/bin that I did not realize was present.  Operator error on my part.
Comment 8 Hans de Graaff gentoo-dev Security 2015-10-24 06:53:19 UTC
(In reply to Anton Bolshakov from comment #2)

> So there are two issues:
>  - does "hoe" really need rdoc even if doc flag is disabled?

Yes, because rdoc is a runtime dependency of hoe since hoe provides tasks to generate documentation.

>  - rdoc ebuild should install a proper symlink

Agreed. We were already doing something similar in dev-ruby/rubygems, so I have added that approach also to rdoc-4.2.0.
Comment 9 Hans de Graaff gentoo-dev Security 2015-12-27 10:07:10 UTC
*** Bug 569532 has been marked as a duplicate of this bug. ***
Comment 10 Hans de Graaff gentoo-dev Security 2015-12-27 10:08:11 UTC
*** Bug 559886 has been marked as a duplicate of this bug. ***
Comment 11 Hans de Graaff gentoo-dev Security 2016-01-02 07:02:55 UTC
*** Bug 570426 has been marked as a duplicate of this bug. ***
Comment 12 KasperBoley 2021-07-24 09:15:07 UTC
It’s truly a great and useful piece of info. I’m happy that you just shared this useful information with us. Please keep us up to date like this. Thanks for sharing. 
https://bit.ly/3eQEACV