From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 40AAA1396D0 for ; Mon, 9 Oct 2017 17:31:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34DA9E0DAC; Mon, 9 Oct 2017 17:31:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE4DFE0DA6 for ; Mon, 9 Oct 2017 17:31:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6E30533BEC0 for ; Mon, 9 Oct 2017 17:31:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C526A909F for ; Mon, 9 Oct 2017 17:31:09 +0000 (UTC) From: "Ulrich Müller" 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 Müller" Message-ID: <1507568782.ab1881ea0543dde98f3c6a63398463a505308551.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-7 commit in: / X-VCS-Repository: proj/pms X-VCS-Files: eapi-differences.tex profiles.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: ab1881ea0543dde98f3c6a63398463a505308551 X-VCS-Branch: eapi-7 Date: Mon, 9 Oct 2017 17:31:09 +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: 7fbef067-52f6-4c32-a8e0-5944985d30bf X-Archives-Hash: 77e9a169d30b50f04a47e0ab1866622c commit: ab1881ea0543dde98f3c6a63398463a505308551 Author: Ulrich Müller gentoo org> AuthorDate: Sun Nov 29 23:01:54 2015 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon Oct 9 17:06:22 2017 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=ab1881ea EAPI 7 supports directories for profile files. Bug: https://bugs.gentoo.org/282296 eapi-differences.tex | 5 +++++ profiles.tex | 38 +++++++++++++++++++++++++++++++------- 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/eapi-differences.tex b/eapi-differences.tex index 0b41d71..c68fffa 100644 --- a/eapi-differences.tex +++ b/eapi-differences.tex @@ -44,6 +44,9 @@ of this document for a complete table of previous EAPIs. \t{package.mask} directory & \compactfeatureref{package-mask-dir} & No & No & No & No & Yes \\ +Profile files as directories & \compactfeatureref{profile-file-dirs} & + No & No & No & No & Yes \\ + Stable use masking/forcing & \compactfeatureref{stablemask} & No & No & Yes & Yes & Yes \\ @@ -377,6 +380,8 @@ EAPI 7 is EAPI 6 with the following changes: \begin{compactitem} \item \t{profiles/package.mask} can be a directory, \featureref{package-mask-dir}. +\item \t{package.mask}, \t{package.use}, \t{use.*} and \t{package.use.*} in a profile can be + directories, \featureref{profile-file-dirs}. \item \t{dohtml} banned, \featureref{banned-commands}. \end{compactitem} diff --git a/profiles.tex b/profiles.tex index 0d7164e..99e84ea 100644 --- a/profiles.tex +++ b/profiles.tex @@ -69,6 +69,27 @@ parent profile's list is taken, and the current profile's list appended. If any hyphen, then any lines previous to it whose contents are equal to the remainder of that line are removed from the list. Once again, blank lines and those beginning with a \# are discarded. +\featurelabel{profile-file-dirs} In EAPIs listed in table~\ref{tab:profile-file-dirs} as supporting +directories for profile files, any of the files \t{package.mask}, \t{package.use}, \t{use.*} and +\t{package.use.*} mentioned below can be a directory instead of a regular file. Files contained +in that directory, unless their name begins with a dot, will be concatenated in order of their +filename in the POSIX locale and the result will be processed as if it were a single file. +Any subdirectories will be ignored. + +\ChangeWhenAddingAnEAPI{7} +\begin{centertable}{EAPIs supporting directories for profile files} + \label{tab:profile-file-dirs} + \begin{tabular}{ll} + \toprule + \multicolumn{1}{c}{\textbf{EAPI}} & + \multicolumn{1}{c}{\textbf{Supports directories for profile files?}} \\ + \midrule + 0, 1, 2, 3, 4, 5, 6 & No \\ + 7 & Yes \\ + \bottomrule + \end{tabular} +\end{centertable} + \subsection{packages} The \t{packages} file is used to define the `system set' for this profile. After the above rules for inheritance and comments are applied, its lines must take one of two @@ -84,7 +105,8 @@ but is mentioned here for completeness. \subsection{package.mask} \t{package.mask} is used to prevent packages from being installed on a given profile. Each line contains one package dependency specification; anything matching this specification will not be -installed unless unmasked by the user's configuration. +installed unless unmasked by the user's configuration. In some EAPIs, \t{package.mask} can be a +directory instead of a regular file as per section~\ref{sec:line-stacking}. Note that the \t{-spec} syntax can be used to remove a mask in a parent profile, but not necessarily a global mask (from \t{profiles/package.mask}, section~\ref{profiles-package.mask}). @@ -99,17 +121,19 @@ has severe adverse effects on USE-based and slot-based dependencies, its use is and package manager support must be regarded as purely optional. \subsection{package.use} -The \t{package.use} file may be used by the package manager to override the default USE flags specified -by \t{make.defaults} on a per package basis. The format is to have a package dependency specification, -and then a space delimited list of USE flags to enable. A USE flag in the form of \t{-flag} indicates -that the package should have the USE flag disabled. The package dependency specification is limited to -the forms defined by the directory's EAPI. +The \t{package.use} file may be used by the package manager to override the default USE flags +specified by \t{make.defaults} on a per package basis. The format is to have a package dependency +specification, and then a space delimited list of USE flags to enable. A USE flag in the form of +\t{-flag} indicates that the package should have the USE flag disabled. The package dependency +specification is limited to the forms defined by the directory's EAPI. In some EAPIs, +\t{package.use} can be a directory instead of a regular file as per section~\ref{sec:line-stacking}. \subsection{USE masking and forcing} This section covers the eight files \t{use.mask}, \t{use.force}, \t{use.stable.mask}, \t{use.stable.force}, \t{package.use.mask}, \t{package.use.force}, \t{package.use.stable.mask}, and \t{package.use.\allowbreak stable.force}. They are described together because they interact in -a non-trivial manner. +a non-trivial manner. In some EAPIs, these files can be directories instead of regular files as per +section~\ref{sec:line-stacking}. Simply speaking, \t{use.mask} and \t{use.force} are used to say that a given USE flag must never or always, respectively, be enabled when using this profile. \t{package.use.mask} and