Summary: | 'emerge -v --sync' erases all files in /usr/portage/distfiles_$(hostname), feature or bug? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | bugzie |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Juergen Rose
2012-10-23 14:02:51 UTC
I also tried to rename /usr/portage/distfiles_$(hostfile) to /usr/portage/distfiles__$(hostfile). Now 'emerge -v --sync' deletes the files under /usr/portage/distfiles__$(hostfile): root@caiman:/root(22)# ls -ld /usr/portage/distfiles* ; ls /usr/portage/distfiles__caiman | wc -w ; emerge -v --sync | grep "Number of files"; ls /usr/portage/distfiles__caiman | wc -w drwxrwsr-x 2 root portage 688128 Oct 23 15:26 /usr/portage/distfiles__caiman 5 Number of files: 1 Number of files transferred: 1 rsync: delete_file: rmdir(distfiles__caiman) failed: Device or resource busy (16) Number of files: 159078 Number of files transferred: 31 0 Tries 'emerge -v --sync' do delete all files under /usr/portage/distfiles_*? man emerge: WARNING: The emerge --sync action will modify and/or delete files located inside the directory that the PORTDIR variable refers to (default location is /usr/portage). For more information, see the PORTDIR documentation in the make.conf(5) man page. man 5 make.conf: ***Warning*** Data stored inside PORTDIR is in peril of being overwritten or deleted by the emerge --sync command. The default value of PORTAGE_RSYNC_OPTS will protect the default locations of DISTDIR and PKGDIR, but users are warned that any other locations inside PORTDIR are not necessarily safe for data storage. You should not put other data (such as overlays) in your PORTDIR. Portage will walk directory structures and may arbitrarily add invalid categories as packages. So you should modify PORTAGE_RSYNC_OPTS or move your files outside PORTDIR. Thanks Piotr, I moved /usr/portage/distfiles_$(hostfile) to /usr/local/portage/distfiles_$(hostfile) . It seems now to work. |