Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229335 - sys-apps/portage: KeyError due to corruption in /var/db/pkg
Summary: sys-apps/portage: KeyError due to corruption in /var/db/pkg
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 229649 634402 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-25 05:16 UTC by Sergey
Modified: 2021-09-04 02:26 UTC (History)
2 users (show)

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 Sergey 2008-06-25 05:16:04 UTC
last strings 'emerge =dev-libs/liboil-0.3.14' :

-- Installing ./html/ch01.html
-- Installing ./html/ch02.html
-- Installing ./html/home.png
-- Installing ./html/index.html
-- Installing ./html/index.sgml
-- Installing ./html/left.png
-- Installing ./html/liboil.devhelp
-- Installing ./html/liboil.devhelp2
-- Installing ./html/liboil-liboilclass-unstable.html
-- Installing ./html/liboil-liboilcpu.html
-- Installing ./html/liboil-liboildebug.html
-- Installing ./html/liboil-liboilfuncs-conv.html
-- Installing ./html/liboil-liboilfuncs-copy.html
-- Installing ./html/liboil-liboilfuncs-dct.html
-- Installing ./html/liboil-liboilfuncs-doc.html
-- Installing ./html/liboil-liboilfuncs-math8x8.html
-- Installing ./html/liboil-liboilfuncs-math.html
-- Installing ./html/liboil-liboilfuncs-pixel.html
-- Installing ./html/liboil-liboilimpl-unstable.html
-- Installing ./html/liboil-liboilinit.html
-- Installing ./html/liboil-liboilinit-unstable.html
-- Installing ./html/liboil-liboiljunk.html
-- Installing ./html/liboil-liboilmacros.html
-- Installing ./html/liboil-liboilparameter.html
-- Installing ./html/liboil-liboilprofile.html
-- Installing ./html/liboil-liboilprototype.html
-- Installing ./html/liboil-liboilrandom.html
-- Installing ./html/liboil-liboiltest.html
-- Installing ./html/liboil-liboiltypes.html
-- Installing ./html/right.png
-- Installing ./html/style.css
-- Installing ./html/up.png
-- Installing ./html/index.sgml
make[3]: Leaving directory `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14/doc'
make[2]: Leaving directory `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14/doc'
make[2]: Entering directory `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14'
make[3]: Entering directory `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14'
make[3]: Цель `install-exec-am' не требует выполнения команд.
test -z "/usr/lib/pkgconfig" || mkdir -p -- "/var/tmp/portage/dev-libs/liboil-0.3.14/image//usr/lib/pkgconfig"
/usr/bin/install -c -m 644 'liboil-0.3.pc' '/var/tmp/portage/dev-libs/liboil-0.3.14/image//usr/lib/pkgconfig/liboil-0.3.pc'
make[3]: Leaving directory `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14'
make[2]: Leaving directory `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14'
make[1]: Leaving directory `/var/tmp/portage/dev-libs/liboil-0.3.14/work/liboil-0.3.14'
dodoc: ChangeLog does not exist
>>> Completed installing liboil-0.3.14 into /var/tmp/portage/dev-libs/liboil-0.3.14/image/

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
usr/bin/oil-bugreport
usr/lib/liboil-0.3.so.0.2.0
usr/lib/liboil-0.3.a
removing executable bit: usr/lib/liboil-0.3.la
Traceback (most recent call last):
File "/usr/bin/emerge", line 18, in 
retval = _emerge.emerge_main()
File "/usr/lib/portage/pym/_emerge/__init__.py", line 9434, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/lib/portage/pym/_emerge/__init__.py", line 8780, in action_build
retval = mergetask.merge(pkglist, favorites, mtimedb)
File "/usr/lib/portage/pym/_emerge/__init__.py", line 5871, in merge
return self._merge(mylist, favorites, mtimedb)
File "/usr/lib/portage/pym/_emerge/__init__.py", line 6186, in _merge
blockers=self._find_blockers(pkg))
File "/usr/lib/portage/pym/portage/__init__.py", line 5595, in merge
mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 2991, in merge
mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 2999, in _merge
cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 2278, in treewalk
"%s:%s" % (cpv_getkey(self.mycpv), slot)) \
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 575, in match
self.cp_list(mydep.cp, use_cache=use_cache)))
File "/usr/lib/portage/pym/portage/dbapi/__init__.py", line 138, in _iter_match_slot
if self.aux_get(cpv, ["SLOT"])[0] == atom.slot:
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 720, in aux_get
self._aux_get(mycpv, aux_keys, st=mydir_stat)):
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 745, in _aux_get
raise KeyError(mycpv)
KeyError: 'dev-libs/liboil-0.3.14'

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-libs/liboil-0.3.14


Expected Results:  
Normal build

Portage 2.2_rc1 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 i686)
=================================================================
System uname: 
Linux-2.6.25-gentoo-r4-i686-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-glibc2.0

Timestamp of tree: Tue, 24 Jun 2008 03:47:03 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.2.5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.62
sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.2.4
virtual/os-headers: 2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles"
LANG="ru_RU.UTF-8"
LDFLAGS=""
LINGUAS="ru"
MAKEOPTS="-j2"
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"
SYNC="rsync://mirror.yandex.ru/gentoo-portage/"
USE="X acl acpi alsa apache2 bluetooth branding bzip2 cairo calendar cdr cli cracklib crypt ctype curl dbus dri dvd dvdr dvdread eds emboss encode esd evo examples expat fam firefox fortran gd gdbm gif gnome gpm gstreamer gtk hal hash iconv imap ipv6 isdnlog java java6 jpeg kde kerberos ldap libnotify mad maildir midi mikmod mmx mono mp3 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf pdo perl php png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl server session spell spl sse ssl startup-notification svg symlink syslog tcpd tiff tokenizer truetype unicode vorbis win32codecs x86 xml xmlrpc xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="ru" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Zac Medico gentoo-dev 2008-06-25 08:58:14 UTC
(In reply to comment #0)
> File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 745, in _aux_get
> raise KeyError(mycpv)
> KeyError: 'dev-libs/liboil-0.3.14'

This means that /var/db/pkg/dev-libs/liboil-0.3.14 is exists but is not a director. Usually that indicates some sort of filesystem corruption.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-26 21:34:38 UTC
*** Bug 229649 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2017-12-02 20:55:38 UTC
*** Bug 634402 has been marked as a duplicate of this bug. ***