# TODO: Enable fakeroot to be used together with droppriv. The
# fake ownership/permissions will have to be converted to real
# permissions in the merge phase.
fakeroot = fakeroot and uid != 0 and portage.process.fakeroot_capable
fakeroot = fakeroot and portage.process.fakeroot_capable
portage_build_uid = os.getuid()
portage_build_gid = os.getgid()
if uid == 0 and portage_uid and portage_gid and hasattr(os, "setgroups"):