The install step only installs to a temporary directory under $PORTAGE_TMPDIR so it is reasonably safe as root, but for more security run the procedure inside a container/chroot/VM.
On 15 February 2018 02:37:50 GMT+00:00, Ian Zimmerman <[email protected]> wrote: >I'm trying to test my package by running "ebuild /path/to/pkg.ebuild >install". Naturally (for me) I do this as an unprivileged user, not as >root. It fails because at least some steps such as dobin need to give >away ownership of the files being installed. I tried to run the whole >thing including compilation under fakeroot but that doesn't help. > >If it is relevant (but I don't think it is) my user _is_ in the portage >group. > >What is the accepted or usual way to do this task? > >-- >Please don't Cc: me privately on mailing lists and Usenet, >if you also post the followup to the list or newsgroup. >To reply privately _only_ on Usenet and on broken lists >which rewrite From, fetch the TXT record for no-use.mooo.com. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

