1 |
On ven. 20 mars 00:07:45 2020, Ian Zimmerman wrote: |
2 |
> On 2020-03-19 20:18, Alarig Le Lay wrote: |
3 |
> |
4 |
> > Yes and it has always worked. `dobin` shouldn’t try to chown in theory, |
5 |
> > it’s done during the merge. |
6 |
> |
7 |
> Assuming it's /usr/lib/portage/python3.6/ebuild-helpers/dobin, mine |
8 |
> contains as the last significant chunk the following: |
9 |
> |
10 |
> for x in "$@" ; do |
11 |
> if [[ -e ${x} ]] ; then |
12 |
> install -m0755 -o ${PORTAGE_INST_UID:-0} -g ${PORTAGE_INST_GID:-0} "${x}" "${ED%/}/${_E_DESTTREE_#/}/bin" |
13 |
> else |
14 |
> echo "!!! ${0##*/}: $x does not exist" 1>&2 |
15 |
> false |
16 |
> fi |
17 |
> ((ret|=$?)) |
18 |
> done |
19 |
> |
20 |
> so it is indeed trying to set the owner to root. Maybe if I set |
21 |
> PORTAGE_INST_{UID,GID} to my own it will not really try to change them. |
22 |
> Are you saying you didn't have to do that? Does your version of the |
23 |
> script contain the above code? |
24 |
|
25 |
Hi I have this chunk of code, but I never had to specify my UID or GID |
26 |
by hand. |
27 |
|
28 |
Do you have hardening or something like that? |
29 |
|
30 |
-- |
31 |
Alarig |