Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280275 - sys-apps/portage-2.2_rc35 crashes on trying to emerge with license groups in ACCEPT_LICENSE
Summary: sys-apps/portage-2.2_rc35 crashes on trying to emerge with license groups in ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks:
 
Reported: 2009-08-04 08:31 UTC by Andrew John Hughes
Modified: 2010-03-02 03:09 UTC (History)
0 users

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


Attachments
fix the AttributeError (license_groups.patch,877 bytes, patch)
2009-08-04 17:18 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew John Hughes 2009-08-04 08:31:07 UTC
# emerge -pv --update --deep @world

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

Calculating dependencies \

!!! Problem in 'dev-lang/python' dependencies.
!!! 'config' object has no attribute '_license_groups' None
Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = emerge_main()
  File "//usr/lib64/portage/pym/_emerge/main.py", line 1391, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "//usr/lib64/portage/pym/_emerge/actions.py", line 307, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "//usr/lib64/portage/pym/_emerge/depgraph.py", line 4965, in backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "//usr/lib64/portage/pym/_emerge/depgraph.py", line 1537, in select_files
    return self._resolve(myfavorites)
  File "//usr/lib64/portage/pym/_emerge/depgraph.py", line 1626, in _resolve
    if not self._add_pkg(pkg, dep):
  File "//usr/lib64/portage/pym/_emerge/depgraph.py", line 907, in _add_pkg
    pkgsettings.setinst(pkg.cpv, pkg.metadata)
  File "//usr/lib64/portage/pym/portage/__init__.py", line 2792, in setinst
    myuse = mydbapi["USE"]
  File "//usr/lib64/portage/pym/_emerge/Package.py", line 206, in __getitem__
    pkgsettings.setcpv(self._pkg)
  File "//usr/lib64/portage/pym/portage/__init__.py", line 2334, in setcpv
    self.reset(keeping_pkg=1,use_cache=use_cache)
  File "//usr/lib64/portage/pym/portage/__init__.py", line 2048, in reset
    self.regenerate(use_cache=use_cache)
  File "//usr/lib64/portage/pym/portage/__init__.py", line 2881, in regenerate
    self._accept_license = tuple(self.expandLicenseTokens(mysplit))
  File "//usr/lib64/portage/pym/portage/__init__.py", line 1907, in expandLicenseTokens
    expanded_tokens.extend(self._expandLicenseToken(x, None))
  File "//usr/lib64/portage/pym/portage/__init__.py", line 1924, in _expandLicenseToken
    license_group = self._license_groups.get(group_name)
AttributeError: 'config' object has no attribute '_license_groups'


Reproducible: Always

Steps to Reproduce:
1. Upgrade to rc35 from rc33
2.
3.




Portage 2.2_rc35 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r4.rivendell x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4.rivendell-x86_64-Intel-R-_Xeon-R-_CPU_X5482_@_3.20GHz-with-glibc2.2.5
Timestamp of tree: Tue, 04 Aug 2009 07:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -ggdb -mno-tls-direct-seg-refs"
CHOST="x86_64-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/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 /etc/udev/rules.d"
CPPFLAGS="-I/home/andrew/build/include"
CXXFLAGS="-O2 -pipe -march=core2 -ggdb -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
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="/usr/local/gentoo/xmmsroot2-overlay /usr/local/gentoo/java-overlay /usr/local/gentoo/fixes-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt cups curl cvs dbus dga dirac djvu dri dts dv dvb dvd dvdr dvdread eds emacs emboss encode evo exif fam ffmpeg fftw firefox flac fontconfig fortran ftp fuse gcj gdbm gif gimp gnome gnutls gpm graphviz gstreamer gtk gtkhtml hal iconv idn ieee1394 imagemagick imap ipv6 isdnlog java java5 javascript jbig jpeg jpeg2k ladspa lame latex lcms libass libcaca libnotify libsamplerate lzma lzo mad mbox mikmod mmap mmx mng mp3 mpeg mudflap multilib musepack musicbrainz ncurses nis nls nntp nptl nptlonly nsplugin ogg openexr opengl openmp pam pch pcre pdf perl png policykit postgres ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection sasl schroedinger sdl session sndfile sox speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs taglib tcpd tga theora threads tiff truetype unicode usb vorbis wavpack wmf x264 xattr xcomposite xft xml xmmsroot2 xorg xosd xprint xscreensaver xulrunner xv xvid yahoo zeroconf 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 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="radeonhd"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2009-08-04 17:18:58 UTC
Created attachment 200176 [details, diff]
fix the AttributeError

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

 patch /usr/lib/portage/pym/portage/__init__.py /tmp/license_groups.patch
Comment 2 Zac Medico gentoo-dev 2009-08-05 01:19:11 UTC
This is fixed in 2.2_rc36.