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 6C887138010 for ; Fri, 14 Sep 2012 06:15:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A83B21C024; Fri, 14 Sep 2012 06:14:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4C8BB21C024 for ; Fri, 14 Sep 2012 06:14:53 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8829F33D742 for ; Fri, 14 Sep 2012 06:14:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 10CABE5446 for ; Fri, 14 Sep 2012 06:14:50 +0000 (UTC) From: "Ulrich Mueller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Mueller" Message-ID: <1347517696.faaeeba5763814d2a7d0aa700209093cec791cf4.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: eapi-differences.tex pkg-mgr-commands.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Mueller X-VCS-Revision: faaeeba5763814d2a7d0aa700209093cec791cf4 X-VCS-Branch: master Date: Fri, 14 Sep 2012 06:14:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f189af12-c757-4472-922f-22cd45cb5599 X-Archives-Hash: 974f238effb20186cfadc7c3022a9467 commit: faaeeba5763814d2a7d0aa700209093cec791cf4 Author: Zac Medico gentoo org> AuthorDate: Thu Aug 30 17:37:49 2012 +0000 Commit: Ulrich Mueller gentoo org> CommitDate: Thu Sep 13 06:28:16 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=faaeeba5 EAPI 5 supports --host-root option for *_version See bug 401239 --- eapi-differences.tex | 5 +++++ pkg-mgr-commands.tex | 24 +++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index 876eec0..aeafb49 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -151,6 +151,9 @@ Most utilities die & \compactfeatureref{die-on-failure} & \t{dosed} & \compactfeatureref{banned-commands} & Yes & Yes & Yes & Yes & Banned & Banned \\ +Option \t{-{}-host-root} & \compactfeatureref{host-root-option} & + No & No & No & No & No & Yes \\ + \t{econf} arguments & \compactfeatureref{econf-options} & & & & & disable dependency tracking & disable dependency tracking, disable silent rules \\ @@ -278,6 +281,8 @@ EAPI 5 is EAPI 4 with the following changes: \item \t{EBUILD\_PHASE\_FUNC}, \featureref{ebuild-phase-func}. \item \t{USE} is calculated differently, \featureref{profile-iuse-injection}. \item \t{find} is guaranteed to be GNU, \featureref{gnu-find}. +\item \t{best\_version} and \t{has\_version} support the \t{-{}-host-root} option, + \featureref{host-root-option}. \item \t{econf} adds \t{-{}-disable-silent-rules}, \featureref{econf-options}. \item \t{new*} can read from standard input, \featureref{newfoo-stdin}. \end{compactitem} diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index 0818719..f99f30c 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -79,9 +79,13 @@ argument. Ebuilds must not run any of these commands once the current phase func \end{description} \subsubsection{Package manager query commands} -These commands are used to extract information about the host system. Ebuilds must not run any of +These commands are used to extract information about the system. Ebuilds must not run any of these commands in parallel with any other package manager command. Ebuilds must not run any of these commands once the current phase function has returned. + +\featurelabel{host-root-option} In EAPIs listed in table~\ref{tab:foo-version-host-root-table} as +supporting option \t{-{}-host-root}, this flag as the first argument will cause the query to apply +to the host root instead of \t{ROOT}. \begin{description} \item[has\_version] Takes exactly one package dependency specification as an argument. Returns true if a package matching the atom is installed in \t{ROOT}, and false otherwise. @@ -491,6 +495,24 @@ that can be passed to \t{dohtml} are as follows: \end{tabular} \end{centertable} +\ChangeWhenAddingAnEAPI{5} +\begin{centertable}{EAPIs supporting \t{-{}-host-root} for \t{*\_version} commands} + \label{tab:foo-version-host-root-table} + \begin{tabular}{ l l } + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{1}{c}{\textbf{\t{*\_version} supports \t{-{}-host-root}?}} \\ + \midrule + \t{0} & No \\ + \t{1} & No \\ + \t{2} & No \\ + \t{3} & No \\ + \t{4} & No \\ + \t{5} & Yes \\ + \bottomrule + \end{tabular} +\end{centertable} + \subsubsection{Commands affecting install destinations} The following commands are used to set the various destination trees, all relative to \t{\$\{ED\}} in offset-prefix aware EAPIs and relative to \t{\$\{D\}} in offset-prefix agnostic EAPIs, used by the