Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-7 commit in: /
Date: Sat, 24 Feb 2018 12:58:54
Message-Id: 1519476924.250180442377dc45ba37884a62f174ba6877e5a2.ulm@gentoo
1 commit: 250180442377dc45ba37884a62f174ba6877e5a2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 29 14:02:49 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 12:55:24 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=25018044
7
8 EAPI 7 bans dolib and libopts.
9
10 Bug: https://bugs.gentoo.org/630416
11
12 eapi-differences.tex | 7 +++++++
13 pkg-mgr-commands.tex | 22 ++++++++++++++--------
14 2 files changed, 21 insertions(+), 8 deletions(-)
15
16 diff --git a/eapi-differences.tex b/eapi-differences.tex
17 index 12ece88..7bddf41 100644
18 --- a/eapi-differences.tex
19 +++ b/eapi-differences.tex
20 @@ -224,6 +224,12 @@ Most utilities die & \compactfeatureref{die-on-failure} &
21 \t{dohtml} & \compactfeatureref{banned-commands} &
22 Yes & Yes & Yes & Yes & Banned \\
23
24 +\t{dolib} & \compactfeatureref{banned-commands} &
25 + Yes & Yes & Yes & Yes & Banned \\
26 +
27 +\t{libopts} & \compactfeatureref{banned-commands} &
28 + Yes & Yes & Yes & Yes & Banned \\
29 +
30 Query command options & \compactfeatureref{pm-query-options} &
31 None & None & \t{-{}-host-root} & \t{-{}-host-root} & \t{-b}, \t{-d}, \t{-r} \\
32
33 @@ -450,6 +456,7 @@ EAPI 7 is EAPI 6 with the following changes:
34 \item \t{patch} is compatible with GNU patch 2.7, \featureref{gnu-patch}.
35 \item \t{nonfatal} is both a shell function and an external command, \featureref{nonfatal}.
36 \item \t{dohtml} banned, \featureref{banned-commands}.
37 +\item \t{dolib} and \t{libopts} banned, \featureref{banned-commands}.
38 \end{compactitem}
39
40 \ChangeWhenAddingAnEAPI{7}
41
42 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
43 index 82e48ca..7b01ab8 100644
44 --- a/pkg-mgr-commands.tex
45 +++ b/pkg-mgr-commands.tex
46 @@ -56,20 +56,22 @@ called, the package manager must abort the build process indicating an error.
47 \ChangeWhenAddingAnEAPI{7}
48 \begin{centertable}{Banned commands}
49 \label{tab:banned-commands-table}
50 - \begin{tabular}{lllll}
51 + \begin{tabular}{lllllll}
52 \toprule
53 \multicolumn{1}{c}{\textbf{EAPI}} &
54 - \multicolumn{4}{c}{\textbf{Command banned?}} \\
55 + \multicolumn{6}{c}{\textbf{Command banned?}} \\
56 \multicolumn{1}{c}{} &
57 \multicolumn{1}{c}{\textbf{\t{dohard}}} &
58 \multicolumn{1}{c}{\textbf{\t{dosed}}} &
59 \multicolumn{1}{c}{\textbf{\t{einstall}}} &
60 - \multicolumn{1}{c}{\textbf{\t{dohtml}}} \\
61 + \multicolumn{1}{c}{\textbf{\t{dohtml}}} &
62 + \multicolumn{1}{c}{\textbf{\t{dolib}}} &
63 + \multicolumn{1}{c}{\textbf{\t{libopts}}} \\
64 \midrule
65 - 0, 1, 2, 3 & No & No & No & No \\
66 - 4, 5 & Yes & Yes & No & No \\
67 - 6 & Yes & Yes & Yes & No \\
68 - 7 & Yes & Yes & Yes & Yes \\
69 + 0, 1, 2, 3 & No & No & No & No & No & No \\
70 + 4, 5 & Yes & Yes & No & No & No & No \\
71 + 6 & Yes & Yes & Yes & No & No & No \\
72 + 7 & Yes & Yes & Yes & Yes & Yes & Yes \\
73 \bottomrule
74 \end{tabular}
75 \end{centertable}
76 @@ -489,7 +491,9 @@ can be extended or reduced (see below). The options that can be passed to \t{doh
77 \item[dolib.so] As for \t{dolib.a} except each file is installed with mode \t{0755}.
78
79 \item[dolib] As for \t{dolib.a} except that the default install mode can be overriden with
80 - the \t{install} options set by the most recent \t{libopts} call.
81 + the \t{install} options set by the most recent \t{libopts} call. In EAPIs listed
82 + in table~\ref{tab:banned-commands-table}, this command is banned as per
83 + section~\ref{sec:banned-commands}.
84
85 \begin{algorithm}
86 \caption{Determining the library directory} \label{alg:ebuild-libdir}
87 @@ -685,6 +689,8 @@ has returned.
88 \item[exeopts] Sets the options passed by \t{doexe} et al.\ to the \t{install} command.
89
90 \item[libopts] Sets the options passed by \t{dolib} et al.\ to the \t{install} command.
91 + In EAPIs listed in table~\ref{tab:banned-commands-table}, this command is banned as
92 + per section~\ref{sec:banned-commands}.
93
94 \end{description}