Summary: | media-libs/liblastfm-0.3 fails to build with dev-lang/ruby:1.9 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ken Rushia <gentoo> |
Component: | [OLD] Library | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://wiki.github.com/mxcl/liblastfm | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 258239 |
Description
Ken Rushia
2009-10-06 14:29:36 UTC
+ 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 } |