Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] Characters allowed in EAPI names
Date: Thu, 15 Mar 2012 17:57:13
Message-Id: 20322.11627.179631.40219@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-pms] Characters allowed in EAPI names by Ulrich Mueller
1 > An EAPI name may contain any of the characters [A-Za-z0-9+_.-].
2 > It must not begin with a hyphen, a dot or a plus sign.
3
4 > It's consistent with what we have for other names, like slot or
5 > category: <http://dev.gentoo.org/~ulm/pms/head/pms.html#x1-170003.1>
6
7 From 742f67c913e3bb2c79dc4a18ebb83392ba9b9eea Mon Sep 17 00:00:00 2001
8 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o>
9 Date: Thu, 15 Mar 2012 18:48:01 +0100
10 Subject: [PATCH] Specify characters allowed for an EAPI value.
11
12 ---
13 eapis.tex | 2 +-
14 names.tex | 5 +++++
15 2 files changed, 6 insertions(+), 1 deletions(-)
16
17 diff --git a/eapis.tex b/eapis.tex
18 index 05bf4d7..5839768 100644
19 --- a/eapis.tex
20 +++ b/eapis.tex
21 @@ -3,7 +3,7 @@
22 \section{Definition}
23
24 An EAPI can be thought of as a `version' of this specification to which a package conforms. An EAPI
25 -value is a string, and is part of an ebuild's metadata.
26 +value is a string as per section~\ref{sec:eapi-names}, and is part of an ebuild's metadata.
27
28 If a package manager encounters a package version with an unrecognised EAPI, it must not attempt to
29 perform any operations upon it. It could, for example, ignore the package version entirely (although
30 diff --git a/names.tex b/names.tex
31 index c99ed0f..fd9731c 100644
32 --- a/names.tex
33 +++ b/names.tex
34 @@ -48,6 +48,11 @@ assumed that any user accepting keyword \t{\textasciitilde{}foo} will also accep
35
36 The exact meaning of any keywords value is beyond the scope of this specification.
37
38 +\subsection{EAPI Names}
39 +\label{sec:eapi-names}
40 +An EAPI name may contain any of the characters [\t{A-Za-z0-9+\_.-}]. It must not begin with a
41 +hyphen, a dot or a plus sign.
42 +
43 \section{Version Specifications}
44 The package manager must not impose fixed limits upon the number of version components. Package
45 managers should indicate or reject any version that is invalid according to these rules.
46 --
47 1.7.8.5

Replies

Subject Author
Re: [gentoo-pms] Characters allowed in EAPI names Ulrich Mueller <ulm@g.o>