Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 478330

Summary: sys-apps/portage: support storing & syncing cache separately from repo
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 240187    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-27 08:58:51 UTC
Currently we're forced to fixed '/metadata/*cache' inside of repo. I believe that it would be much better if it was possible to override the cache location in repos.conf. Even better if we were able to sync caches separately of the repo.

Advantages:

1. We can get a clear split between 'real data' and 'cache'. For example, we can put repos in /var/db and caches in /var/cache.

2. We can give cache to the user without polluting the VCS. For example, user can use gx86 from git with cache synced via rsync. Well, there is some risk of mis-sync but that's better than having no cache at all or storing duplicate data in VCS.

3. We can give something like cache-sync-uri = autogen://, as a nice & easy way of making portage automatically generate/update caches for repos that don't have any supplied. Without polluting the checkout.