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