Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Testing ebuilds
Date: Fri, 20 Mar 2020 07:08:00
Message-Id: 20200320070745.s4b4zhkffloucznd@matica
In Reply to: Re: [gentoo-user] Re: Testing ebuilds by Alarig Le Lay
1 On 2020-03-19 20:18, Alarig Le Lay wrote:
2
3 > Yes and it has always worked. `dobin` shouldn’t try to chown in theory,
4 > it’s done during the merge.
5
6 Assuming it's /usr/lib/portage/python3.6/ebuild-helpers/dobin, mine
7 contains as the last significant chunk the following:
8
9 for x in "$@" ; do
10 if [[ -e ${x} ]] ; then
11 install -m0755 -o ${PORTAGE_INST_UID:-0} -g ${PORTAGE_INST_GID:-0} "${x}" "${ED%/}/${_E_DESTTREE_#/}/bin"
12 else
13 echo "!!! ${0##*/}: $x does not exist" 1>&2
14 false
15 fi
16 ((ret|=$?))
17 done
18
19 so it is indeed trying to set the owner to root. Maybe if I set
20 PORTAGE_INST_{UID,GID} to my own it will not really try to change them.
21 Are you saying you didn't have to do that? Does your version of the
22 script contain the above code?
23
24 --
25 Ian

Replies

Subject Author
Re: [gentoo-user] Re: Testing ebuilds Alarig Le Lay <alarig@××××××××××.fr>