Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/users-and-groups/
Date: Mon, 29 Aug 2016 18:01:13
Message-Id: 1472493483.b6eb727944e8fffc8c9b9e2ee97944007a3cc850.gokturk@gentoo
1 commit: b6eb727944e8fffc8c9b9e2ee97944007a3cc850
2 Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 17:58:03 2016 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 17:58:03 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=b6eb7279
7
8 ebuild-writing/users-and-groups: clarify the language wrt sandbox in pkg_setup.
9
10 pkg_setup is not sandbox safe, it's sandbox-disabled.
11
12 Reported-By: David Seifert <soap <AT> gentoo.org>
13
14 ebuild-writing/users-and-groups/text.xml | 6 ++++--
15 1 file changed, 4 insertions(+), 2 deletions(-)
16
17 diff --git a/ebuild-writing/users-and-groups/text.xml b/ebuild-writing/users-and-groups/text.xml
18 index 5030318..e1d0fcd 100644
19 --- a/ebuild-writing/users-and-groups/text.xml
20 +++ b/ebuild-writing/users-and-groups/text.xml
21 @@ -8,8 +8,10 @@
22 If your ebuild requires a user or group to be added for a daemon, for example,
23 this should be performed via the functions available in <c>user.eclass</c>.
24 Regardless of whether you are adding a group or a user, this should be performed
25 -in the <c>pkg_setup</c> function: <c>pkg_setup</c> is sandbox-safe,
26 -is called before the compile process so a build that requires the user to exist will
27 +in the <c>pkg_setup</c> phase function. <c>pkg_setup</c> is called
28 +before the compile process, with
29 +<uri link="::general-concepts/sandbox">sandbox</uri>
30 +disabled, so a build that requires the user to exist will
31 have it, and is also called for both binary and source packages. You may also
32 use the <c>pkg_preinst</c> or <c>pkg_postinst</c> functions for user creation, if
33 the user is not required during or before <c>src_install</c>.