Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265768 - sys-apps/portage 2.2_rc29 have an CacheCorruption:
Summary: sys-apps/portage 2.2_rc29 have an CacheCorruption:
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 210077
  Show dependency tree
 
Reported: 2009-04-11 14:37 UTC by Pierrot Rey
Modified: 2009-04-12 06:21 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 Pierrot Rey 2009-04-11 14:37:42 UTC
I installed twice the 2.2_rc29 portages and I had every time this error.

emerge -vauDN world      

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

Calculating dependencies -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 15942, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 14723, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 4626, in __init__
    vardb.aux_get(pkg.cpv, [])
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1266, in _aux_get_wrapper
    self._portdb.aux_get(pkg, self._portdb_keys)))
  File "//usr/lib64/portage/pym/portage/dbapi/porttree.py", line 486, in aux_get
    mydata, st, emtime = self._pull_valid_cache(mycpv, myebuild, mylocation)
  File "//usr/lib64/portage/pym/portage/dbapi/porttree.py", line 442, in _pull_valid_cache
    del auxdb[cpv]
  File "//usr/lib64/portage/pym/portage/cache/template.py", line 96, in __delitem__
    self._delitem(cpv)
  File "//usr/lib64/portage/pym/portage/cache/metadata_overlay.py", line 63, in _delitem
    value = self[cpv] # validates whiteout and/or raises a KeyError when necessary
  File "//usr/lib64/portage/pym/portage/cache/metadata_overlay.py", line 36, in __getitem__
    return self.db_ro[cpv] # raises a KeyError when necessary
  File "//usr/lib64/portage/pym/portage/cache/template.py", line 38, in __getitem__
    d=self._getitem(cpv)
  File "//usr/lib64/portage/pym/portage/cache/flat_hash.py", line 31, in _getitem
    d = self._parse_data(myf, cpv)
  File "//usr/lib64/portage/pym/portage/cache/metadata.py", line 63, in _parse_data
    raise cache_errors.CacheCorruption(cpv, e)
CacheCorruption: media-sound/phonon-4.3.1 is corrupt: 'toolchain-funcs'

I do not understand too because with the rc28 everything works, I put my emerge - info

emerge --info
Portage 2.2_rc29 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
=================================================================                                                
System uname: Linux-2.6.29-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.0.0                 
Timestamp of tree: Sat, 11 Apr 2009 08:15:01 +0000                                                               
app-shells/bash:     4.0_p17                                                                                     
dev-java/java-config: 2.1.7                                                                                      
dev-lang/python:     2.5.4-r2, 2.6.1-r1                                                                          
dev-python/pycrypto: 2.0.1-r8                                                                                    
dev-util/cmake:      2.6.3-r1                                                                                    
sys-apps/baselayout: 2.0.0                                                                                       
sys-apps/openrc:     0.4.3-r1                                                                                    
sys-apps/sandbox:    1.9                                                                                         
sys-devel/autoconf:  2.13, 2.63-r1                                                                               
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2                                                             
sys-devel/binutils:  2.19.1-r1                                                                                   
sys-devel/gcc-config: 1.4.1                                                                                      
sys-devel/libtool:   2.2.6a                                                                                      
virtual/os-headers:  2.6.28-r1                                                                                   
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                   
CBUILD="x86_64-pc-linux-gnu"                                                                                     
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"                                                          
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"
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/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://ftp.heanet.ie/pub/gentoo/"
LANG="fr_CH.UTF-8"
LC_ALL="fr_CH.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="fr fr_CH"
MAKEOPTS="-j5"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/mozilla /usr/local/portage/layman/java-overlay /usr/local/portage/layman/kde-testing /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib cups dbus dri dvd dvdr dvdread eds emboss encode evo fam firefox fortran gif gpm gtk hal iconvisdnlog java jpeg kde kdeprefix ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_CH" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Thank you in advance for your help and good day
Comment 1 Zac Medico gentoo-dev 2009-04-11 18:53:01 UTC
You should remove the metadata_overlay setting that you have in /etc/portage/modules. You don't need that because FEATURES=-metadata-transfer gives you the behavior that you want (it's the default setting since portage-2.1.5.x).
Comment 2 Pierrot Rey 2009-04-12 04:04:28 UTC
(In reply to comment #1)
> You should remove the metadata_overlay setting that you have in
> /etc/portage/modules. You don't need that because FEATURES=-metadata-transfer
> gives you the behavior that you want (it's the default setting since
> portage-2.1.5.x).
> 


Yes that's right, so it is not a bug and we can close it, thank you very much.
Comment 3 Zac Medico gentoo-dev 2009-04-12 04:06:45 UTC
This is fixed in svn r13329.
Comment 4 Zac Medico gentoo-dev 2009-04-12 06:21:40 UTC
This is fixed in 2.2_rc30.