Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302764 - emerge --regen removes metadata cache of overlays located in /usr/portage/local/<overlay>
Summary: emerge --regen removes metadata cache of overlays located in /usr/portage/loc...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 307597
  Show dependency tree
 
Reported: 2010-01-29 15:23 UTC by Vlastimil Babka (Caster) (RETIRED)
Modified: 2010-03-03 11:18 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 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-01-29 15:23:11 UTC
When a overlay is located in /usr/portage/local/<overlay>/, emerge --regen will generate its entries under /var/cache/edb/dep/ during the process, but in the final cleanup phase it removes them (the files, directories stay).

Overlays located elsewhere are fine.

# emerge --info
Portage 2.2_rc61 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.31-gentoo-r4 x86_64)
=================================================================                                     
System uname: Linux-2.6.31-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1
Timestamp of tree: Unknown                                                                                  
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                   
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.9999
dev-lang/python:     2.5.4-r2, 2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 Nero-EULA-US sun-prerelease-jdk6 sun-prerelease-jdk7 IBM-J1.6 jrockit IBM-J1.4 IBM-J1.5 sun-bcla-java-vm skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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"
CXXFLAGS="-O2 -march=athlon64 -msse3 -pipe"
DISTDIR="/data/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests ccache collision-protect cvs distlocks fakeroot fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo     http://gentoo.osuosl.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en cs"
MAKEOPTS="-j3"
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="/var/lib/layman/mozilla /var/lib/layman/matsuu /usr/local/portage/crossdev /prj/gentoo/java/java-overlay /prj/gentoo/java/java-experimental /usr/portage/local/caster"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr apache2 audiofile bash-completion berkdb bluetooth branding bsf bzip2 cairo caps cdda cdr cjk cli consolekit cracklib crypt cups curl custom-optimization cxx dbus djvu dri dts dvd dvdr dvi emboss encode evo fam ffmpeg fftw firefox flac fontconfig fortran gdbm ggi gif gmp gnutls gpm groovy gstreamer gtk hal iconv icq idn ipv6 jabber jai java java5 java6 javascript jce jmf jpeg kde kdehiddenvisibility kipi kpathsea ladspa lastfm latex lcms ldap libffi libnotify libsamplerate lm_sensors lua lzo mad maildir matroska mbox mikmod mmx mmxext mng modules mozdevelop moznoirc mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ntfs nvidia obex ogg openal openexr opengl openmp oscar pam pcre pdf perl png postscript ppds pppd python qt3 qt3support qt4 quicktime readline reflection reiserfs rtc ruby samba sdl session slang sockets soundtouch speex spell spl sqlite srt sse sse2 ssl startup-notification svg sysfs t1lib tcl tcpd threads thunar tiff tk truetype unicode usb v4l v4l2 vamp vorbis webdav x264 xcb xcomposite xine xml xorg xosd xrender xulrunner xv xvid zlib" ALSA_CARDS="emu10k1" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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 cs" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev v4l"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2010-01-29 15:34:20 UTC
Do you have anything in /etc/portage/modules?
Is there any cache in /usr/portage/local/<overlay>/metadata/cache/?
Do the removed cache entries regenerate if you do something to trigger metadata access, such as by running `repoman manifest` in the overlay?
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-01-30 20:03:18 UTC
(In reply to comment #1)
> Do you have anything in /etc/portage/modules?

Just commented out stuff, shouldn't matter right?
#portdbapi.auxdbmodule = cache.metadata_overlay.database
#portdbapi.auxdbmodule = cache.sqlite.database

> Is there any cache in /usr/portage/local/<overlay>/metadata/cache/?

No, just empty /usr/portage/local/<overlay>/metadata/

> Do the removed cache entries regenerate if you do something to trigger metadata
> access, such as by running `repoman manifest` in the overlay?

Yes.

Comment 3 Zac Medico gentoo-dev 2010-01-31 00:44:39 UTC
Thanks, your patch is in svn r15295.
Comment 4 Zac Medico gentoo-dev 2010-03-03 11:18:30 UTC
This is fixed in 2.1.8 and 2.2_rc64.