Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345453 - Uninstalling gems with gem uninstall not working
Summary: Uninstalling gems with gem uninstall not working
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 21:16 UTC by Petteri Räty (RETIRED)
Modified: 2013-03-28 22:13 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 Petteri Räty (RETIRED) gentoo-dev 2010-11-14 21:16:46 UTC
21:07 <@a3li> Betelgeuse: what's with rubygems?
21:08 <@Betelgeuse> a3li: I can't uninstall stuff
21:08 <@Betelgeuse> ERROR:  While executing gem ... (Gem::InstallError)
21:08 <@Betelgeuse> a3li: custom install old stuff I want to get rid off
21:08 <@a3li> a-ha.
21:08 <@a3li> well, I think it has a --debug or --trace or --verbose switch
21:08 <@Betelgeuse> Exception `NameError' at /usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::UninstallCommand
21:10 <@Betelgeuse> a3li: http://dpaste.com/275227/
21:11 <@a3li> Betelgeuse: ew. tried reinstalling rubygems already?
21:11 <@Betelgeuse> a3li: no difference
21:12 <@a3li> Betelgeuse: sorry, but I don't have an idea right now and not the time to debug. maybe ask tomorrow when there's someone in #-ruby again, or file a you know what...
21:13 <@Betelgeuse> a3li: is using the gem command supported?
21:13 <@Betelgeuse> mixing and mathcing
21:14 <@a3li> mh. are you trying to remove the mysql gem installed by portage?
21:14 <@a3li> either way, it should not barf like /this/
21:14 <@Betelgeuse> no
21:14 <@Betelgeuse> * Found some broken files that weren't associated with known packages
21:14 <@Betelgeuse> revdep-rebuild told me the files are broken
21:15 <@Betelgeuse> I'll file a bug
21:15 <@a3li> you do that, and I'll be afk again

I started trying to uninstall because:

 * Found some broken files that weren't associated with known packages
 * The broken files are:
 *   /usr/lib/libflashsupport.so
 *   /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/ext/rubyeventmachine.so
 *   /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/rubyeventmachine.so
 *   /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.6/ext/rubyeventmachine.so
 *   /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.6/lib/rubyeventmachine.so
 *   /usr/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.so
 *   /usr/lib/ruby/gems/1.8/gems/mysql-2.7/mysql.so
 *   /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/mysql_api.so
 *   /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/lib/mysql_api.so

pena betelgeuse # gem uninstall --debug mysql
Exception `NameError' at /usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::UninstallCommand
Exception `Gem::InstallError' at /usr/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:76 - cannot uninstall, check `gem list -d mysql`
ERROR:  While executing gem ... (Gem::InstallError)
    cannot uninstall, check `gem list -d mysql`
        /usr/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:76:in `uninstall'
        /usr/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb:73:in `execute'
        /usr/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb:71:in `each'
        /usr/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb:71:in `execute'
        /usr/lib/ruby/site_ruby/1.8/rubygems/command.rb:270:in `invoke'
        /usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:134:in `process_args'
        /usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in `run'
        /usr/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'
        /usr/bin/gem:21

Portage 2.1.9.24 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.12.1-r3, 2.6.37-rc1-git5 i686)
=================================================================
System uname: Linux-2.6.37-rc1-git5-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Unknown
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
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.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.1 googleearth"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="fi en"
MAKEOPTS="-j8 -s"
PKGDIR="/home/pkg/"
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="/mnt/checkouts/overlays/openrc /mnt/checkouts/overlays/wschlich-testing /mnt/checkouts/overlays/finnish /mnt/checkouts/overlays/jokey /mnt/checkouts/overlays/sunrise /mnt/checkouts/overlays/betelgeuse"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa audiofile bash-completion bluetooth branding bzip2 cairo caps cdb cddb cdparanoia cdr cli consolekit cracklib crypt cups custom-cxxflags cxx dbus dri dts dvd dvdr dvdread emboss exif fam ffmpeg firefox gif glib hal iconv idn ipv6 java jpeg kde kdehiddenvisibility lcms libnotify lm_sensors logitech-mouse mad mikmod mjpeg mmx mng modules mp3 mp4 mpeg mudflap ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pango pcre pdf png ppds pppd pulseaudio qt3support readline rtc samba semantic-desktop session spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink sysfs system-sqlite theora threads tiff truetype udev unicode usb userlocales vim-syntax vorbis win32codecs x264 x86 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi en" NETBEANS_MODULES="ruby ide webcommon nb harness java websvccommon gsf" PHP_TARGETS="php5-2" QEMU_SOFTMMU_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none radeon" 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:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Hans de Graaff gentoo-dev Security 2012-04-30 07:06:28 UTC
The bug report doesn't seem to mention which rubygems version was used.

Does this still happen with rubygems 1.8.x?
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2013-03-28 22:13:08 UTC
Guessing this issue is no longer relevant/occurring. Reopen if that isn't the case.