Summary: | dev-ruby/hpricot-0.8.6-r4 fails to build with LoadError: cannot load such file -- rdoc/task [needs rdoc] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jan-Matthias Braun <jan_braun> |
Component: | Current packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Remove all mentions of rdoc in Rakefile, making hpricot install without rdoc. |
Can you confirm that you had this issue with a fresh install (of ruby-related code, at least). (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 (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. 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. This may be bug 536288. In that case re-installing dev-ruby/rdoc should fix it. (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 (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). 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(-) |
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.