Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584906 - dev-ruby/hpricot-0.8.6-r4 fails to build with LoadError: cannot load such file -- rdoc/task [needs rdoc]
Summary: dev-ruby/hpricot-0.8.6-r4 fails to build with LoadError: cannot load such fil...
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:
Depends on:
Blocks:
 
Reported: 2016-06-03 08:11 UTC by Jan-Matthias Braun
Modified: 2023-04-30 10:07 UTC (History)
0 users

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


Attachments
Remove all mentions of rdoc in Rakefile, making hpricot install without rdoc. (remove_rdoc.patch,1.61 KB, patch)
2016-06-03 08:11 UTC, Jan-Matthias Braun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Matthias Braun 2016-06-03 08:11:13 UTC
Created attachment 436258 [details, diff]
Remove all mentions of rdoc in Rakefile, making hpricot install without rdoc.

hpricot fails to build when rdoc is not installed. Build log contains an rake error:
    LoadError: cannot load such file -- rdoc/task

installing rdoc fixes the problem. This problem is independent of the setting of the doc use-flag.
Comment 1 Hans de Graaff gentoo-dev Security 2016-06-05 07:59:01 UTC
Can you confirm that you had this issue with a fresh install (of ruby-related code, at least).
Comment 2 Jan-Matthias Braun 2016-06-06 07:56:11 UTC
(In reply to Hans de Graaff from comment #1)
> Can you confirm that you had this issue with a fresh install (of
> ruby-related code, at least).

Would it be enough to uninstall every ebuild of dev-ruby and then reemerge?

Cheers,

Jan
Comment 3 Hans de Graaff gentoo-dev Security 2016-06-11 07:03:46 UTC
(In reply to Jan-Matthias Braun from comment #2)
> (In reply to Hans de Graaff from comment #1)
> > Can you confirm that you had this issue with a fresh install (of
> > ruby-related code, at least).
> 
> Would it be enough to uninstall every ebuild of dev-ruby and then reemerge?

I wanted to find out if you ran into the original error when you were trying to install hpricot on a system that did not have ruby installed yet. There are some dependency issues where rdoc is not installed early enough and I want to confirm that this is what happened.
Comment 4 Jan-Matthias Braun 2016-06-13 07:52:32 UTC
Actually, it was on a system with ruby 2.2 and 2.3 installed [USE=-rdoc] for the update of hpricot from 0.8.6-r3 to 0.8.6-r4. Therefore, rdoc was not installed. As I am not using ruby directly, I was never interested in having a documentation system and the corresponding documentation installed.
Comment 5 Hans de Graaff gentoo-dev Security 2016-06-13 18:50:22 UTC
This may be bug 536288. In that case re-installing dev-ruby/rdoc should fix it.
Comment 6 Jan-Matthias Braun 2016-06-14 10:19:31 UTC
(In reply to Hans de Graaff from comment #5)
> This may be bug 536288. In that case re-installing dev-ruby/rdoc should fix
> it.

I do not think so. I wilfully omitted rdoc from my install: The rdoc use-flag is unset to not have rdoc installed because I do not need any documentation for ruby related packages.

In this environment the hpricot [USE=-doc] build fails, because it needs rdoc, although the use-flag suggests that no docs will be built. IMHO, this is one of two problems:
1. rdoc is always needed for hpricot but there is no DEPEND defined. The solution would be a corresponding DEPEND in the hpricot ebuild.
2. hpricot requires rdoc although it should not be needed for USE=-doc. In this case, my patch could be a possible solution to disable doc generation at build time for systems with USE=-rdoc.

By the way, why do ruby packages use the rdoc (dev-lang/ruby) and doc (for dev-ruby pkgs) use flags?

All the best,

Jan
Comment 7 Hans de Graaff gentoo-dev Security 2016-08-05 13:15:58 UTC
(In reply to Jan-Matthias Braun from comment #6)

> 1. rdoc is always needed for hpricot but there is no DEPEND defined. The
> solution would be a corresponding DEPEND in the hpricot ebuild.

This issue has been fixed in hpricot-0.8.6-r5 (dev-ruby/rdoc is now a DEPEND).
Comment 8 Larry the Git Cow gentoo-dev 2023-04-30 10:07:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1238100dfe7a4971438ea00550e9df0a33707cf3

commit 1238100dfe7a4971438ea00550e9df0a33707cf3
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-04-30 10:06:09 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-04-30 10:06:09 +0000

    dev-ruby/hpricot: treeclean
    
    Closes: https://bugs.gentoo.org/442308
    Closes: https://bugs.gentoo.org/584906
    Closes: https://bugs.gentoo.org/619386
    Closes: https://bugs.gentoo.org/827934
    Closes: https://bugs.gentoo.org/884257
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-ruby/hpricot/Manifest                          |  1 -
 dev-ruby/hpricot/files/hpricot-0.8.6-fast_xs.patch | 24 ---------
 dev-ruby/hpricot/hpricot-0.8.6-r6.ebuild           | 57 ----------------------
 dev-ruby/hpricot/metadata.xml                      |  8 ---
 profiles/package.mask                              |  1 -
 5 files changed, 91 deletions(-)