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] EAPI 6: get_libdir
Date: Mon, 16 Feb 2015 15:51:37
Message-Id: 1424101872-4719-1-git-send-email-mgorny@gentoo.org
In Reply to: Re: [gentoo-pms] [PATCH] EAPI 6: get_libdir by Ulrich Mueller
1 ---
2 Moved to misc commands
3 ---
4 eapi-differences.tex | 5 ++++-
5 pkg-mgr-commands.tex | 37 ++++++++++++++++++++++++++++++++++++-
6 2 files changed, 40 insertions(+), 2 deletions(-)
7
8 diff --git a/eapi-differences.tex b/eapi-differences.tex
9 index 6a7aa00..abfb663 100644
10 --- a/eapi-differences.tex
11 +++ b/eapi-differences.tex
12 @@ -201,6 +201,9 @@ Controllable compression & \compactfeatureref{docompress} &
13 File mtimes preserved & \compactfeatureref{mtime-preserve} &
14 Undefined & Yes & Yes & Yes & Yes \\
15
16 +\t{get\_libdir} & \compactfeatureref{get-libdir} &
17 + No & No & No & No & Yes \\
18 +
19 \end{longtable}
20 \end{landscape}
21
22 @@ -304,7 +307,7 @@ EAPI 5 is EAPI 4 with the following changes:
23 EAPI 6 is EAPI 5 with the following changes:
24
25 \begin{compactitem}
26 -\item None
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 929d0fe..a00350e 100644
33 --- a/pkg-mgr-commands.tex
34 +++ b/pkg-mgr-commands.tex
35 @@ -834,7 +834,6 @@ has returned.
36 section~\ref{sec:default-phase-funcs}). Must not be called if the \t{default\_} function
37 does not exist for the current phase in the current EAPI. Only available in EAPIs listed in
38 table~\ref{tab:default-function-table}.
39 -\end{description}
40
41 \ChangeWhenAddingAnEAPI{6}
42 \begin{centertable}{EAPIs supporting the \t{default} function} \label{tab:default-function-table}
43 @@ -854,6 +853,42 @@ has returned.
44 \end{tabular}
45 \end{centertable}
46
47 +\item[get\_libdir] \featurelabel{get-libdir}
48 + Prints the libdir name obtained according to Algorithm~\ref{alg:get-libdir}.
49 + Only available in EAPIs listed in table~\ref{tab:get-libdir-table} as supporting \t{get\_libdir}.
50 +\end{description}
51 +
52 +\begin{algorithm}
53 +\caption{get\_libdir logic} \label{alg:get-libdir}
54 +\begin{algorithmic}[1]
55 +\STATE let libdir=lib
56 +\IF{the ABI environment variable is set}
57 + \STATE let libvar=LIBDIR\_\$ABI
58 + \IF{the environment variable named by libvar is set}
59 + \STATE let libdir=the value of the variable named by libvar
60 + \ENDIF
61 +\ENDIF
62 +\STATE print the value of libdir
63 +\end{algorithmic}
64 +\end{algorithm}
65 +\ChangeWhenAddingAnEAPI{6}
66 +\begin{centertable}{EAPIs supporting \t{get\_libdir}} \label{tab:get-libdir-table}
67 + \begin{tabular}{ l l }
68 + \toprule
69 + \multicolumn{1}{c}{\textbf{EAPI}} &
70 + \multicolumn{1}{c}{\textbf{Supports \t{get\_libdir}?}} \\
71 + \midrule
72 + \t{0} & No \\
73 + \t{1} & No \\
74 + \t{2} & No \\
75 + \t{3} & No \\
76 + \t{4} & No \\
77 + \t{5} & No \\
78 + \t{6} & Yes \\
79 + \bottomrule
80 + \end{tabular}
81 +\end{centertable}
82 +
83 \subsubsection{Debug Commands}
84 The following commands are available for debugging. Normally all of these commands should be no ops;
85 a package manager may provide a special debug mode where these commands instead do something.
86 --
87 2.3.0

Replies

Subject Author
Re: [gentoo-pms] [PATCH] EAPI 6: get_libdir Ulrich Mueller <ulm@g.o>