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

Bug 69621

Summary: emerge sync on portage-2.0.51 hoses world & config files if PORTDIR=/var/lib/portage
Product: Portage Development Reporter: Jani-Matti Hätinen <jani-matti.hatinen>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to protect config & world files during emerge sync

Description Jani-Matti Hätinen 2004-10-31 07:19:43 UTC
Because both config and world were moved to /var/lib/portage in 2.0.51, syncing the portage tree now removes both those files, if PORTDIR is also set to /var/lib/portage.

I know that having PORTDIR=/var/lib/portage is not the default and supporting all possible PORTDIR values would be counterproductive, but still please consider adding the following patch to portage.
Comment 1 Jani-Matti Hätinen 2004-10-31 07:22:12 UTC
Created attachment 43010 [details, diff]
Patch to protect config & world files during emerge sync

The patch protects the config and world files during emerge sync and doesn't
affect anything else.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-11-02 05:42:55 UTC
/var/lib/portage is for "private" portage data. There will more than likely be more things added in the future, which would require further and further expansion of rsync's "except" clause. Furthermore, it might be possible that names could even conflict..