Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] [PATCH 07/22] EAPI 6 enables failglob in global scope.
Date: Thu, 15 Oct 2015 10:50:37
Message-Id: 1444906221-30505-8-git-send-email-ulm@gentoo.org
In Reply to: [gentoo-pms] EAPI 6 draft for review by "Ulrich Müller"
1 Bug: 463822
2 ---
3 eapi-differences.tex | 4 ++++
4 ebuild-env-commands.tex | 15 +++++++++++----
5 2 files changed, 15 insertions(+), 4 deletions(-)
6
7 diff --git a/eapi-differences.tex b/eapi-differences.tex
8 index 3f37c19..616aa06 100644
9 --- a/eapi-differences.tex
10 +++ b/eapi-differences.tex
11 @@ -145,6 +145,9 @@ Profile \t{IUSE} injection & \compactfeatureref{profile-iuse-inject} &
12 Bash version & \compactfeatureref{bash-version} &
13 3.2 & 3.2 & 3.2 & 3.2 & 4.2 \\
14
15 +\t{failglob} in global scope & \compactfeatureref{failglob} &
16 + No & No & No & No & Yes \\
17 +
18 \t{find} is GNU? & \compactfeatureref{gnu-find} &
19 Undefined & Undefined & Undefined & Yes & Yes \\
20
21 @@ -312,6 +315,7 @@ EAPI 6 is EAPI 5 with the following changes:
22 \begin{compactitem}
23 \item Profile \t{package*} and \t{use*} can be directories, \featureref{profile-file-dirs}.
24 \item Bash version is 4.2, \featureref{bash-version}.
25 +\item \t{failglob} is enabled in global scope, \featureref{failglob}.
26 \end{compactitem}
27
28 \ChangeWhenAddingAnEAPI{6}
29 diff --git a/ebuild-env-commands.tex b/ebuild-env-commands.tex
30 index 1e8a5c3..4439d14 100644
31 --- a/ebuild-env-commands.tex
32 +++ b/ebuild-env-commands.tex
33 @@ -33,18 +33,25 @@ The following commands must always be available in the ebuild environment:
34 table~\ref{tab:system-commands-table} as requiring GNU find.
35 \end{compactitem}
36
37 +\subsubsection{Shell options}
38 +
39 +\featurelabel{failglob} For EAPIs listed such in table~\ref{tab:system-commands-table}, the
40 +\t{failglob} option of bash is set in the global scope of ebuilds. If set, failed pattern matches
41 +during filename expansion result in an error when the ebuild is being sourced.
42 +
43 \ChangeWhenAddingAnEAPI{6}
44 \begin{centertable}{System commands for EAPIs}
45 \label{tab:system-commands-table}
46 - \begin{tabular}{ l l l }
47 + \begin{tabular}{ l l l l }
48 \toprule
49 \multicolumn{1}{c}{\textbf{EAPI}} &
50 \multicolumn{1}{c}{\textbf{Bash version}} &
51 + \multicolumn{1}{c}{\textbf{\t{failglob} in global scope?}} &
52 \multicolumn{1}{c}{\textbf{GNU \t{find}?}} \\
53 \midrule
54 - 0, 1, 2, 3, 4 & 3.2 & Undefined \\
55 - 5 & 3.2 & Yes \\
56 - 6 & 4.2 & Yes \\
57 + 0, 1, 2, 3, 4 & 3.2 & No & Undefined \\
58 + 5 & 3.2 & No & Yes \\
59 + 6 & 4.2 & Yes & Yes \\
60 \bottomrule
61 \end{tabular}
62 \end{centertable}
63 --
64 2.6.1