From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C284513888F for ; Thu, 15 Oct 2015 10:51:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E386B21C04B; Thu, 15 Oct 2015 10:50:29 +0000 (UTC) Received: from a1www.kph.uni-mainz.de (a1www.kph.uni-mainz.de [134.93.134.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B2B121C04B for ; Thu, 15 Oct 2015 10:50:28 +0000 (UTC) Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.9/8.14.7) with ESMTP id t9FAoRpZ024217 for ; Thu, 15 Oct 2015 12:50:27 +0200 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.8/8.14.2) with ESMTP id t9FAoQ7t030648 for ; Thu, 15 Oct 2015 12:50:26 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.8/8.14.8/Submit) id t9FAoQmF030647 for gentoo-pms@lists.gentoo.org; Thu, 15 Oct 2015 12:50:26 +0200 X-Authentication-Warning: a1i15.kph.uni-mainz.de: ulm set sender to ulm@gentoo.org using -f From: =?UTF-8?q?Ulrich=20M=C3=BCller?= To: gentoo-pms@lists.gentoo.org Subject: [gentoo-pms] [PATCH 21/22] EAPI 6 has get_libdir. Date: Thu, 15 Oct 2015 12:50:20 +0200 Message-Id: <1444906221-30505-22-git-send-email-ulm@gentoo.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1444906221-30505-1-git-send-email-ulm@gentoo.org> References: <1444906221-30505-1-git-send-email-ulm@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Package Manager Specification discussions X-BeenThere: gentoo-pms@gentoo.org X-BeenThere: gentoo-pms@lists.gentoo.org Reply-To: gentoo-pms@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: f6184e82-f27a-4a9d-88d9-7144770d5d4d X-Archives-Hash: c9e808044eab1fb8243c4dae9fbbb27a From: Michał Górny Bug: 463586 --- eapi-differences.tex | 4 ++++ pkg-mgr-commands.tex | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/eapi-differences.tex b/eapi-differences.tex index 452349e..b5fc01e 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -237,6 +237,9 @@ Controllable compression & \compactfeatureref{docompress} & \t{einstalldocs} & \compactfeatureref{einstalldocs} & No & No & No & No & Yes \\ +\t{get\_libdir} & \compactfeatureref{get-libdir} & + No & No & No & No & Yes \\ + File mtimes preserved & \compactfeatureref{mtime-preserve} & Undefined & Yes & Yes & Yes & Yes \\ @@ -358,6 +361,7 @@ EAPI 6 is EAPI 5 with the following changes: \item \t{unpack} supports \t{.txz}, \featureref{unpack-extensions}. \item \t{unpack} matches filename extensions case-insensitively, \featureref{unpack-ignore-case}. \item \t{einstalldocs} support, \featureref{einstalldocs}. +\item \t{get\_libdir} support, \featureref{get-libdir}. \end{compactitem} \ChangeWhenAddingAnEAPI{6} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index cf1abf7..c89c807 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -925,6 +925,10 @@ has returned. Algorithm~\ref{alg:einstalldocs}. If called using \t{nonfatal} and any of the called commands returns a non-zero exit status, returns immediately with the same exit status. Only available in EAPIs listed in table~\ref{tab:einstalldocs} as supporting \t{einstalldocs}. + +\item[get\_libdir] \featurelabel{get-libdir} Prints the libdir name obtained according to + Algorithm~\ref{alg:get-libdir}. Only available in EAPIs listed in table~\ref{tab:get-libdir} + as supporting \t{get\_libdir}. \end{description} \begin{algorithm} @@ -955,6 +959,20 @@ has returned. \end{algorithmic} \end{algorithm} +\begin{algorithm} +\caption{\t{get\_libdir} logic} \label{alg:get-libdir} +\begin{algorithmic}[1] +\STATE let libdir=lib +\IF{the ABI environment variable is set} + \STATE let libvar=LIBDIR\_\$ABI + \IF{the environment variable named by libvar is set} + \STATE let libdir=the value of the variable named by libvar + \ENDIF +\ENDIF +\STATE print the value of libdir +\end{algorithmic} +\end{algorithm} + \ChangeWhenAddingAnEAPI{6} \begin{centertable}{EAPIs supporting the \t{default} function} \label{tab:default-function-table} @@ -983,6 +1001,19 @@ has returned. \end{tabular} \end{centertable} +\begin{centertable}{EAPIs supporting \t{get\_libdir}} + \label{tab:get-libdir} + \begin{tabular}{ l l } + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{1}{c}{\textbf{Supports \t{get\_libdir}?}} \\ + \midrule + 0, 1, 2, 3, 4, 5 & No \\ + 6 & Yes \\ + \bottomrule + \end{tabular} +\end{centertable} + \subsubsection{Debug Commands} The following commands are available for debugging. Normally all of these commands should be no ops; a package manager may provide a special debug mode where these commands instead do something. -- 2.6.1