dev-ruby/ffi-1.1.5 depends on dev-ruby/builder but the ebuild doesn't DEPEND on it. This is on a fresh system with no ruby packages installed and using ruby19. Also strangely enough installing dev-ruby/builder won't solve this completly. The "require" in the ffi's tasks/gem.rake seems to miss installed builder. Fix attached, needs review. Reproducible: Always Steps to Reproduce: 1. emerge ffi ALSO FAILS: 2. emerge builder ffi Actual Results: >>> Emerging (1 of 1) dev-ruby/ffi-1.1.5 [...] * Running compile phase for ruby19 ... rake aborted! cannot load such file -- rubygems/builder /tmp/portage/dev-ruby/ffi-1.1.5/work/ruby19/ffi-ffi-ed72479/tasks/gem.rake:5:in `<top (required)>' * ERROR: dev-ruby/ffi-1.1.5::gentoo failed (compile phase): 1. Possibly DEPEND on dev-ruby/builder. 2. Replace in tasks/gem.rake: -require 'rubygems/builder' +require 'builder'
Created attachment 360658 [details, diff] Patch for upstreams rake file This needs review. It works but I can't say if this is correct.
Created attachment 360662 [details, diff] ebuild diff for the epatch above Inserts the epatch command for the gem.rake patch above.
Your patch works because you remove rubygems/builder, not because you add builder. :-) rubygems/builder is gone in rubygems 2.x. I've opted to fix this by stabling the newer ffi 1.4.0 in bug 487750, which was long overdue anyway. Thanks for the report!
1.1.5 has been cleaned up.