Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-6 commit in: /
Date: Tue, 03 Mar 2015 06:18:44
Message-Id: 1424333849.85c72a2ffd66f6b9d0d16f47989b6cc752955901.ulm@gentoo
1 commit: 85c72a2ffd66f6b9d0d16f47989b6cc752955901
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 16 12:46:40 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 19 08:17:29 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=85c72a2f
7
8 EAPI 6 enables failglob in global scope.
9
10 See bug 463822.
11
12 ---
13 eapi-differences.tex | 4 ++++
14 ebuild-env-commands.tex | 15 +++++++++++----
15 2 files changed, 15 insertions(+), 4 deletions(-)
16
17 diff --git a/eapi-differences.tex b/eapi-differences.tex
18 index 7854739..6fc115c 100644
19 --- a/eapi-differences.tex
20 +++ b/eapi-differences.tex
21 @@ -145,6 +145,9 @@ Profile \t{IUSE} injection & \compactfeatureref{profile-iuse-inject} &
22 Bash version & \compactfeatureref{bash-version} &
23 3.2 & 3.2 & 3.2 & 3.2 & 4.2 \\
24
25 +\t{failglob} in global scope & \compactfeatureref{failglob} &
26 + No & No & No & No & Yes \\
27 +
28 \t{find} is GNU? & \compactfeatureref{gnu-find} &
29 Undefined & Undefined & Undefined & Yes & Yes \\
30
31 @@ -312,6 +315,7 @@ EAPI 6 is EAPI 5 with the following changes:
32 \begin{compactitem}
33 \item Profile \t{package*} and \t{use*} can be directories, \featureref{profile-file-dirs}.
34 \item Bash version is 4.2, \featureref{bash-version}.
35 +\item \t{failglob} is enabled in global scope, \featureref{failglob}.
36 \end{compactitem}
37
38 \ChangeWhenAddingAnEAPI{6}
39
40 diff --git a/ebuild-env-commands.tex b/ebuild-env-commands.tex
41 index 9e41abe..ca6f5b3 100644
42 --- a/ebuild-env-commands.tex
43 +++ b/ebuild-env-commands.tex
44 @@ -33,18 +33,25 @@ The following commands must always be available in the ebuild environment:
45 table~\ref{tab:system-commands-table} as requiring GNU find.
46 \end{compactitem}
47
48 +\subsubsection{Shell options}
49 +
50 +\featurelabel{failglob} For EAPIs listed such in table~\ref{tab:system-commands-table}, the
51 +\t{failglob} option of bash is set in the global scope of ebuilds. If set, failed pattern matches
52 +during filename expansion result in an error when the ebuild is being sourced.
53 +
54 \ChangeWhenAddingAnEAPI{6}
55 \begin{centertable}{System commands for EAPIs}
56 \label{tab:system-commands-table}
57 - \begin{tabular}{ l l l }
58 + \begin{tabular}{ l l l l }
59 \toprule
60 \multicolumn{1}{c}{\textbf{EAPI}} &
61 \multicolumn{1}{c}{\textbf{Bash version}} &
62 + \multicolumn{1}{c}{\textbf{\t{failglob} in global scope?}} &
63 \multicolumn{1}{c}{\textbf{GNU \t{find}?}} \\
64 \midrule
65 - 0, 1, 2, 3, 4 & 3.2 & Undefined \\
66 - 5 & 3.2 & Yes \\
67 - 6 & 4.2 & Yes \\
68 + 0, 1, 2, 3, 4 & 3.2 & No & Undefined \\
69 + 5 & 3.2 & No & Yes \\
70 + 6 & 4.2 & Yes & Yes \\
71 \bottomrule
72 \end{tabular}
73 \end{centertable}