aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-30 20:14:41 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-30 20:14:41 +0000
commit0f7b8b09ff398c506456fd01aec463a2c08ecc69 (patch)
tree7419eb47a927543a300db42415afa131570fe741
parentfb9f37336d6208fb60074b762fed2a772375b872 (diff)
downloadpaludis-0f7b8b09ff398c506456fd01aec463a2c08ecc69.tar.gz
paludis-0f7b8b09ff398c506456fd01aec463a2c08ecc69.tar.xz
Better error messages
-rw-r--r--paludis/repositories/gentoo/ebuild.cc2
-rw-r--r--paludis/repositories/gentoo/ebuild/builtin_init.bash2
2 files changed, 3 insertions, 1 deletions
diff --git a/paludis/repositories/gentoo/ebuild.cc b/paludis/repositories/gentoo/ebuild.cc
index 28aa79a..bcac3d4 100644
--- a/paludis/repositories/gentoo/ebuild.cc
+++ b/paludis/repositories/gentoo/ebuild.cc
@@ -110,6 +110,8 @@ EbuildCommand::operator() ()
.with_setenv("PALUDIS_FETCHERS_DIRS", params.environment->fetchers_dirs())
.with_setenv("PALUDIS_SYNCERS_DIRS", params.environment->syncers_dirs())
.with_setenv("PALUDIS_COMMAND", params.environment->paludis_command())
+ .with_setenv("PALUDIS_REDUCED_GID", stringify(params.environment->reduced_gid()))
+ .with_setenv("PALUDIS_REDUCED_UID", stringify(params.environment->reduced_uid()))
.with_setenv("KV", kernel_version())
.with_setenv("PALUDIS_EBUILD_LOG_LEVEL", stringify(Log::get_instance()->log_level()))
.with_setenv("PALUDIS_EBUILD_DIR", getenv_with_default("PALUDIS_EBUILD_DIR", LIBEXECDIR "/paludis")));
diff --git a/paludis/repositories/gentoo/ebuild/builtin_init.bash b/paludis/repositories/gentoo/ebuild/builtin_init.bash
index 9c6859f..2e7b873 100644
--- a/paludis/repositories/gentoo/ebuild/builtin_init.bash
+++ b/paludis/repositories/gentoo/ebuild/builtin_init.bash
@@ -45,7 +45,7 @@ builtin_init()
!!! automatically. Please create it by hand and give it appropriate
!!! permissions. Typically you should use:
!!! mkdir ${!a}
-!!! chgrp paludisbuild ${!a}
+!!! chgrp ${PALUDIS_REDUCED_GID} ${!a}
!!! chmod g+rwx ${!a}
!!! chmod +s ${!a}
!!! although other values may be more appropriate for your system.