Summary: | PORTAGE_RSYNC_EXTRA_OPTS with "--filter" fails with >=sys-apps/portage-2.1.2-r9 | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Wicher Minnaard <wicher> |
Component: | Core - Configuration | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | wicher |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 181949 | ||
Attachments: | do not remove quotes when expanding make.conf variables |
Description
Wicher Minnaard
2007-05-08 08:04:58 UTC
emerge --oneshot rsync *** This bug has been marked as a duplicate of bug 167668 *** 1) Remerging rsync does not solve this 2) How is this related to #167668 ? This is fixed in svn r6491:6493 and released in portage-2.1.2.7. Please reopen if 2.1.2.7 doesn't work for you. Reopening because 2.1.2.7 doesn't work for me ;-) (In reply to comment #0) > I use PORTAGE_RSYNC_EXTRA_OPTS='--delete-excluded --prune-empty-dirs > --filter=". /etc/portage/rsync.filter"' At the moment, the cleanest way to do it is to use --filter=._/etc/portage/rsync.filter since rsync supports using an underscore instead of a space there. You could use \" to escape the quotes but that's not ideal because we'd like make.conf to be a bash compatible subset of standard shell syntax. Created attachment 118605 [details, diff]
do not remove quotes when expanding make.conf variables
This patch will make it behave in a more shell-compatible manner. Instead of removing quotes during variable expansion, it will preserve them. The quotes will be removed later when the command is split into arguments for execution.
--filter=._/etc/portage/rsync.filter works wonders. Thanks man! Didn't try the patch though. This has been released in 2.1.2.8. |