Summary: | sys-apps/portage : emerge --sync doesn't honor FEATURES="usersync" when using the git sync method | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Raymond Jennings <shentino> |
Component: | Core - Configuration | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | esigra, om |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 240187, 941607 |
Description
Raymond Jennings
2015-08-30 00:31:39 UTC
Poking through the wiki, it looks like a workaround would be to set 'sync-user = root:portage' in your /../../repos.conf/gentoo.conf. err, maybe 'sync-user = portage' in your /../../repos.conf/gentoo.conf would be better... Looking at the code, the rsync module uses self.spawn_kwargs which is supposed to make it drop privileges, but it only if you first chown the repository to whatever user you want it to sync as: https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/sync/controller.py?h=v2.2.20.1#n276 So, you should run chown -R on the repository for the user that you want it to drop privileges to. pebcak. I have a hunch this would be better if it were documented in a man page or something but it doesn't appear to be an actual bug in the code. |