Summary: | dev-ruby/rdoc-6.0.1 - src_compile(): cannot load such file -- rdoc/markdown (LoadError) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | eike, esigra, gentoo, lilwyrm, r.wolf.gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log for emerge of rdoc |
Description
Juergen Rose
2018-04-29 11:00:51 UTC
I experienced this problem upgrading from rdoc-4.3.0 to rdoc-5.1.0. As a workaround, I added "dev-ruby/* -doc" to my package.use and was able to complete the build. Hello, fight with this issue for a few weeks now and now I wanted to solve it finally. The error was /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- rdoc/markdown (LoadError) So I have searched the error and found this report. I haved searched to which package the file /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb belongs - it is dev-ruby/rubygems. So I thought maybe this package need recompile and I have recompiled, but error still persist. Then I have noticed the * To switch between available Ruby profiles, execute as root: * eselect ruby set ruby(23|24|...) message at the end of rubygems installation. Currently, I have ruby23 and ruby24 and ruby24 was default. I have switched to ruby23 and now rdoc-5.1.0 can be installed without error. Switching back to ruby24 and trying to re-merge rdoc-5.1.0 generates no error anymore and rdoc-5.1.0 can be compiled and install with ruby24 as default now. I have no idea, what the problem is, probably rdoc-5.1.0 with ruby23 install somewhere the required rdoc/markdown (which is in rdoc-5.1.0/lib/rdoc/markdown) and then remerging rdoc-5.1.0 has everything required. I have now merged rdoc-4.3.0 and there is only ruby23 as target, even if I have ruby24 with eselect as default. No I try to merge rdoc-5.1.0 over rdoc-4.3.0 and rdoc-5.1.0 shows new ruby target ruby24 and it fails again with the error ================================================== * Running compile phase for all ... /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- rdoc/markdown (LoadError) from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /home/GENTOO/work/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0/lib/rdoc/text.rb:29:in `<module:Text>' from /home/GENTOO/work/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0/lib/rdoc/text.rb:22:in `<top (required)>' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /home/GENTOO/work/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0/lib/rdoc/code_object.rb:30:in `<class:CodeObject>' from /home/GENTOO/work/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0/lib/rdoc/code_object.rb:28:in `<top (required)>' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /home/GENTOO/work/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0/lib/rdoc/generator/markup.rb:60:in `<top (required)>' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /home/GENTOO/work/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0/lib/rdoc/generator/darkfish.rb:7:in `<top (required)>' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /home/GENTOO/work/portage/dev-ruby/rdoc-5.1.0/work/all/rdoc-5.1.0/lib/rdoc/rdoc.rb:564:in `<top (required)>' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require' from exe/rdoc:16:in `<main>' * ERROR: dev-ruby/rdoc-5.1.0::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 4364: Called ruby-ng_src_compile * environment, line 4058: Called _ruby_invoke_environment 'all' 'all_ruby_compile' * environment, line 610: Called all_ruby_compile * environment, line 696: Called die * The specific snippet of code: * ruby -Ilib -S exe/rdoc || die; ================================================== So the workaround is to eselect ruby23, merge rdoc and then eselect back to ruby24. But there should be probably something fixed so the rdoc compiles without this issue. Regards, Robert Wolf. I see now, this report is for ruby25 and rdoc-6.0.1. I presume the same workaround could work in this case too: eselect ruby set ruby24 emerge -1 =dev-ruby/rdoc-6.0.1 eselect ruby set ruby25 emerge -1 =dev-ruby/rdoc-6.0.1 Regards, Robert Wolf. Created attachment 602250 [details] build.log for emerge of rdoc I have the same problem but with rdoc-6.1.2, but the workaround in comment #3 does not help. *** Bug 673178 has been marked as a duplicate of this bug. *** *** Bug 860126 has been marked as a duplicate of this bug. *** |