DEPRECATED_PROFILE_FILE, USER_VIRTUALS_FILE, EBUILD_SH_ENV_FILE, \
INVALID_ENV_FILE, CUSTOM_MIRRORS_FILE, CONFIG_MEMORY_FILE,\
INCREMENTALS, EAPI, MISC_SH_BINARY, REPO_NAME_LOC, REPO_NAME_FILE, \
- EPREFIX, EPREFIX_LSTRIP, BPREFIX
+ EPREFIX, EPREFIX_LSTRIP, BPREFIX, rootgid
from portage.data import ostype, lchown, userland, secpass, uid, wheelgid, \
portage_uid, portage_gid, userpriv_groups
# to have root's gid. Therefore, use root's gid instead of
# portage's gid to avoid spurrious permissions adjustments
# when inside fakeroot.
- dir_gid = 0
+ dir_gid = rootgid
distdir_dirs = [""]
if "distlocks" in features:
distdir_dirs.append(".locks")
# all vars that are to wind up in portage_const must have their name listed in __all__
__all__ = ["EAPIPREFIX", "EPREFIX", "SYSCONFDIR", "DATADIR", "PORTAGE_BASE",
- "portageuser", "portagegroup", "rootuser", "rootuid"]
+ "portageuser", "portagegroup", "rootuser", "rootuid", "rootgid"]
from os import path
portageuser = "@portageuser@"
rootuser = "@rootuser@"
rootuid = @rootuid@
+rootgid = @rootgid@