sys-apps/portage-2.2_rc33: if I want use overlayed eclass for main repo (for example, kernel-2.eclass from "raw" overlay) - I must remove /usr/portage/metadata directory (every time after sync). repos.conf: [gentoo] eclass-overrides = raw Reproducible: Always
I think you just want to enable FEATURES=metadata-transfer. This is necessary due to a limitation in the cache format that is distirbuted in the metadata/cache/ directory (it doesn't store eclass validation data). In order to solve this problem, we need to extend the cache format as discussed in the "[RFC] DIGESTS metadata variable for cache validation" thread: http://archives.gentoo.org/gentoo-dev/msg_cfa80e33ee5fa6f854120ddfb9b468b3.xml
I guess we need to say something about FEATURES=metadata-transfer in the part about repos.conf/eclass-overrides in the portage.5 man page.
(In reply to comment #1) > I think you just want to enable FEATURES=metadata-transfer. This is necessary I know (something, not sense) about metadata-transfer. This is don't work here. Now I test it again - enable metadata-transfer and "emerge --sync -q". To verify: "emerge -pv gentoo-sources" - no additional useflags from "raw" overlay. May be better first add flag to prevent lookup metata cache? Just like it removed. At least to prevent downloading all cache every sync.
(In reply to comment #3) > May be better first add flag to prevent lookup metata cache? Just like it > removed. At least to prevent downloading all cache every sync. Hmm, it seems that FEATURES=metadata-transfer doesn't really help you, so you should just disable it. Apparently the best solution for you is to set PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache". That's seems like the only thing you can do until we extend the cache format as described in comment #1. So, I'll update portage.5 to recommend the rsync exclude when using eclass-overrides. You should also run emerge --regen after every sync.
In svn r13788 I've added a note to the portage.5 man page that eclass-overrides may make it necessary to set PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache" in make.conf.
(In reply to comment #5) > In svn r13788 I've added a note to the portage.5 man page that eclass-overrides > may make it necessary to set > PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache" in make.conf. > Good. And "rm /usr/portage/metadata/cache -Rf"
(In reply to comment #6) > And "rm /usr/portage/metadata/cache -Rf" Thanks, got that in r13864.
This is fixed in 2.2_rc34.
This is fixed in 2.1.7.
*** Bug 291951 has been marked as a duplicate of this bug. ***