Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520532 - emerge --skip-first - File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 1945, in _add_pkg // if dep.atom is not dep.atom.unevaluated_atom: AttributeError: 'NoneType' object has no attribute 'unevaluated_atom'
Summary: emerge --skip-first - File "/usr/lib64/portage/pym/_emerge/depgraph.py", line...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-22 12:19 UTC by Henrik Grubbström
Modified: 2014-08-22 15:30 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 Henrik Grubbström 2014-08-22 12:19:12 UTC
When attempting to resume the build after hsqldb having failed, emerge --skip-first fails with an internal error.

Reproducible: Always

Steps to Reproduce:
1. emerge -duD world
2. hsqldb fails to build (see bug 520530).
3. emerge --skip-first
Actual Results:  
# emerge --skip-first
myopts {'--debug': True, '--resume': True, '--deep': True, '--skipfirst': True, '--update': True}


myparams {'deep': True, 'recurse': True, 'binpkg_respect_use': 'auto', 'selective': True}

Calculating dependencies |
Child:         (dev-java/jaxme-0.5.2::gentoo, ebuild scheduled for merge) USE="(amd64) (policykit) -doc -source" ABI_X86="64"
... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1031, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 4062, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 229, in action_build
    settings, trees, mtimedb, myopts, myparams, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 8174, in resume_depgraph
    myparams, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 8197, in _resume_depgraph
    skip_masked=skip_masked)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 7708, in _loadResumeCommand
    if not self._add_pkg(task, None):
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 1945, in _add_pkg
    if dep.atom is not dep.atom.unevaluated_atom:
AttributeError: 'NoneType' object has no attribute 'unevaluated_atom'


Expected Results:  
I expect expect emerge to start building ebuilds that don't depend on hsqldb.

Same also happens with emerge --resume:

# emerge -p --resume 
myopts {'--resume': True, '--deep': True, '--update': True, '--debug': True, '--pretend': True}


myparams {'deep': True, 'recurse': True, 'selective': True, 'binpkg_respect_use': 'auto'}


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

Calculating dependencies /
Child:         (dev-db/hsqldb-1.8.1.3-r1::gentoo, ebuild scheduled for merge) USE="(amd64) -doc -source -test" ABI_X86="64"
... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1031, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 4062, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 229, in action_build
    settings, trees, mtimedb, myopts, myparams, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 8174, in resume_depgraph
    myparams, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 8197, in _resume_depgraph
    skip_masked=skip_masked)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 7708, in _loadResumeCommand
    if not self._add_pkg(task, None):
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 1945, in _add_pkg
    if dep.atom is not dep.atom.unevaluated_atom:
AttributeError: 'NoneType' object has no attribute 'unevaluated_atom'


# emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.19-r1, 3.10.7-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-gentoo-2.2
KiB Mem:     6043308 total,   1890024 free
KiB Swap:   12582908 total,  12352096 free
Timestamp of tree: Fri, 22 Aug 2014 07:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.2.5-r3, 3.3.5-r1
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        1.3.5, 2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo pike
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.ds.karen.hj.se/gentoo/ http://ftp.ds.karen.hj.se/gentoo/ http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/ ftp://mirror.mdfnet.se/gentoo http://mirror.mdfnet.se/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pike"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo canna cdda cdparanoia cdr cjk clamav cli consolekit cpudetection cracklib crypt ctype cups curl curlwrappers cxx dbus declarative directfb dri dts dvd dvdr emacs emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran freetds freewnn ftp gcrypt gdbm gif git glut gmp gnutls gpm gtk icc iconv idn ieee1394 imagemagick imap imlib iodbc ipv6 jadetex java javascript jpeg jpeg2k kde kipi lame lcms ldap libnotify mad maildir mbox mhash mime mjpeg mmx mng modules mp3 mp4 mpeg mplayer mule multilib mysql mysqli ncurses nis nls no-gnome nptl nsplugin odbc ogg opengl openmp pam pango pcre pdf phonon pike plasma png policykit posix postgres ppds qt3support qt4 quicktime rdesktop readline recode resolvconf samba sasl sdl semantic-desktop session smartcard snmp soap sockets spell sqlite sse sse2 ssl startup-notification subversion svg syslog tcpd thora threads tiff tk truetype udev udisks unicode upower usb video vorbis webdav wxwidgets x264 x86_64 xcb xcomposite xinerama xml xmlrpc xscreensaver xsl xulrunner xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="ati r300 mach64 r128 vesa vmware fbdev" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON