Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167536 - media-sound/amarok-1.4.5* should depend on dev-ruby/rubygems
Summary: media-sound/amarok-1.4.5* should depend on dev-ruby/rubygems
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
: 172605 (view as bug list)
Depends on:
Reported: 2007-02-18 21:16 UTC by Matti Bickel (RETIRED)
Modified: 2007-03-28 22:18 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Matti Bickel (RETIRED) gentoo-dev 2007-02-18 21:16:33 UTC
When i removed mongrel and deps (b/c they're now optional via USE="daap"), amarok started to complain about failing to load ruby extensions (Lyrc, etc.).
Reinstalling gem_plugin fixed this for me.
Comment 1 Elias Probst 2007-02-18 21:44:08 UTC
As far as I have understood, there is nothing strange/wrong about this behaviour:

- removing mongrel, gem_plugin etc. when still having USE="daap" set, leads to having them pulled in as dependency again when running "emerge -uD world" or similar

- removing them when having USE="-daap" set makes Amarok working again using "emerge --newuse world" or similar.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-02-18 21:49:16 UTC
(In reply to comment #0)
> When i removed mongrel and deps (b/c they're now optional via USE="daap")

Removed how exactly? You'll need to rebuild amarok w/ USE="-daap", not just unmerge the dependencies... Works just fine here.
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2007-02-18 22:20:34 UTC
Well, the problem is more widespread.
That's what i get during configure:
checking for ruby... /usr/bin/ruby
/usr/bin/ruby: no such file to load -- auto_gem (LoadError)
/usr/bin/ruby: no such file to load -- auto_gem (LoadError)
checking ruby.h usability... no
checking ruby.h presence... no
checking for ruby.h... no
checking if amarok should be compiled... no
checking if doc should be compiled... yes
checking if po should be compiled... yes
The problem here is, that it's looking for auto_gem.rb, which is part of rubygems (dep of gem_plugin, which explains why installing that helped me).
Notice how it says later:
 ===  Amarok - ERROR  ==========================================================
 = The Ruby programming language is not installed. Please obtain Ruby
 = (version 1.8 or later) from, or install a distribution
 = package. To build Amarok requires the Ruby header files as well, which some
 = distributions package separately.
 ===  AMAROK WILL NOT BE BUILT  ================================================
 = Some mandatory dependencies are either not installed or not installed
 = correctly. See the Amarok README for help with this issue. Further assistance
 = can be found at or in amarok on
 = You will still be able to build other modules from extragear/multimedia.
After that, it goes on to merge the docs *only*, resulting in a completly garbled amarok install.

Reproduce by unmerging rubygems, merging amarok with daap disabled.
Comment 4 Martin Väth 2007-02-18 22:37:52 UTC
(In reply to comment #3)
> /usr/bin/ruby: no such file to load -- auto_gem (LoadError)

Apparently, ruby_gems was not cleanly uninstalled on your system.
I had never installed it and don't get such errors when I install amarok with -daap.
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2007-02-18 23:41:32 UTC
OK, the actual reason was a leftover /etc/env.d/10rubygems causing ruby to misbehave (RUBYOPT=-rauto_gems). Thanks rbrown for the hint.
Apologies for the spam :)
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-03-28 22:18:20 UTC
*** Bug 172605 has been marked as a duplicate of this bug. ***