Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276264 - sys-apps/portage-2.2_rc33 - eclass overlaying from "gentoo" to overlay needs to remove metadata cache
Summary: sys-apps/portage-2.2_rc33 - eclass overlaying from "gentoo" to overlay needs ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 291951 (view as bug list)
Depends on:
Blocks: 210077 288499
  Show dependency tree
 
Reported: 2009-07-02 17:11 UTC by Denis Kaganovich
Modified: 2011-12-04 13:27 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 Denis Kaganovich 2009-07-02 17:11:51 UTC
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
Comment 1 Zac Medico gentoo-dev 2009-07-04 10:05:29 UTC
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
Comment 2 Zac Medico gentoo-dev 2009-07-04 10:08:14 UTC
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.
Comment 3 Denis Kaganovich 2009-07-04 15:56:44 UTC
(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.
Comment 4 Zac Medico gentoo-dev 2009-07-04 19:02:08 UTC
(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.
Comment 5 Zac Medico gentoo-dev 2009-07-05 10:40:59 UTC
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.
Comment 6 Denis Kaganovich 2009-07-06 11:25:46 UTC
(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"
Comment 7 Zac Medico gentoo-dev 2009-07-30 23:10:00 UTC
(In reply to comment #6)
> And "rm /usr/portage/metadata/cache -Rf"

Thanks, got that in r13864.
Comment 8 Zac Medico gentoo-dev 2009-08-03 23:12:14 UTC
This is fixed in 2.2_rc34.
Comment 9 Zac Medico gentoo-dev 2009-10-11 00:55:00 UTC
This is fixed in 2.1.7.
Comment 10 Zac Medico gentoo-dev 2009-11-20 05:05:01 UTC
*** Bug 291951 has been marked as a duplicate of this bug. ***