Summary: | sys-apps/opentmpfiles: cannot specify user/group on Prefix | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Horea Christian <gentoo> |
Component: | Prefix Support | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | prefix |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Horea Christian
2019-01-11 15:23:41 UTC
I have met the same bug. Is this problem Prefix specific? Hi OpenRC Team, Here is an example of tmpfiles.d/eix.conf: d EPREFIX/var/cache/eix 0775 portage portage - It fails at the `chown` step if no root privilege is granted, such as on normal user Prefix: $ tmpfiles --create eix.conf chown: invalid user: 'portage' chgrp: invalid group: 'portage' As a result, EPREFIX/var/cache/eix is not created during emerge. I can think of 2 ways to solve this bug: 1. In the tmpfiles.eclass, chop off the extra user/group setting from eix.conf during `dotmpfiles()` if without root privilege. 2. In opentmpfiles, allow the chown setup to fail if without root privilege. Which one is recommended? Yours, Benda can't we pull the portage user/group from Portage in the ebuild and hardcode it in the installed tmpfile conf? (In reply to Fabian Groffen from comment #3) > can't we pull the portage user/group from Portage in the ebuild and hardcode > it in the installed tmpfile conf? I think that's at least a solution. opentmpfiles is no longer an option |