public inbox for gentoo-pms@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-pms] eapi file in profiles
@ 2015-08-27 14:37 Ulrich Mueller
  2015-08-27 16:34 ` Ciaran McCreesh
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Mueller @ 2015-08-27 14:37 UTC (permalink / raw
  To: gentoo-pms

[-- Attachment #1: Type: text/plain, Size: 1142 bytes --]

Chapter 4 "Tree Layout" says:
https://projects.gentoo.org/pms/5/pms.html#x1-350004.4

   The profiles directory may contain an eapi file. This file, if it
   exists, must contain a single line with the name of an EAPI. This
   specifies the EAPI to use when handling the profiles directory;
   a package manager must not attempt to use any repository whose
   profile directory requires an EAPI it does not support. If no eapi
   file is present, EAPI 0 shall be used.

Also Chapter 5 "Profiles":
http://dev.gentoo.org/~ulm/pms/head/pms.html#x1-480005.2.2

   A profile directory may contain an eapi file. This file, if it
   exists, must contain a single line with the name of an EAPI. This
   specifies the EAPI to use when handling the directory in question;
   a package manager must not attempt to use any profile using a
   directory which requires an EAPI it does not support. If no eapi
   file is present, EAPI 0 shall be used. The EAPI is not inherited
   via the parent file."

Does the "EAPI to use when handling the directory" apply to all
subdirectories recursively?

We should clarify the spec in one way or the other.

Ulrich

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-pms] eapi file in profiles
  2015-08-27 14:37 [gentoo-pms] eapi file in profiles Ulrich Mueller
@ 2015-08-27 16:34 ` Ciaran McCreesh
  2015-08-27 19:25   ` Ulrich Mueller
  0 siblings, 1 reply; 4+ messages in thread
From: Ciaran McCreesh @ 2015-08-27 16:34 UTC (permalink / raw
  To: gentoo-pms

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

On Thu, 27 Aug 2015 16:37:49 +0200
Ulrich Mueller <ulm@gentoo.org> wrote:
> Does the "EAPI to use when handling the directory" apply to all
> subdirectories recursively?

No. It applies to that directory, and only that directory, and it only
applies to a "profile" directory, not a special directory that happens
to live under profiles/ but is not being used as a profile.

-- 
Ciaran McCreesh

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-pms] eapi file in profiles
  2015-08-27 16:34 ` Ciaran McCreesh
@ 2015-08-27 19:25   ` Ulrich Mueller
  2015-08-30 18:57     ` Ulrich Mueller
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Mueller @ 2015-08-27 19:25 UTC (permalink / raw
  To: gentoo-pms

[-- Attachment #1: Type: text/plain, Size: 2378 bytes --]

>>>>> On Thu, 27 Aug 2015, Ciaran McCreesh wrote:

> No. It applies to that directory, and only that directory, and it only
> applies to a "profile" directory, not a special directory that happens
> to live under profiles/ but is not being used as a profile.

Patch is included below.

Ulrich


From 2d9d1c34ffe348a269817c72e5ea079854a35205 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org>
Date: Thu, 27 Aug 2015 21:18:43 +0200
Subject: [PATCH] Clarify that eapi in profiles is not inherited in
 subdirectories.

See also bug 558956.
---
 profiles.tex    | 4 ++--
 tree-layout.tex | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/profiles.tex b/profiles.tex
index 067a098..4b39160 100644
--- a/profiles.tex
+++ b/profiles.tex
@@ -32,8 +32,8 @@ This file must not contain comments, blank lines or make use of line continuatio
 A profile directory may contain an \t{eapi} file. This file, if it exists, must contain a single
 line with the name of an EAPI\@. This specifies the EAPI to use when handling the directory in
 question; a package manager must not attempt to use any profile using a directory which requires an
-EAPI it does not support. If no \t{eapi} file is present, EAPI 0 shall be used. The EAPI is not
-inherited via the \t{parent} file.
+EAPI it does not support. If no \t{eapi} file is present, EAPI 0 shall be used. The EAPI is neither
+inherited via the \t{parent} file nor in subdirectories.
 
 \subsection{deprecated}
 If a profile contains a file named \t{deprecated}, it is treated as such. The first line of this
diff --git a/tree-layout.tex b/tree-layout.tex
index cb8e1ad..0554a64 100644
--- a/tree-layout.tex
+++ b/tree-layout.tex
@@ -87,7 +87,7 @@ optional.
 
 The profiles directory may contain an \t{eapi} file. This file, if it exists, must contain a single
 line with the name of an EAPI\@. This specifies the EAPI to use when handling the profiles
-directory; a package manager must not attempt to use any repository whose profile directory
+directory; a package manager must not attempt to use any repository whose profiles directory
 requires an EAPI it does not support. If no \t{eapi} file is present, EAPI 0 shall be used.
 
 If the repository is not intended to be stand-alone, the contents of these files are to be taken
-- 
2.5.0

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [gentoo-pms] eapi file in profiles
  2015-08-27 19:25   ` Ulrich Mueller
@ 2015-08-30 18:57     ` Ulrich Mueller
  0 siblings, 0 replies; 4+ messages in thread
From: Ulrich Mueller @ 2015-08-30 18:57 UTC (permalink / raw
  To: gentoo-pms

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

>>>>> On Thu, 27 Aug 2015, Ulrich Mueller wrote:

> Patch is included below.

Pushed:
https://gitweb.gentoo.org/proj/pms.git/commit/?id=2d9d1c34ffe348a269817c72e5ea079854a35205

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-30 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 14:37 [gentoo-pms] eapi file in profiles Ulrich Mueller
2015-08-27 16:34 ` Ciaran McCreesh
2015-08-27 19:25   ` Ulrich Mueller
2015-08-30 18:57     ` Ulrich Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox