1 |
>>>>> On Sat, 4 Nov 2017, Patrice Clement wrote: |
2 |
|
3 |
> - find "${S}" -user 'portage' -exec chown root '{}' \; || die "chown failed" |
4 |
> + find "${S}" -user "${PORTAGE_USERNAME}" -exec chown root '{}' \; || die "chown failed" |
5 |
> if use userland_BSD || [[ ${CHOST} == *-darwin* ]] ; then |
6 |
> - find "${S}" -group 'portage' -exec chgrp wheel '{}' \; || die "chgrp failed" |
7 |
> + find "${S}" -group "${PORTAGE_GRPNAME}" -exec chgrp wheel '{}' \; || die "chgrp failed" |
8 |
> else |
9 |
> - find "${S}" -group 'portage' -exec chgrp root '{}' \; || die "chgrp failed" |
10 |
> + find "${S}" -group "${PORTAGE_GRPNAME}" -exec chgrp root '{}' \; || die "chgrp failed" |
11 |
|
12 |
Why are these necessary? The package manager should change ownership |
13 |
of files to the root user and its group when merging from D to ROOT: |
14 |
https://projects.gentoo.org/pms/6/pms.html#x1-15600012.3.1 |