Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254686 - portage-2.2-rc20 barfs on installing 2nd package in a queue with "ValueError: invalid literal for long() with base 10: ''"
Summary: portage-2.2-rc20 barfs on installing 2nd package in a queue with "ValueError:...
Status: RESOLVED DUPLICATE of bug 254114
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 21:19 UTC by Andrew Malota
Modified: 2009-01-12 21:44 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 Andrew Malota 2009-01-12 21:19:58 UTC
Strange problem with portage 2.2-rc20:

I can build/install the first package in a queue just fine. However, the 2nd package, whatever it is, fails at the "install" step with this backtrace:

>>> Installing kde-base/parley-4.1.87
Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = _emerge.emerge_main()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 14864, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 13837, in action_build
    retval = mergetask.merge()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 10015, in merge
    rval = self._merge()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 10257, in _merge
    self._main_loop()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 10385, in _main_loop
    self._poll_loop()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 8946, in _poll_loop
    handler(f, event)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 2257, in _output_handler
    self._unregister_if_appropriate(event)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1772, in _unregister_if_appropriate
    self.wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1677, in wait
    self._wait_hook()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1750, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 3029, in _post_phase_exit
    self.wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1677, in wait
    self._wait_hook()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1750, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 2011, in _task_exit_handler
    self.wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1677, in wait
    self._wait_hook()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1750, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1962, in _default_final_exit
    return self.wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1677, in wait
    self._wait_hook()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1750, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 2650, in _build_exit
    self.wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1677, in wait
    self._wait_hook()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1750, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1962, in _default_final_exit
    return self.wait()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1677, in wait
    self._wait_hook()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1750, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 10237, in _build_exit
    self._schedule()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 8859, in _schedule
    return self._schedule_tasks()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 10404, in _schedule_tasks
    if q.schedule():
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 8751, in schedule
    task.start()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1658, in start
    self._start()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 3841, in _start
    self.returncode = self.merge.merge()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 3808, in merge
    retval = self._install_task.install()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 2734, in install
    rval = merge.execute()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 3088, in execute
    blockers=self.find_blockers)
  File "//usr/lib64/portage/pym/portage/__init__.py", line 6172, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "//usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3872, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "//usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3882, in _merge
    cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "//usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3187, in treewalk
    blockers = self._blockers()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 9699, in get_blockers
    return self._find_blockers_with_lock(new_pkg, acquire_lock=0)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 9716, in _find_blockers_with_lock
    new_pkg, acquire_lock=acquire_lock):
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 4084, in findInstalledBlockers
    cached_blockers.counter != long(inst_pkg.metadata["COUNTER"]):
ValueError: invalid literal for long() with base 10: ''

Note that if i do "emerge --resume", the package (whatever it is,) will build and install just fine, as it's the first in the queue! (eg emerge: 1 of 137)

I'm pretty sure this is the result of some corrupt system file somewhere, as it started when my thinkpad ran out of juice during an emerge. At any rate, I'm a little confused on what files could be angry.


Also - I am using an overlay that overrides eclasses, but I do the metadata-transfer thing and always emerge --regen after a sync.

I've also tried rebuilding gcc, portage, and glibc, AND installing them all from packages made with quickpkg on another working thinkpad. As long as I build one package at a time, everything works great. But in all cases, trying to emerge more than one package causes explosion.

Reproducible: Always

Steps to Reproduce:
1. Unplug your computer duing an emerge of @kde-4.2 (not advisable :))
2. Try to emerge some packages, at least 2.

Actual Results:  
Emerge installs the first one fine, and then explodes on the install of the second one with a nice backtrace ending in:

  File "//usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3187, in treewalk
    blockers = self._blockers()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 9699, in get_blockers
    return self._find_blockers_with_lock(new_pkg, acquire_lock=0)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 9716, in _find_blockers_with_lock
    new_pkg, acquire_lock=acquire_lock):
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 4084, in findInstalledBlockers
    cached_blockers.counter != long(inst_pkg.metadata["COUNTER"]):
ValueError: invalid literal for long() with base 10: ''

Expected Results:  
Should've installed the package...

armalota-thinkpad armalota # emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/armalota/profiles/repo_name
        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
 * Overlay eclasses override eclasses from PORTDIR:
 *
 *   '/usr/local/overlays/java-experimental/eclass/ant-tasks.eclass'
 *   '/usr/local/portage/layman/kde-testing/eclass/kde4-base.eclass'
 *   '/usr/local/portage/layman/kde-testing/eclass/kde4-functions.eclass'
 *   '/usr/local/portage/layman/kde-testing/eclass/kde4-meta.eclass'
 *   '/usr/local/overlays/java-experimental/eclass/mercurial.eclass'
 *
 * It is best to avoid overriding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to add FEATURES="metadata-transfer" to /etc/make.conf and to
 * run `emerge --regen` after each time that you run `emerge --sync`. Set
 * PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you would like to
 * disable this warning.
Portage 2.2_rc20 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-wl x86_64)
=================================================================
System uname: Linux-2.6.28-wl-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Mon, 12 Jan 2009 20:00:17 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r6, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 x86 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/portage/layman/synce /usr/local/portage/layman/java-overlay /usr/local/portage/layman/ibm-internal-cvs /usr/local/portage/layman/sunrise /usr/local/portage/layman/gnome /usr/local/portage/layman/rbu /usr/local/portage/layman/kde-testing /usr/local/portage /usr/local/overlays/java-experimental /usr/local/portage/armalota"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apm arts bash-completion berkdb bluetooth bzip2 cairo cdda cdparanoia cli cracklib crypt cups curl dbus dhcpcd dialup dri dts dv dvd dvdr dvdread encode exif ffmpeg flac fortran ftp fuse gdbm gif gimp gnome gpm graphviz gtk hal iconv imagemagick ipod iptables ipv6 irc isdnlog java jpeg jpeg2k kde kdeprefix kdiff3 kwallet lame ldap libcaca lirc meanwhile midi mjpeg mmx mmxext mp2 mp3 mp4 mplayer mudflap multilib mysql ncurses network nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php png ppds ppp pppd prediction pthreads python qt3 qt3support qt4 quicktime readline reflection samba sdl session smp sox speex spell spl sqlite sse sse2 ssl ssse3 svg symphony sysfs tcpd theora threads tiff tk truetype unicode visualization vorbis wmf x11 x264 xinerama xorg xprint xscreensaver xv xvid xvmc 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NETBEANS_MODULES="php j2ee webcommon xml visualweb apisupport cnd groovy gsf harness ide identity java mobility nb profiler soa websvccommon" USERLAND="GNU" VIDEO_CARDS="intel fbdev vmware vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-12 21:44:39 UTC

*** This bug has been marked as a duplicate of bug 254114 ***