Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128184 - dev-ruby/rails-1.0.0 fails to install but reports success, rubygems seems at fault
Summary: dev-ruby/rails-1.0.0 fails to install but reports success, rubygems seems at ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 16:56 UTC by Marco Matthies
Modified: 2006-04-01 06:24 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 Marco Matthies 2006-03-30 16:56:07 UTC
ebuild reports successful install, but nothing is in fact installed, as the gem fails to install.
rubygems version: dev-ruby/rubygems-0.8.11-r4

two things seem to be wrong here:
1. the gems eclass does a gem install ... || die "gem install failed"
   it seems like the gem install doesn't correctly set it's exit status code
2. dev-ruby/rails-1.0.0 has >=dev-ruby/activerecord-1.13.2
     dev-ruby/activerecord-1.13.2 has =dev-ruby/activesupport-1.2.5
     dev-ruby/activerecord-1.14.0 has =dev-ruby/activesupport-1.3.0
   so i guess dev-ruby/rails-1.0.0 should have =dev-ruby/activerecord-1.13.2
   or something like that (i don't know enough ebuild syntax if you can say
   >=1.13.2 and <1.14.0) for the install to perform successfully.

[snip]
>>> Install rails-1.0.0 into /mnt/portage/var/tmp/portage/rails-1.0.0/image/ category dev-ruby
Attempting local installation of '/usr/portage/distfiles/rails-1.0.0'
ERROR:  Error installing gem /usr/portage/distfiles/rails-1.0.0[.gem]: rails requires activesupport = 1.2.5
man:
prepallstrip:
>>> Completed installing rails-1.0.0 into /mnt/portage/var/tmp/portage/rails-1.0.0/image/

>>> Merging dev-ruby/rails-1.0.0 to /
--- /usr/
--- /usr/lib/
--- /usr/lib/ruby/
--- /usr/lib/ruby/gems/
--- /usr/lib/ruby/gems/1.8/
--- /usr/lib/ruby/gems/1.8/cache/
--- /usr/lib/ruby/gems/1.8/specifications/
--- /usr/lib/ruby/gems/1.8/doc/
--- /usr/lib/ruby/gems/1.8/gems/
>>> Regenerating /etc/ld.so.cache...
>>> dev-ruby/rails-1.0.0 merged.
>>> Recording dev-ruby/rails in "world" favorites file...
[/snip]

emerge --info
Portage 2.0.54 (!/usr/portage/profiles/default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.zie.pg.gda.pl http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/"
LANG="en_US.iso885915"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/portage/var/tmp"
PORTDIR="/mnt/portage/usr-portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac alsa audiofile avi berkdb bitmap-fonts bzip2 cdr crypt curl dri dvd dvdr eds emacs emboss encode exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnutls gpm gstreamer gtk gtk2 idn imagemagick imap imlib isdnlog java joystick jpeg kde lcms libwww lua lzw lzw-tiff mad matroska mbox mng mp3 mpeg ncurses nls nntp nptl offensive ogg openal opengl pam pcre pdf pdflib perl png pppd python qt quicktime readline ruby samba sasl sdl slang speex spell sqlite ssl tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-03-31 04:05:10 UTC
1. the gems eclass does a gem install ... || die "gem install failed"
   it seems like the gem install doesn't correctly set it's exit status code

This is known.  I have a bug filed with the rubygems developers, but I don't think anyone is really actively developing rubygems right now

2. dev-ruby/rails-1.0.0 has >=dev-ruby/activerecord-1.13.2

I changed the rails-1.0.0 deps.  Sync in a little bit and try it again.
Comment 2 Marco Matthies 2006-04-01 06:24:21 UTC
Thank you very much for the speedy reply and fix, it works fine here now. I'm sorry that it took me so long to get back to you, but I was bitten by the RUBYOPTS bug you fixed in rubygems-0.8.11-r5 (I had previously merged and unmerged -r4 and it wouldn't go away till I opened a new shell). All is working fine here now though, I can merge, unmerge, remerge, etc. rubygems and rails to my hearts content now :)

The gems exit status thing is annoying, maybe i'll have a look at it to make patch. If I do so I'll open another bug report, so I'll close this bug.

Thanks again for the help!