Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 244592

Summary: www-servers/mongrel-1.1.5 mongrel requires gem_plugin (>= 0.2.3, runtime)
Product: Gentoo Linux Reporter: Lónyai Gergely <alephlg>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: a3li
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lónyai Gergely 2008-10-27 07:21:09 UTC
peter aleph # emerge -1u mongrel
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) www-servers/mongrel-1.1.5 to /
 * mongrel-1.1.5.gem RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                          [ ok ]
 * checking auxfile checksums ;-) ...                                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                                                        [ ok ]
 * checking mongrel-1.1.5.gem ;-) ...                                                                         [ ok ]
>>> Unpacking source...
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/www-servers/mongrel-1.1.5/work ...
>>> Source compiled.
>>> Test phase [not enabled]: www-servers/mongrel-1.1.5

>>> Install mongrel-1.1.5 into /var/tmp/portage/www-servers/mongrel-1.1.5/image/ category www-servers
ERROR:  Error installing /var/tmp/portage/www-servers/mongrel-1.1.5/distdir/mongrel-1.1.5:
	mongrel requires gem_plugin (>= 0.2.3, runtime)
 * 
 * ERROR: www-servers/mongrel-1.1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2268:  Called gems_src_install
 *             environment, line 1311:  Called die
 * The specific snippet of code:
 *       gem install ${GEM_SRC} --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" || die "gem install failed";
 *  The die message:
 *   gem 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/www-servers/mongrel-1.1.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/mongrel-1.1.5/temp/environment'.
 * 

 * Messages for package www-servers/mongrel-1.1.5:

 * 
 * ERROR: www-servers/mongrel-1.1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2268:  Called gems_src_install
 *             environment, line 1311:  Called die
 * The specific snippet of code:
 *       gem install ${GEM_SRC} --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" || die "gem install failed";
 *  The die message:
 *   gem 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/www-servers/mongrel-1.1.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/mongrel-1.1.5/temp/environment'.
 * 
peter aleph # emerge -p gem_plugin

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

Calculating dependencies... done!
[ebuild   R   ] dev-ruby/gem_plugin-0.2.3
Comment 1 Mike Auty (RETIRED) gentoo-dev 2008-10-27 09:39:19 UTC
Hiya Lonyai, checking the tree for mongrel, it appears both 1.1.3 and 1.1.5 have a dependency upon >=gem_plugin-0.2.3.  Can you please attach the output from running "emerge --info" to help us figure out why portage didn't spot that?
Comment 2 Lónyai Gergely 2008-10-27 10:03:36 UTC
peter aleph # emerge --info
Portage 2.1.4.5 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.21-rsbac-r1-rsbac i686)
=================================================================
System uname: 2.6.21-rsbac-r1-rsbac i686 AMD Athlon(tm) XP 2500+
Timestamp of tree: Mon, 27 Oct 2008 07:30:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="hu_HU"
LC_ALL="hu_HU.UTF-8"
LINGUAS="hu"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="--best"
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/portage/local/layman/hron /usr/local/overlays/hron-temp /usr/local/overlays/aleph"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 bash-completion berkdb bzip2 cracklib crypt hardened jpeg logrotate midi mysql ncurses nls nptl nptlonly pam pcre perl pic png python readline ssl tcpd tiff truetype unicode urandom vhosts vim-syntax x86 xml" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex dav dav_fs dav_lock dbd deflate dir env filter headers include log_config mime mime_magic proxy proxy_http proxy_ftp rewrite setenvif userdir vhost_alias" APACHE2_MPMS="itk" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-27 17:37:26 UTC
Hmm, try `emerge -vauD mongrel' next or better yet `emerge -vauD world'. Reopen this bug report if that doesn't fix the problem.
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2008-10-27 17:41:18 UTC
And please tell us your rubygems version (`gem --version`), too.
Comment 5 Lónyai Gergely 2008-10-27 17:59:59 UTC
This bug is exist.

gem --version
1.3.0
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2008-10-27 18:09:27 UTC
(In reply to comment #5)
> This bug is exist.
> 
> gem --version
> 1.3.0
> 

Bingo. You obviously have updated rubygems without using an Ebuild.
Rubygems 1.3.0 has a known breakage with Gentoo, expressing itself in the unability to find already installed gems when looking for dependencies (gem_plugin in your case).

Two solutions:
1) Downgrade to at least rubygems 1.2.0
2) Install rubygems 1.3.0 from the ruby overlay (accessible using layman) and keep the overlay in your PORTDIR_OVERLAY since a new gems.eclass in there is needed, too.
Comment 7 Hans de Graaff gentoo-dev Security 2008-10-27 18:53:19 UTC
Closing this as INVALID since it involves software not installed through Gentoo, and we can't support that. Please use the ruby overlay if you must use rubygems 1.3.0 now, but be prepared for bugs and problems as this code is not well tested yet. (and please report these bugs if you run in to them :-)