Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: vim@g.o
Subject: Re: [gentoo-dev] [PATCH 2/3] vim-plugin.eclass: use Portage internal variables.
Date: Sat, 04 Nov 2017 23:04:15
Message-Id: 23038.18274.209568.141265@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] [PATCH 2/3] vim-plugin.eclass: use Portage internal variables. by Patrice Clement
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