media-libs/liblastfm-0.3 fails to build with dev-lang/ruby:1.9 because the "ftools" component is not available. Ebuild should require ruby 1.8, or patch with fix: sed -i "s/require 'ftools'//g" admin/* This has been corrected upstream for future liblastfm-0.4.0 Reproducible: Always Steps to Reproduce: 1. unmask dev-lang/ruby:1.9 2. emerge liblastfm 3. (liblastfm will pull ruby update and then fail to build) Actual Results: admin/Makefile.rb:9:in `require': no such file to load -- ftools (LoadError)
+ 09 Nov 2009; Samuli Suominen <ssuominen@gentoo.org> + liblastfm-0.3.0.ebuild: + Restrict Ruby depend to =dev-lang/ruby-1.8* wrt #287906, thanks to Ken + Rushia for reporting. Leaving open until we have new version in tree.
I committed a "rubyfied" ebuild to the kde overlay, see also bug 292038. This is still restricted to 1.8 though.
Unfortunately liblastfm can't be moved to ruby eclass since it's not ruby package. It only uses configure script written in ruby and that's it - no ruby bindings and such. Therefore I reverted those changes.
Fixed, thanks for reporting and for hint how to fix. Index: liblastfm-0.3.0.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-libs/liblastfm/liblastfm-0.3.0.ebuild,v retrieving revision 1.9 diff -u -B -r1.9 liblastfm-0.3.0.ebuild --- liblastfm-0.3.0.ebuild 5 Apr 2010 07:03:54 -0000 1.9 +++ liblastfm-0.3.0.ebuild 5 Apr 2010 11:28:15 -0000 @@ -21,9 +21,8 @@ >=x11-libs/qt-core-4.5:4 >=x11-libs/qt-sql-4.5:4 " -# Unrestrict Ruby depend for next release! DEPEND="${COMMON_DEPEND} - =dev-lang/ruby-1.8* + dev-lang/ruby >=x11-libs/qt-test-4.5:4 " RDEPEND="${COMMON_DEPEND} @@ -34,6 +33,12 @@ # Fix multilib paths find . -name *.pro -exec sed -i -e "/target.path/s/lib/$(get_libdir)/g" {} + \ || die "failed to fix multilib paths" + + # >=1.9 ruby compatibility + case `ruby -e 'puts RUBY_VERSION'` in + 1.8.*) ;; + *) sed -e "s/require 'ftools'//g" -i admin/* || die ;; + esac }