Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233137 - sys-apps/portage-2.2_rc3: Crash when trying to unmerge a set
Summary: sys-apps/portage-2.2_rc3: Crash when trying to unmerge a set
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Portage team
Depends on:
Blocks: 210077
  Show dependency tree
Reported: 2008-07-28 00:22 UTC by Nick Cunningham
Modified: 2008-07-28 10:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

implement Atom.split() (atom_split.patch,592 bytes, patch)
2008-07-28 01:07 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Cunningham 2008-07-28 00:22:03 UTC
When trying to unmerge a set portage errors and creates a traceback.

Reproducible: Always

Steps to Reproduce:
1. emerge -C @kde-svn

Actual Results:  
 emerge -C @kde-svn
Traceback (most recent call last):
  File "/usr/bin/emerge", line 18, in <module>
    retval = _emerge.emerge_main()
  File "/usr/lib64/portage/pym/_emerge/", line 13257, in emerge_main
    mtimedb["ldpath"], ordered=ordered):
  File "/usr/lib64/portage/pym/_emerge/", line 9963, in unmerge
    arg_parts = x.split('/')
AttributeError: 'Atom' object has no attribute 'split'

Expected Results:  
Expecting the contents of the kde-svn set to be unmerged. Im assuming this would be the correct behaviour as an emerge @kde-svn would (re)install the contents of the set.

emerge --info
Portage 2.2_rc3 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-zen1 x86_64)
System uname: Linux-2.6.26-zen1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sun, 27 Jul 2008 17:16:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 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:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-s -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_gb"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/overlays/layman/kdesvn-portage /usr/local/overlays/layman/desktop-effects /usr/local/overlays/layman/sunrise /usr/local/portage /usr/local/overlays/oss-overlay"
USE="X a52 aac acl acpi amarok amazon amd64 applet avahi bash-completion berkdb branding bzip2 cairo cdaudio cddb cdio cdparanoia cdr chm cli cracklib crypt css cups curl dbus device-mapper disk-partition divx djvu dri dvd dvdr dvdread ebook exif fam fbsplash ffmpeg firefox flac fortran g15 gdbm gedit gif git gnome gpm groupwise gstreamer gtk hal iconv id3tag inotify ipv6 java jpeg kde kdehiddenvisibility kdepim lame libnotify libsexy logrotate lzma lzo mad matroska messenger midi mmx mmxext mng mono mozilla mp3 mp3tunes mp4 mp4live mpeg mpeg2 mplayer mplayer-bin mudflap multilib musicbrainz nautilus ncurses nepomuk network nls nptl nptlonly nsplugin ntfs nvidia ogg ogm opengl openmp oss pam pcre pdf perl phonon plasma png python qt3 qt3support qt4 quicktime rar rdesktop readline realmedia reflection reiser4 reiserfs samba semantic-desktop session smp spl sqlite sse sse2 ssl ssse3 startup-notification svg syslog tcpd tiff truetype unicode unzip upnp usb visualization vnc wma wmf wmp x264 xcb xine xorg xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_gb" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Comment 1 Zac Medico gentoo-dev 2008-07-28 01:07:16 UTC
Created attachment 161510 [details, diff]
implement Atom.split()

If this patch is saved as /tmp/atom_split.patch, then it can be applied as follows:

patch /usr/lib/portage/pym/portage/ /tmp/atom_split.patch
Comment 2 Zac Medico gentoo-dev 2008-07-28 10:42:35 UTC
This is fixed in 2.2_rc4.