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: Sun, 30 Aug 2015 19:03:40
Message-Id: 1440961053.f4e3a7117b9a05910b57a1235f113678c395e7cb.ulm@gentoo
1 commit: f4e3a7117b9a05910b57a1235f113678c395e7cb
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: Sun Aug 30 18:57:33 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=f4e3a711
7
8 EAPI 6 enables failglob in global scope.
9
10 See bug 463822.
11
12 eapi-differences.tex | 4 ++++
13 ebuild-env-commands.tex | 15 +++++++++++----
14 2 files changed, 15 insertions(+), 4 deletions(-)
15
16 diff --git a/eapi-differences.tex b/eapi-differences.tex
17 index 3f37c19..616aa06 100644
18 --- a/eapi-differences.tex
19 +++ b/eapi-differences.tex
20 @@ -145,6 +145,9 @@ Profile \t{IUSE} injection & \compactfeatureref{profile-iuse-inject} &
21 Bash version & \compactfeatureref{bash-version} &
22 3.2 & 3.2 & 3.2 & 3.2 & 4.2 \\
23
24 +\t{failglob} in global scope & \compactfeatureref{failglob} &
25 + No & No & No & No & Yes \\
26 +
27 \t{find} is GNU? & \compactfeatureref{gnu-find} &
28 Undefined & Undefined & Undefined & Yes & Yes \\
29
30 @@ -312,6 +315,7 @@ EAPI 6 is EAPI 5 with the following changes:
31 \begin{compactitem}
32 \item Profile \t{package*} and \t{use*} can be directories, \featureref{profile-file-dirs}.
33 \item Bash version is 4.2, \featureref{bash-version}.
34 +\item \t{failglob} is enabled in global scope, \featureref{failglob}.
35 \end{compactitem}
36
37 \ChangeWhenAddingAnEAPI{6}
38
39 diff --git a/ebuild-env-commands.tex b/ebuild-env-commands.tex
40 index 1e8a5c3..4439d14 100644
41 --- a/ebuild-env-commands.tex
42 +++ b/ebuild-env-commands.tex
43 @@ -33,18 +33,25 @@ The following commands must always be available in the ebuild environment:
44 table~\ref{tab:system-commands-table} as requiring GNU find.
45 \end{compactitem}
46
47 +\subsubsection{Shell options}
48 +
49 +\featurelabel{failglob} For EAPIs listed such in table~\ref{tab:system-commands-table}, the
50 +\t{failglob} option of bash is set in the global scope of ebuilds. If set, failed pattern matches
51 +during filename expansion result in an error when the ebuild is being sourced.
52 +
53 \ChangeWhenAddingAnEAPI{6}
54 \begin{centertable}{System commands for EAPIs}
55 \label{tab:system-commands-table}
56 - \begin{tabular}{ l l l }
57 + \begin{tabular}{ l l l l }
58 \toprule
59 \multicolumn{1}{c}{\textbf{EAPI}} &
60 \multicolumn{1}{c}{\textbf{Bash version}} &
61 + \multicolumn{1}{c}{\textbf{\t{failglob} in global scope?}} &
62 \multicolumn{1}{c}{\textbf{GNU \t{find}?}} \\
63 \midrule
64 - 0, 1, 2, 3, 4 & 3.2 & Undefined \\
65 - 5 & 3.2 & Yes \\
66 - 6 & 4.2 & Yes \\
67 + 0, 1, 2, 3, 4 & 3.2 & No & Undefined \\
68 + 5 & 3.2 & No & Yes \\
69 + 6 & 4.2 & Yes & Yes \\
70 \bottomrule
71 \end{tabular}
72 \end{centertable}