Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] [PATCH 21/22] EAPI 6 has get_libdir.
Date: Thu, 15 Oct 2015 10:51:07
Message-Id: 1444906221-30505-22-git-send-email-ulm@gentoo.org
In Reply to: [gentoo-pms] EAPI 6 draft for review by "Ulrich Müller"
1 From: Michał Górny <mgorny@g.o>
2
3 Bug: 463586
4 ---
5 eapi-differences.tex | 4 ++++
6 pkg-mgr-commands.tex | 31 +++++++++++++++++++++++++++++++
7 2 files changed, 35 insertions(+)
8
9 diff --git a/eapi-differences.tex b/eapi-differences.tex
10 index 452349e..b5fc01e 100644
11 --- a/eapi-differences.tex
12 +++ b/eapi-differences.tex
13 @@ -237,6 +237,9 @@ Controllable compression & \compactfeatureref{docompress} &
14 \t{einstalldocs} & \compactfeatureref{einstalldocs} &
15 No & No & No & No & Yes \\
16
17 +\t{get\_libdir} & \compactfeatureref{get-libdir} &
18 + No & No & No & No & Yes \\
19 +
20 File mtimes preserved & \compactfeatureref{mtime-preserve} &
21 Undefined & Yes & Yes & Yes & Yes \\
22
23 @@ -358,6 +361,7 @@ EAPI 6 is EAPI 5 with the following changes:
24 \item \t{unpack} supports \t{.txz}, \featureref{unpack-extensions}.
25 \item \t{unpack} matches filename extensions case-insensitively, \featureref{unpack-ignore-case}.
26 \item \t{einstalldocs} support, \featureref{einstalldocs}.
27 +\item \t{get\_libdir} support, \featureref{get-libdir}.
28 \end{compactitem}
29
30 \ChangeWhenAddingAnEAPI{6}
31 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
32 index cf1abf7..c89c807 100644
33 --- a/pkg-mgr-commands.tex
34 +++ b/pkg-mgr-commands.tex
35 @@ -925,6 +925,10 @@ has returned.
36 Algorithm~\ref{alg:einstalldocs}. If called using \t{nonfatal} and any of the called commands
37 returns a non-zero exit status, returns immediately with the same exit status. Only available
38 in EAPIs listed in table~\ref{tab:einstalldocs} as supporting \t{einstalldocs}.
39 +
40 +\item[get\_libdir] \featurelabel{get-libdir} Prints the libdir name obtained according to
41 + Algorithm~\ref{alg:get-libdir}. Only available in EAPIs listed in table~\ref{tab:get-libdir}
42 + as supporting \t{get\_libdir}.
43 \end{description}
44
45 \begin{algorithm}
46 @@ -955,6 +959,20 @@ has returned.
47 \end{algorithmic}
48 \end{algorithm}
49
50 +\begin{algorithm}
51 +\caption{\t{get\_libdir} logic} \label{alg:get-libdir}
52 +\begin{algorithmic}[1]
53 +\STATE let libdir=lib
54 +\IF{the ABI environment variable is set}
55 + \STATE let libvar=LIBDIR\_\$ABI
56 + \IF{the environment variable named by libvar is set}
57 + \STATE let libdir=the value of the variable named by libvar
58 + \ENDIF
59 +\ENDIF
60 +\STATE print the value of libdir
61 +\end{algorithmic}
62 +\end{algorithm}
63 +
64 \ChangeWhenAddingAnEAPI{6}
65 \begin{centertable}{EAPIs supporting the \t{default} function}
66 \label{tab:default-function-table}
67 @@ -983,6 +1001,19 @@ has returned.
68 \end{tabular}
69 \end{centertable}
70
71 +\begin{centertable}{EAPIs supporting \t{get\_libdir}}
72 + \label{tab:get-libdir}
73 + \begin{tabular}{ l l }
74 + \toprule
75 + \multicolumn{1}{c}{\textbf{EAPI}} &
76 + \multicolumn{1}{c}{\textbf{Supports \t{get\_libdir}?}} \\
77 + \midrule
78 + 0, 1, 2, 3, 4, 5 & No \\
79 + 6 & Yes \\
80 + \bottomrule
81 + \end{tabular}
82 +\end{centertable}
83 +
84 \subsubsection{Debug Commands}
85 The following commands are available for debugging. Normally all of these commands should be no ops;
86 a package manager may provide a special debug mode where these commands instead do something.
87 --
88 2.6.1