Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-7 commit in: /
Date: Thu, 28 Sep 2017 20:53:25
Message-Id: 1506631125.8052e3a1bc25ddd67ad83d8cc0ad36626578ba84.mgorny@gentoo
1 commit: 8052e3a1bc25ddd67ad83d8cc0ad36626578ba84
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 17 21:23:58 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 28 20:38:45 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=8052e3a1
7
8 EAPI 7 has SYSROOT and ESYSROOT
9
10 Bug: https://bugs.gentoo.org/317337
11
12 eapi-differences.tex | 4 ++++
13 ebuild-env-vars.tex | 47 +++++++++++++++++++++++++++++++++--------------
14 2 files changed, 37 insertions(+), 14 deletions(-)
15
16 diff --git a/eapi-differences.tex b/eapi-differences.tex
17 index 9f39934..f3c68f6 100644
18 --- a/eapi-differences.tex
19 +++ b/eapi-differences.tex
20 @@ -41,6 +41,9 @@ of this document for a complete table of previous EAPIs.
21 \bottomrule
22 \endlastfoot
23
24 +\t{SYSROOT}, \t{ESYSROOT} & \compactfeatureref{sysroot} &
25 + No & No & No & No & Yes \\
26 +
27 GNU patch version & \compactfeatureref{gnu-patch} &
28 Any & Any & Any & Any & 2.7 \\
29
30 @@ -404,6 +407,7 @@ EAPI 7 is EAPI 6 with the following changes:
31 \item \t{ROOT}, \t{EROOT}, \t{D}, \t{ED} no longer end with a trailing slash,
32 \featureref{trailing-slash}.
33 \item \t{patch} is compatible with GNU patch 2.7, \featureref{gnu-patch}.
34 +\item \t{SYSROOT} and \t{ESYSROOT} added, \featureref{sysroot}.
35 \end{compactitem}
36
37 \ChangeWhenAddingAnEAPI{7}
38
39 diff --git a/ebuild-env-vars.tex b/ebuild-env-vars.tex
40 index fe61ac5..e24a065 100644
41 --- a/ebuild-env-vars.tex
42 +++ b/ebuild-env-vars.tex
43 @@ -130,6 +130,20 @@ variable.
44 See also the \t{EPREFIX} variable. Only for EAPIs listed
45 in table~\ref{tab:offset-env-vars-table} as supporting \t{EROOT}. The presence of a trailing
46 slash EAPI-dependent as listed in table~\ref{tab:trailing-slash}. \\
47 +\t{SYSROOT} &
48 + \t{src_*} &
49 + No &
50 + \featurelabel{sysroot} The absolute path to the root directory containing build dependencies
51 + satisfied by \t{DEPEND}. Only for EAPIs listed in table~\ref{tab:added-env-vars-table}
52 + as supporting \t{SYSROOT}. The presence of a trailing slash EAPI-dependent as listed
53 + in table~\ref{tab:trailing-slash}. \\
54 +\t{ESYSROOT} &
55 + \t{src_*} &
56 + No &
57 + Contains the concatenation of the paths in \t{SYSROOT} and \t{EPREFIX} variables,
58 + for convenience. See also the \t{EPREFIX} variable. Only for EAPIs listed
59 + in table~\ref{tab:offset-env-vars-table} as supporting \t{ESYSROOT}. The presence of a trailing
60 + slash EAPI-dependent as listed in table~\ref{tab:trailing-slash}. \\
61 \t{T} &
62 All &
63 Partially\footnote{Consistent and preserved across a single connected sequence of install or
64 @@ -239,17 +253,19 @@ variable.
65 \ChangeWhenAddingAnEAPI{7}
66 \begin{centertable}{EAPIs supporting various added env variables}
67 \label{tab:added-env-vars-table}
68 - \begin{tabular}{lllll}
69 + \begin{tabular}{llllll}
70 \toprule
71 \multicolumn{1}{c}{\textbf{EAPI}} &
72 \multicolumn{1}{c}{\textbf{\t{MERGE_TYPE}?}} &
73 \multicolumn{1}{P{6em}}{\textbf{\t{REPLACING_VERSIONS}?}} &
74 \multicolumn{1}{P{6em}}{\textbf{\t{REPLACED_BY_VERSION}?}} &
75 - \multicolumn{1}{P{6em}}{\textbf{\t{EBUILD_PHASE_FUNC}?}} \\
76 + \multicolumn{1}{P{6em}}{\textbf{\t{EBUILD_PHASE_FUNC}?}} &
77 + \multicolumn{1}{P{6em}}{\textbf{\t{SYSROOT}?}} \\
78 \midrule
79 - 0, 1, 2, 3 & No & No & No & No \\
80 - 4 & Yes & Yes & Yes & No \\
81 - 5, 6, 7 & Yes & Yes & Yes & Yes \\
82 + 0, 1, 2, 3 & No & No & No & No & No \\
83 + 4 & Yes & Yes & Yes & No & No \\
84 + 5, 6 & Yes & Yes & Yes & Yes & No \\
85 + 7 & Yes & Yes & Yes & Yes & Yes \\
86 \bottomrule
87 \end{tabular}
88 \end{centertable}
89 @@ -272,15 +288,17 @@ variable.
90 \ChangeWhenAddingAnEAPI{7}
91 \begin{centertable}{EAPIs supporting offset-prefix env variables}
92 \label{tab:offset-env-vars-table}
93 - \begin{tabular}{llll}
94 + \begin{tabular}{lllll}
95 \toprule
96 \multicolumn{1}{c}{\textbf{EAPI}} &
97 \multicolumn{1}{c}{\textbf{\t{EPREFIX}?}} &
98 \multicolumn{1}{c}{\textbf{\t{EROOT}?}} &
99 - \multicolumn{1}{c}{\textbf{\t{ED}?}} \\
100 + \multicolumn{1}{c}{\textbf{\t{ED}?}} &
101 + \multicolumn{1}{c}{\textbf{\t{ESYSROOT}?}} \\
102 \midrule
103 - 0, 1, 2 & No & No & No \\
104 - 3, 4, 5, 6, 7 & Yes & Yes & Yes \\
105 + 0, 1, 2 & No & No & No & No \\
106 + 3, 4, 5, 6 & Yes & Yes & Yes & No \\
107 + 7 & Yes & Yes & Yes & Yes \\
108 \bottomrule
109 \end{tabular}
110 \end{centertable}
111 @@ -442,16 +460,17 @@ If the path specifies the system root directory, it will be empty.
112 \ChangeWhenAddingAnEAPI{7}
113 \begin{centertable}{Variables that always or never end with a trailing slash}
114 \label{tab:trailing-slash}
115 - \begin{tabular}{lll}
116 + \begin{tabular}{llll}
117 \toprule
118 \multicolumn{1}{c}{\textbf{EAPI}} &
119 - \multicolumn{2}{c}{\textbf{Ends with a trailing slash?}} \\
120 + \multicolumn{3}{c}{\textbf{Ends with a trailing slash?}} \\
121 &
122 \t{ROOT}, \t{EROOT} &
123 - \t{D}, \t{ED} \\
124 + \t{D}, \t{ED} &
125 + \t{SYSROOT}, \t{ESYSROOT} \\
126 \midrule
127 - 0, 1, 2, 3, 4, 5, 6 & always & always \\
128 - 7 & never & never \\
129 + 0, 1, 2, 3, 4, 5, 6 & always & always & n/a \\
130 + 7 & never & never & never \\
131 \bottomrule
132 \end{tabular}
133 \end{centertable}