Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405373 - media-sound/rubyripper-0.6.2 - ERROR: media-sound/rubyripper-0.6.2 failed (setup phase): * You need to select at least one Ruby implementation by setting RUBY_TARGETS in /etc/make.conf.
Summary: media-sound/rubyripper-0.6.2 - ERROR: media-sound/rubyripper-0.6.2 failed (se...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-23 06:31 UTC by tman
Modified: 2012-02-24 17:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2012-02-23 06:31:22 UTC
>>> Emerging (1 of 1) media-sound/rubyripper-0.6.2
 * rubyripper-0.6.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                      [ ok ]
 * ERROR: media-sound/rubyripper-0.6.2 failed (setup phase):
 *   You need to select at least one Ruby implementation by setting RUBY_TARGETS in /etc/make.conf.
 * 
 * Call stack:
 *        ebuild.sh, line  85:  Called pkg_setup
 *        ebuild.sh, line 315:  Called ruby-ng_pkg_setup
 *   ruby-ng.eclass, line 397:  Called _ruby_each_implementation
 *   ruby-ng.eclass, line 387:  Called die
 * The specific snippet of code:
 *   	[[ ${invoked} == "no" ]] && die "You need to select at least one Ruby implementation by setting RUBY_TARGETS in /etc/make.conf."
 * 
 * If you need support, post the output of 'emerge --info =media-sound/rubyripper-0.6.2',
 * the complete build log and the output of 'emerge -pqv =media-sound/rubyripper-0.6.2'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/log/portage/media-sound:rubyripper-0.6.2:20120223-062942.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/rubyripper-0.6.2/temp/die.env'.
 * S: '/var/tmp/portage/media-sound/rubyripper-0.6.2/work/rubyripper-0.6.2'

>>> Failed to emerge media-sound/rubyripper-0.6.2, Log file:

>>>  '/var/log/portage/media-sound:rubyripper-0.6.2:20120223-062942.log'



Reproducible: Always




Portage 2.2.0_alpha87 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo x86_64)
=================================================================
System uname: Linux-3.2.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Thu, 23 Feb 2012 06:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          9999
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo mpd science wirelay scarabeus Techwolf luman nikai emacs java-overlay gnome mgorny qt poly-c lokal
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
Comment 1 tman 2012-02-23 06:32:16 UTC
*)	IcedTea JDK 7.2.0 [icedtea-bin-7]
2)	Sun JDK 1.6.0.31 [sun-jdk-1.6]
$# java-config -S 1
Now using icedtea-bin-7 as your generation-2 system JVM
Comment 2 Ben de Groot 2012-02-23 06:45:31 UTC
It doesn't look like you pasted the complete output of emerge --info. Specifically, it doesn't tell us whether you have RUBY_TARGETS set. Your error message tells you what to do:

>  *   You need to select at least one Ruby implementation by setting
> RUBY_TARGETS in /etc/make.conf.

Do that. If it still fails, then you may have a real bug.
Comment 3 tman 2012-02-23 14:41:24 UTC
RUBY_TARGETS="ruby19 jruby"

is set in /etc/make.conf

but i still got this error at compile.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-23 15:58:37 UTC
ERROR: media-sound/rubyripper-0.6.2 failed (setup phase):
 *   You need to select at least one Ruby implementation by setting
RUBY_TARGETS in /etc/make.conf.

(In reply to comment #3)
> RUBY_TARGETS="ruby19 jruby"
> 
> is set in /etc/make.conf
> 
> but i still got this error at compile.

pkg_setup(), not [src_]compile().
Comment 5 Daniel Pielmeier gentoo-dev 2012-02-23 18:51:17 UTC
rubyripper is supposed to work with ruby 1.8 only. This is why I set USE_RUBY=ruby18 according to the ruby-ng eclass in the ebuild.

@ruby-team: I think here is a problem with the ruby-ng eclass. Maybe the error message from _ruby_each_implementation needs to be tweaked. It checks for USE_RUBY in RUBY_TARGETS. In this case ruby18 is not in ruby19 or jruby. The following error message is misleading as it indicates one random ruby implementation is enough to build the package. It should say ruby18 not in RUBY_TARGETS however. Only if RUBY_TARGETS is unset the above message would be true.
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2012-02-23 23:08:29 UTC
(In reply to comment #5)
> @ruby-team: I think here is a problem with the ruby-ng eclass. Maybe the error
> message from _ruby_each_implementation needs to be tweaked. It checks for
> USE_RUBY in RUBY_TARGETS. In this case ruby18 is not in ruby19 or jruby. The
> following error message is misleading as it indicates one random ruby
> implementation is enough to build the package. It should say ruby18 not in
> RUBY_TARGETS however. Only if RUBY_TARGETS is unset the above message would be
> true.

Right. ruby-ng.eclass, v1.45 talks about "compatible" targets now and prints a list of supported targets for the package.
Comment 7 Daniel Pielmeier gentoo-dev 2012-02-24 17:41:53 UTC
Now that the eclass is fixed add ruby18 to RUBY_TARGETS and be good.