Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH 10/28] EAPI 7 requires GNU patch 2.7.
Date: Wed, 04 Oct 2017 20:47:42
Message-Id: 20171004204712.10391-11-mgorny@gentoo.org
In Reply to: [gentoo-pms] [PATCHES] EAPI 7, first draft for review by "Michał Górny"
1 Bug: https://bugs.gentoo.org/593786
2 ---
3 eapi-differences.tex | 4 ++++
4 ebuild-env-commands.tex | 15 +++++++++------
5 2 files changed, 13 insertions(+), 6 deletions(-)
6
7 diff --git a/eapi-differences.tex b/eapi-differences.tex
8 index 939c501..9f39934 100644
9 --- a/eapi-differences.tex
10 +++ b/eapi-differences.tex
11 @@ -41,6 +41,9 @@ of this document for a complete table of previous EAPIs.
12 \bottomrule
13 \endlastfoot
14
15 +GNU patch version & \compactfeatureref{gnu-patch} &
16 + Any & Any & Any & Any & 2.7 \\
17 +
18 Trailing slash in \t{ROOT}, \t{D}... & \compactfeatureref{trailing-slash} &
19 Yes & Yes & Yes & Yes & No \\
20
21 @@ -400,6 +403,7 @@ EAPI 7 is EAPI 6 with the following changes:
22 \item Output commands can no longer use stdout, \featureref{output-no-stdout}.
23 \item \t{ROOT}, \t{EROOT}, \t{D}, \t{ED} no longer end with a trailing slash,
24 \featureref{trailing-slash}.
25 +\item \t{patch} is compatible with GNU patch 2.7, \featureref{gnu-patch}.
26 \end{compactitem}
27
28 \ChangeWhenAddingAnEAPI{7}
29 diff --git a/ebuild-env-commands.tex b/ebuild-env-commands.tex
30 index 590f709..f5e1c07 100644
31 --- a/ebuild-env-commands.tex
32 +++ b/ebuild-env-commands.tex
33 @@ -26,7 +26,8 @@ The following commands must always be available in the ebuild environment:
34 page~\pageref{tab:bash-version}.
35 \item \t{sed} must be available, and must support all forms of invocations valid for GNU sed
36 version 4 or later.
37 -\item \t{patch} must be available, and must support all inputs valid for GNU patch.
38 +\item \featurelabel{gnu-patch} \t{patch} must be available, and must support all inputs valid
39 + for GNU patch, version as listed in table~\ref{tab:system-commands-table}.
40 \item \featurelabel{gnu-find} \t{find} and \t{xargs} must be available, and must support all forms
41 of invocations valid for GNU findutils version 4.4 or later. Only for EAPIs listed in
42 table~\ref{tab:system-commands-table} as requiring GNU find.
43 @@ -41,15 +42,17 @@ during filename expansion result in an error when the ebuild is being sourced.
44 \ChangeWhenAddingAnEAPI{7}
45 \begin{centertable}{System commands for EAPIs}
46 \label{tab:system-commands-table}
47 - \begin{tabular}{lll}
48 + \begin{tabular}{llll}
49 \toprule
50 \multicolumn{1}{c}{\textbf{EAPI}} &
51 \multicolumn{1}{c}{\textbf{GNU \t{find}?}} &
52 - \multicolumn{1}{c}{\textbf{\t{failglob} in global scope?}} \\
53 + \multicolumn{1}{c}{\textbf{\t{failglob} in global scope?}} &
54 + \multicolumn{1}{c}{\textbf{GNU patch version}} \\
55 \midrule
56 - 0, 1, 2, 3, 4 & Undefined & No \\
57 - 5 & Yes & No \\
58 - 6, 7 & Yes & Yes \\
59 + 0, 1, 2, 3, 4 & Undefined & No & Any \\
60 + 5 & Yes & No & Any \\
61 + 6 & Yes & Yes & Any \\
62 + 7 & Yes & Yes & 2.7 \\
63 \bottomrule
64 \end{tabular}
65 \end{centertable}
66 --
67 2.14.2