Created attachment 411618 [details] emerge --info build of webkit-gtk-2.8.5 dies with FAILED: cd /var/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkit-gtk-2.8.5_build/Source/JavaScriptCore && /usr/bin/ruby /var/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkitgtk-2.8.5/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb -I/var/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkit-gtk-2.8.5_build/DerivedSources/JavaScriptCore/ /var/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkitgtk-2.8.5/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /var/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkit-gtk-2.8.5_build/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such file -- rubygems/defaults (LoadError) from /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `<top (required)>' from <internal:gem_prelude>:1:in `require' from <internal:gem_prelude>:1:in `<compiled>'
Created attachment 411620 [details] build.log
What ruby versions do you have installed, with what flags? What is your system ruby interpreter (eselect ruby --show)? Can you run ruby from the command line e.g. ruby -e 'print("Hello world\n")'
(In reply to Alexandre Rostovtsev from comment #2) > Can you run ruby from the command line e.g. ruby -e 'print("Hello world\n")' Or rather: ruby -e 'require "rubygems/defaults"; print("Hello world\n");' to check that your rubygems install is sane.
(In reply to Alexandre Rostovtsev from comment #2) > What ruby versions do you have installed, with what flags? E6430-wireless ~ # eix -e ruby [I] dev-lang/ruby Available versions: (1.9) 1.9.3_p551-r1 (2.0) 2.0.0_p645 ~2.0.0_p647 (2.1) 2.1.6-r1 ~2.1.7 (2.2) ~2.2.2-r1 ~2.2.3 {berkdb debug doc examples gdbm ipv6 jemalloc ncurses +rdoc +readline rubytests socks5 ssl xemacs +yaml CPU_FLAGS_X86="sse2"} Installed versions: 1.9.3_p551-r1(1.9)(11:13:21 AM 04/15/2015)(berkdb gdbm ipv6 ncurses rdoc readline ssl yaml -debug -doc -examples -rubytests -socks5 -xemacs) 2.0.0_p645(2.0)(11:15:38 AM 04/15/2015)(berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -rubytests -socks5 -xemacs CPU_FLAGS_X86="sse2") 2.1.6-r1(2.1)(08:04:15 PM 09/10/2015)(berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -rubytests -socks5 -xemacs) Homepage: http://www.ruby-lang.org/ Description: An object-oriented scripting language * virtual/ruby Available versions: ~1 Homepage: https://wiki.gentoo.org/wiki/Project:Ruby Description: Virtual ebuild for ruby Found 2 matches. E6430-wireless ~ # > What is your system ruby interpreter (eselect ruby --show)? Current Ruby version: ruby19 Current Rubygems version: gem19
(In reply to Alexandre Rostovtsev from comment #3) > (In reply to Alexandre Rostovtsev from comment #2) > > Can you run ruby from the command line e.g. ruby -e 'print("Hello world\n")' > > Or rather: > > ruby -e 'require "rubygems/defaults"; print("Hello world\n");' > > to check that your rubygems install is sane. Bingo! E6430-wireless ~ # ruby -e 'require "rubygems/defaults"; print("Hello world\n");' /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such file -- rubygems/defaults (LoadError) from /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `<top (required)>' from <internal:gem_prelude>:1:in `require' from <internal:gem_prelude>:1:in `<compiled>' Now what? I don't use ruby personally. Any changes to my ruby system are from portage itself. thanks
CC-ing ruby team for advice.
That's probably the effect of not quite complete process of upgrade after RUBY_TARGETS change. What you need to look at is not 'eselect ruby --show', but 'eselect ruby list' (and pick one with rubygems). Upon unmerging 1.9 that would have been switched to first available (IIRC), but without that step it needs to be done manually.
I've fixed the way we are passing ruby paths to cmake: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3db1b3b67ceb628afc0284dbe278366190947242 In your case, it should probably lead to ruby21 or ruby22 being used instead of ruby19. Which might work better. Please check if it at least allows you to build.
I acted on 7 before seeing 8. With ruby updated to 20 (with rubygems) from 19 (without rubygems) netkit-gtk builds on the two systems on which is was failing. Should I change ruby to 21 and try again? I don't have ruby22 as this is a stable system. Thanks all.
(In reply to Allan Gottlieb from comment #9) > I acted on 7 before seeing 8. With ruby updated to 20 (with rubygems) from > 19 (without rubygems) netkit-gtk builds on the two systems on which is was > failing. > Should I change ruby to 21 and try again? I don't have ruby22 as this is a > stable system. No, it's not necessary. With the fixed cmake logic in the ebuild, the highest ruby version you have would get picked (so 21 or 20 instead of 19). Probably this bug should be marked as WORKSFORME. Since it's not clear what went wrong with your ruby, or how (or even whether) we should deal with it in the webkit-gtk ebuild.
(In reply to Alexandre Rostovtsev from comment #8) > I've fixed the way we are passing ruby paths to cmake: > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=3db1b3b67ceb628afc0284dbe278366190947242 It would probably be simpler to use ruby-single.eclass instead.
(In reply to Allan Gottlieb from comment #5) > Now what? I don't use ruby personally. Any changes to my ruby system are > from portage itself. Did you see the news item "Ruby 1.9 removal; Ruby 2.0/2.1 default" and act on it?
(In reply to Hans de Graaff from comment #12) > (In reply to Allan Gottlieb from comment #5) > > > Now what? I don't use ruby personally. Any changes to my ruby system are > > from portage itself. > > Did you see the news item "Ruby 1.9 removal; Ruby 2.0/2.1 default" and act > on it? Yes, but after sending the msg you replied to. I am now running ruby 2.0 with rubygems. All seems well