Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294838 - dev-ruby/activesupport-2.3.4 gem fails for ruby-1.9.1p243
Summary: dev-ruby/activesupport-2.3.4 gem fails for ruby-1.9.1p243
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-27 13:13 UTC by Krzysztof Borowczyk
Modified: 2009-11-29 22:11 UTC (History)
0 users

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 Krzysztof Borowczyk 2009-11-27 13:13:42 UTC
Emerge of dev-ruby/activesupport-2.3.4 fails during installation phase.

Reproducible: Always

Steps to Reproduce:
1. emerge -v1 activesupport

Actual Results:  
here is excerpt from emerge output:

 * Installing for ruby18...
Successfully installed activesupport-2.3.4
1 gem installed
Installing ri documentation for activesupport-2.3.4...
Installing RDoc documentation for activesupport-2.3.4...
 * Installing for ruby19...
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --sandbox-fix
 * 
 * ERROR: dev-ruby/activesupport-2.3.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2528:  Called gems_src_install
 *             environment, line 1414:  Called die
 * The specific snippet of code:
 *           /usr/bin/${ruby_version} /usr/bin/gem install ${GEM_SRC} --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" --sandbox-fix --no-user-install || die "gem (>=1.3.0) install failed";
 *  The die message:
 *   gem (>=1.3.0) install failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-ruby/activesupport-2.3.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/activesupport-2.3.4/temp/environment'.



I have dev-ruby/rubygems-1.3.5 installed - as a portage package, not with`gem install rubygems`. It seems like the problem with previous versions, fixed by rubygems-1.3.3-gentoo.patch - unfortunately there is no patch for 1.3.5.
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-11-27 16:49:36 UTC
`emerge --info' and `emerge -pv rubygems ruby' please.
Comment 2 Krzysztof Borowczyk 2009-11-29 18:15:28 UTC
(In reply to comment #1)
> `emerge --info' and `emerge -pv rubygems ruby' please.
> 

emerge --info:

vetar ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4600+-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 27 Nov 2009 11:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl alsa amd64 bash-completion berkdb bzip2 cli cracklib crypt cups dbus divx doc dri dvd dvdread emacs ffmpeg flac fortran gdbm gif gpm iconv ipv6 jpeg jpeg2k ldap matroska mjpeg mmx modules mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre perl png pppd python quicktime readline reflection rle sdl session smp spell spl sse sse2 ssl svg sysfs tcpd theora tiff unicode vidx vorbis wmf x264 xorg xvid zlib" ALSA_CARDS="ice1724" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS





emerge -pv rubygems ruby:

vetar ~ # emerge -pv rubygems

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-ruby/rubygems-1.3.5  USE="doc -server" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-11-29 19:51:15 UTC
The emerge -pv ruby part was missing. On second thought, attach the "Package Settings" part of `emerge --info ruby' instead.
Comment 4 Krzysztof Borowczyk 2009-11-29 20:00:26 UTC
Here it is:

=================================================================
                        Package Settings
=================================================================

dev-lang/ruby-1.8.7_p174-r1 was built with the following:
USE="berkdb doc emacs gdbm ipv6 (multilib) ssl -debug -examples -rubytests -socks5 -threads -tk -xemacs"
CFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing"


dev-lang/ruby-1.9.1_p243 was built with the following:
USE="berkdb doc emacs gdbm ipv6 (multilib) ssl -debug -examples -rubytests -socks5 -tk -xemacs"
CFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing"



and:

vetar ~ # eselect ruby list
Available Ruby profiles:
  [1]   ruby18 (with Rubygems)
  [2]   ruby19 (with Rubygems) *
vetar ~ # emerge -pv ruby

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/ruby-1.9.1_p243  USE="berkdb doc emacs gdbm ipv6 ssl -debug -examples -rubytests -socks5 -tk -xemacs" 0 kB
Comment 5 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-11-29 21:10:52 UTC
aaand `gem19 --version'...
Comment 6 Krzysztof Borowczyk 2009-11-29 21:25:22 UTC
vetar ~ # gem19 --version
1.3.5
Comment 7 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-11-29 21:28:05 UTC
The gem version you get with ruby 1.9.1 is 1.3.1, you seem to have upgraded it. Remerging ruby 1.9 should fix that, but ymmw.
Comment 8 Krzysztof Borowczyk 2009-11-29 22:11:20 UTC
(In reply to comment #7)
> The gem version you get with ruby 1.9.1 is 1.3.1, you seem to have upgraded it.
> Remerging ruby 1.9 should fix that, but ymmw.

Then there is something weird going on. I've reemerged ruby:
vetar ~ # ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]

and gem19 still is:
vetar ~ # gem19 -v
1.3.5

The file was substituted during install, checked that with stat. Any ideas what may be wrong?