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

Bug 585266

Summary: Portage Sync action should ignore lost+found
Product: Portage Development Reporter: samurai.no.dojo
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: minor CC: samurai.no.dojo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description samurai.no.dojo 2016-06-07 10:05:03 UTC
It would be nice if portage sync action would ignore lost+found directory when portage tree is on separate partition.

Reproducible: Always

Steps to Reproduce:
1.move portage tree onto separate partition (with lost+found dir present)
2.invoke sync (eix-sync in my case)
3.rsync: opendir "/usr/portage/lost+found" failed: Permission denied (13) error
OR
3.directory is missing
Actual Results:  
rsync: opendir "/usr/portage/lost+found" failed: Permission denied (13) error
or
removed lost+found dir

Expected Results:  
Ignored lost+found dir.


PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
Comment 1 samurai.no.dojo 2016-06-07 10:06:02 UTC
Proposed change:
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git --exclude=/lost+found"
instead of
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
Comment 2 Zac Medico gentoo-dev 2016-06-07 14:10:58 UTC
You can set PORTAGE_RSYNC_EXTRA_OPTS="/lost+found" if that's what you need. I'm not sure if this is worthy of inclusion in the defaults. In fact I'm not very happy about most of the default excludes, since I feel like it would be better not to encourage mixing non-repo items into the repo's directory (sometimes people are surprised when they add new stuff and rsync deletes it for them).
Comment 3 samurai.no.dojo 2016-10-03 10:31:14 UTC
OK I can adjust it by myself. 
It was just to let you know.
Comment 4 Zac Medico gentoo-dev 2016-10-10 05:51:45 UTC

*** This bug has been marked as a duplicate of bug 79772 ***