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
> An EAPI name may contain any of the characters [A-Za-z0-9+_.-]. > It must not begin with a hyphen, a dot or a plus sign.
> It's consistent with what we have for other names, like slot or > category: <http://dev.gentoo.org/~ulm/pms/head/pms.html#x1-170003.1>
From 742f67c913e3bb2c79dc4a18ebb83392ba9b9eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o> Date: Thu, 15 Mar 2012 18:48:01 +0100 Subject: [PATCH] Specify characters allowed for an EAPI value. --- eapis.tex | 2 +- names.tex | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/eapis.tex b/eapis.tex index 05bf4d7..5839768 100644 --- a/eapis.tex +++ b/eapis.tex @@ -3,7 +3,7 @@ \section{Definition} An EAPI can be thought of as a `version' of this specification to which a package conforms. An EAPI -value is a string, and is part of an ebuild's metadata. +value is a string as per section~\ref{sec:eapi-names}, and is part of an ebuild's metadata. If a package manager encounters a package version with an unrecognised EAPI, it must not attempt to perform any operations upon it. It could, for example, ignore the package version entirely (although diff --git a/names.tex b/names.tex index c99ed0f..fd9731c 100644 --- a/names.tex +++ b/names.tex @@ -48,6 +48,11 @@ assumed that any user accepting keyword \t{\textasciitilde{}foo} will also accep The exact meaning of any keywords value is beyond the scope of this specification. +\subsection{EAPI Names} +\label{sec:eapi-names} +An EAPI name may contain any of the characters [\t{A-Za-z0-9+\_.-}]. It must not begin with a +hyphen, a dot or a plus sign. + \section{Version Specifications} The package manager must not impose fixed limits upon the number of version components. Package managers should indicate or reject any version that is invalid according to these rules. -- 1.7.8.5

Replies

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