On 2020.03.18 18:59, Ian Zimmerman wrote:
After a hiatus I am trying to create my own ebuild repository again.
I
need a way to test the separate steps (fetch, prepare, comiple,
install
etc.) and I would like to do all of them as a regular user (not root,
not portage). I tried what I thought was the most natural attempt -
run
the ebuild program under fakeroot, but it still breaks trying to
change
permissions of things in PORTAGE_TMPDIR (of course override the value
of
this variable). I don't understand this - it looks just like what
fakeroot was intended to help with? Anyway, I'm not married to
fakeroot,
just looking for a way to do these test runs.
I remember that I could do this the first time, a couple of years ago.
But I don't remember how :-(
This is from memory - not currently tested, but I often do the various
ebuild steps as myself, without a fakeroot, and not overriding the
system PORTAGE_TMPDIR.. Again, from memory, as long as I opened
permissions on PORTAGE_TMPDIR so I could create the necessary
directories, I could do all steps as myself except for the final
qmerge. Once you create the group and package directories under
PORTAGE_TMPDIR, there shouldn't be any problems. The final qmerge step
clearly requires root, unless you are using a chroot to install
somewhere other than the real system directories.
Jack