Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>, Mike Frysinger <vapier@g.o>
Subject: [gentoo-pms] [PATCH] ebuild-format.tex: Document that umask is set to 022
Date: Fri, 09 Sep 2022 04:38:39
Message-Id: 20220909043755.31357-1-ulm@gentoo.org
1 Portage has been doing this since 2001.
2
3 Closes: https://bugs.gentoo.org/868669
4 Reported-by: Mike Frysinger <vapier@g.o>
5 Signed-off-by: Ulrich Müller <ulm@g.o>
6 ---
7 ebuild-format.tex | 3 +++
8 1 file changed, 3 insertions(+)
9
10 diff --git a/ebuild-format.tex b/ebuild-format.tex
11 index 25ba28e..cf06668 100644
12 --- a/ebuild-format.tex
13 +++ b/ebuild-format.tex
14 @@ -7,6 +7,9 @@ table~\ref{tab:bash-version}, or any later version. If possible, the package man
15 the shell's compatibility level to the exact version specified. It must ensure that any such
16 compatibility settings (e.\,g.\ the \t{BASH_COMPAT} variable) are not exported to external programs.
17
18 +The file creation mask (\t{umask}) is set to \t{022} in the shell execution environment. It is
19 +\emph{not} saved between phase functions but always reset to this initial value.
20 +
21 \featurelabel{failglob} For EAPIs listed such in table~\ref{tab:bash-version}, the \t{failglob}
22 option of bash is set in the global scope of ebuilds. If set, failed pattern matches during
23 filename expansion result in an error when the ebuild is being sourced.
24 --
25 2.37.3

Replies