Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361769 - dev-ruby/ruby-glib2-0.19.4 should DEPEND on dev-ruby/rubygems
Summary: dev-ruby/ruby-glib2-0.19.4 should DEPEND on dev-ruby/rubygems
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-03 09:54 UTC by Martin Walch
Modified: 2011-04-12 18:25 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 Martin Walch 2011-04-03 09:54:24 UTC
This happens when rubygems has not been installed before ruby-glib2:

>>> Emerging (1 of 1) dev-ruby/ruby-glib2-0.19.4
 * ruby-gnome2-all-0.19.4.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                          [ ok ]
 * Package:    dev-ruby/ruby-glib2-0.19.4
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        consolekit elibc_glibc kernel_linux policykit ruby_targets_ruby18 userland_GNU x86
 * FEATURES:   ccache sandbox
>>> Unpacking source...
>>> Unpacking ruby-gnome2-all-0.19.4.tar.gz to /var/tmp/portage/dev-ruby/ruby-glib2-0.19.4/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/ruby-glib2-0.19.4/work
>>> Preparing source in /var/tmp/portage/dev-ruby/ruby-glib2-0.19.4/work ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby18 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/ruby-glib2-0.19.4/work ...
 * Running configure phase for ruby18 ...
/usr/bin/ruby18: no such file to load -- auto_gem (LoadError)
 * ERROR: dev-ruby/ruby-glib2-0.19.4 failed (configure phase):
 *   extconf.rb failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 2516:  Called ruby-ng_src_configure
 *   environment, line 2310:  Called _ruby_each_implementation 'each_ruby_configure'
 *   environment, line  312:  Called _ruby_invoke_environment 'ruby18' 'each_ruby_configure'
 *   environment, line  341:  Called each_ruby_configure
 *   environment, line  698:  Called die
 * The specific snippet of code:
 *       ${RUBY} extconf.rb || die "extconf.rb failed"


emerge --info
Portage 2.1.9.42 (default/linux/x86/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-1.12.14
Timestamp of tree: Sat, 02 Apr 2011 00:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=prescott -pipe -fomit-frame-pointer -fgcse-after-reload"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo"
CPPFLAGS=" -pipe"
CXXFLAGS="-Os -march=prescott -pipe -fomit-frame-pointer -fgcse-after-reload"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-Os -march=prescott -pipe -fomit-frame-pointer -fgcse-after-reload"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.switch.ch/mirror/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6"
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"
SYNC="rsync://rsync3.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran games gdbm gdu gif gnome gpm gtk iconv ipv6 jingle jpeg kde lcms ldap libnotify livecd lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline schroedinger sdl session sound spell sse sse2 sse3 ssl startup-notification svg sysfs tcpd theora tiff truetype udev unicode usb video vorbis webm x264 x86 xcb xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa via" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-04-03 09:59:06 UTC
It seems like you uninstalled rubygems and did not make a note of the informational messages printed by emerge.
Comment 2 Martin Walch 2011-04-03 10:19:37 UTC
(In reply to comment #1)
> It seems like you uninstalled rubygems and did not make a note of the
> informational messages printed by emerge.

No I did not uninstall rubygems. This is a fresh Gentoo install and rubygems has never been installed.
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-04-03 13:13:51 UTC
Did you copy anything in /etc/ from an old installation?
If no, provide the output of:
  * emerge -pv ruby rubygems
  * ls /etc/env.d
  * ruby -rrbconfig -rpp -e 'pp Config::CONFIG; pp $:'
Comment 4 Martin Walch 2011-04-12 17:54:11 UTC
Sorry, I had to continue building the affected system (dead-line was too close). This changed a lot of configuration files. I have tried to reproduce the problem, but did not succeed. I suppose the problem appeared after interrupting and resuming an emerge process of several selected packages.

Indeed, I copied some contents of an old installation into /etc. But I guess, those files should not be able to procude that error. I have copied  package.use, locale.gen, make.conf and several files from /etc/package.keywords.

The current state is now:

# emerge -pv ruby rubygems
[ebuild   R   ] dev-lang/ruby-1.8.7_p334  USE="berkdb gdbm ipv6 ncurses readline ssl -debug -doc -examples -libedit -rubytests -socks5 -threads -tk -xemacs" 0 kB
[ebuild   R   ] dev-ruby/rubygems-1.3.7-r1  USE="-doc -server" RUBY_TARGETS="ruby18 -jruby -ree18" 0 kB

# ls /etc/env.d/ -1
00basic
03opengl
05binutils
05gcc-i686-pc-linux-gnu
08xulrunner
09sandbox
10rubygems
20ant
20java-config
22javacc
30gnupg
30xdg-data-local
37fontconfig
43kdepaths
44qca2
44qt4
50gconf
50gtk2
50ncurses
70less
90games
90nss
90xdg-data-base
98ca-certificates
99fltk-1
99gentoolkit-env
99R
binutils
blas
cblas
gcc
python


# ruby -rrbconfig -rpp -e 'pp Config::CONFIG; pp $:'
{"PACKAGE_VERSION"=>"",
 "INSTALL_SCRIPT"=>"/usr/bin/install -c",
 "DEFS"=>"-D_FILE_OFFSET_BITS=64",
 "GREP"=>"/bin/grep",
 "sharedstatedir"=>"/usr/com",
 "COMMON_LIBS"=>"",
 "EXPORT_PREFIX"=>"",
 "AR"=>"i686-pc-linux-gnu-ar",
 "target_alias"=>"",
 "PACKAGE_STRING"=>"",
 "host_os"=>"linux-gnu",
 "RDOCTARGET"=>"",
 "MANTYPE"=>"doc",
 "build"=>"i686-pc-linux-gnu",
 "AS"=>"i686-pc-linux-gnu-as",
 "PACKAGE_URL"=>"",
 "DLDFLAGS"=>"",
 "build_os"=>"linux-gnu",
 "PATH_SEPARATOR"=>":",
 "PACKAGE_NAME"=>"",
 "LIBRUBYARG"=>"-Wl,-R -Wl,/usr/lib -L/usr/lib -lruby18",
 "RUBY_INSTALL_NAME"=>"ruby18",
 "LN_S"=>"ln -s",
 "EXTSTATIC"=>"",
 "EXEEXT"=>"",
 "mandir"=>"/usr/share/man",
 "YACC"=>"bison -y",
 "LIBPATHENV"=>"LD_LIBRARY_PATH",
 "oldincludedir"=>"/usr/include",
 "psdir"=>"/usr/share/doc/$(PACKAGE)",
 "sitearch"=>"i686-linux",
 "DLEXT2"=>"",
 "LIBS"=>"-lrt -ldl -lcrypt -lm ",
 "bindir"=>"/usr/bin",
 "localedir"=>"/usr/share/locale",
 "rubyw_install_name"=>"",
 "RUBY_SO_NAME"=>"ruby18",
 "OBJDUMP"=>"",
 "ECHO_C"=>"",
 "optflags"=>"",
 "arch"=>"i686-linux",
 "NROFF"=>"/usr/bin/nroff",
 "libexecdir"=>"/usr/libexec",
 "CC"=>"i686-pc-linux-gnu-gcc",
 "cflags"=>" ",
 "OUTFLAG"=>"-o ",
 "STATIC"=>"",
 "PREP"=>"miniruby",
 "build_vendor"=>"pc",
 "debugflags"=>"",
 "htmldir"=>"/usr/share/doc/$(PACKAGE)",
 "sitedir"=>"/usr/lib/ruby/site_ruby",
 "YFLAGS"=>"",
 "MAKEFILES"=>"Makefile",
 "STRIP"=>"strip -S -x",
 "MINOR"=>"8",
 "LIBRUBYARG_SHARED"=>"-Wl,-R -Wl,/usr/lib -L/usr/lib -lruby18",
 "MAKEDIRS"=>"mkdir -p",
 "LIBRUBY_LDSHARED"=>"i686-pc-linux-gnu-gcc -shared",
 "LDFLAGS"=>
  "-L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined",
 "vendorarchdir"=>"/usr/lib/ruby/vendor_ruby/1.8/i686-linux",
 "includedir"=>"/usr/include",
 "infodir"=>"/usr/share/info",
 "NM"=>"",
 "target"=>"i686-pc-linux-gnu",
 "ENABLE_SHARED"=>"yes",
 "DLLWRAP"=>"",
 "vendorlibdir"=>"/usr/lib/ruby/vendor_ruby/1.8",
 "CFLAGS"=>
  "-Os -march=prescott -pipe -fgcse-after-reload -fno-strict-aliasing  -fPIC  ",
 "host"=>"i686-pc-linux-gnu",
 "INSTALL_DATA"=>"/usr/bin/install -c -m 644",
 "INSTALL_PROGRAM"=>"/usr/bin/install -c",
 "DLEXT"=>"so",
 "PACKAGE_BUGREPORT"=>"",
 "exec_prefix"=>"/usr",
 "sysconfdir"=>"/etc",
 "TEENY"=>"7",
 "CPP"=>"i686-pc-linux-gnu-gcc -E",
 "ALLOCA"=>"",
 "LIBEXT"=>"a",
 "libdir"=>"/usr/lib",
 "LIBRUBY"=>"libruby18.so.1.8.7",
 "build_alias"=>"i686-pc-linux-gnu",
 "prefix"=>"/usr",
 "target_vendor"=>"pc",
 "target_cpu"=>"i686",
 "ECHO_N"=>"-n",
 "rubylibdir"=>"/usr/lib/ruby/1.8",
 "sbindir"=>"/usr/sbin",
 "docdir"=>"/usr/share/doc/$(PACKAGE)",
 "dvidir"=>"/usr/share/doc/$(PACKAGE)",
 "host_vendor"=>"pc",
 "TRY_LINK"=>"",
 "SOLIBS"=>"-lrt -ldl -lcrypt -lm ",
 "configure_args"=>
  " '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=18' '--enable-shared' '--disable-socks' '--disable-install-doc' '--disable-pthread' '--enable-ipv6' '--disable-debug' '--with-dbm' '--with-gdbm' '--with-openssl' '--without-tk' '--with-curses' '--with-readline' '--with-sitedir=/usr/lib/ruby/site_ruby' '--enable-option-checking=no' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-Os -march=prescott -pipe -fgcse-after-reload -fno-strict-aliasing' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS=-pipe'",
 "vendordir"=>"/usr/lib/ruby/vendor_ruby",
 "target_os"=>"linux",
 "GNU_LD"=>"yes",
 "CP"=>"cp",
 "EXTOUT"=>".ext",
 "MAINLIBS"=>"",
 "SET_MAKE"=>"",
 "datarootdir"=>"/usr/share",
 "pdfdir"=>"/usr/share/doc/$(PACKAGE)",
 "LIBRUBYARG_STATIC"=>"-lruby18-static",
 "RUBYW_INSTALL_NAME"=>"",
 "PATCHLEVEL"=>"334",
 "WINDRES"=>"",
 "archdir"=>"/usr/lib/ruby/1.8/i686-linux",
 "ruby_version"=>"1.8",
 "LINK_SO"=>"",
 "ECHO_T"=>"",
 "RPATHFLAG"=>" -Wl,-R%1$-s",
 "SHELL"=>"/bin/sh",
 "LDSHARED"=>"i686-pc-linux-gnu-gcc -shared",
 "RANLIB"=>"i686-pc-linux-gnu-ranlib",
 "DLDLIBS"=>" -lc",
 "build_cpu"=>"i686",
 "host_alias"=>"i686-pc-linux-gnu",
 "ASFLAGS"=>"",
 "INSTALL"=>"/usr/bin/install -c",
 "sitearchdir"=>"/usr/lib/ruby/site_ruby/1.8/i686-linux",
 "ARCHFILE"=>"",
 "LIBRUBY_DLDFLAGS"=>"-Wl,-soname,libruby18.so.1.8",
 "OBJEXT"=>"o",
 "datadir"=>"/usr/share",
 "DESTDIR"=>"",
 "LIBRUBY_ALIASES"=>"libruby18.so.1.8 libruby18.so",
 "CCDLFLAGS"=>" -fPIC",
 "RM"=>"rm -f",
 "host_cpu"=>"i686",
 "setup"=>"Setup",
 "CPPOUTFILE"=>"-o conftest.i",
 "topdir"=>"/usr/lib/ruby/1.8/i686-linux",
 "localstatedir"=>"/var/lib",
 "LIBPATHFLAG"=>" -L%1$-s",
 "cppflags"=>"-pipe",
 "sitelibdir"=>"/usr/lib/ruby/site_ruby/1.8",
 "ruby_install_name"=>"ruby18",
 "CPPFLAGS"=>"-pipe -D_FILE_OFFSET_BITS=64 -pipe",
 "MAJOR"=>"1",
 "EGREP"=>"/bin/grep -E",
 "LIBRUBY_SO"=>"libruby18.so.1.8.7",
 "PACKAGE_TARNAME"=>"",
 "LIBRUBY_A"=>"libruby18-static.a",
 "COMMON_MACROS"=>"",
 "ARCH_FLAG"=>"",
 "COMMON_HEADERS"=>""}
["/usr/lib/ruby/site_ruby/1.8",
 "/usr/lib/ruby/site_ruby/1.8/i686-linux",
 "/usr/lib/ruby/site_ruby",
 "/usr/lib/ruby/vendor_ruby/1.8",
 "/usr/lib/ruby/vendor_ruby/1.8/i686-linux",
 "/usr/lib/ruby/vendor_ruby",
 "/usr/lib/ruby/1.8",
 "/usr/lib/ruby/1.8/i686-linux",
 "."]
Comment 5 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-04-12 18:18:52 UTC
(In reply to comment #4)
> Indeed, I copied some contents of an old installation into /etc. But I guess,
> those files should not be able to procude that error. I have copied 
> package.use, locale.gen, make.conf and several files from
> /etc/package.keywords.

and profile.env or env.d/*?

At any rate, the situation you describe cannot happen without external influence. The package that introduces auto_gem also provides it. You copied stuff in /etc, you might just as well have hit the files that make ruby try to load auto_gem.
Comment 6 Martin Walch 2011-04-12 18:25:25 UTC
(In reply to comment #5)
> and profile.env or env.d/*?

I am sure I did not touch those.

> At any rate, the situation you describe cannot happen without external
> influence. The package that introduces auto_gem also provides it. You copied
> stuff in /etc, you might just as well have hit the files that make ruby try to
> load auto_gem.

I will reopen if I find a way to reproduce the problem. Thank you for your assistance.