1 |
>>>>> On Tue, 11 Sep 2012, Brian Harring wrote: |
2 |
|
3 |
> To varying degrees, existing PMs use names that aren't prefixed in |
4 |
> some fashion indicating it's an internal- the end result being |
5 |
> ebuilds/eclasses that rely on a PM internal (both bad for alternate |
6 |
> PMs, and bad should that internal change). |
7 |
|
8 |
> Further, the lack of a standardized namespace for the PMs internals |
9 |
> means QA tools must maintain their own lists. As such, allocate __* |
10 |
> for the PM to use for it's internal functionality and variables. |
11 |
|
12 |
We already have a section "Reserved Commands and Variables", and I |
13 |
think that the information should be added there. See one-line patch |
14 |
below. |
15 |
|
16 |
I also wonder about the rest of the list: "abort", "dyn", "ebuild", |
17 |
"hook", "paludis", "portage", "prep". The last one occurs in |
18 |
src_prepare, so forbidding it in ebuilds doesn't look so reasonable. ;-) |
19 |
|
20 |
Some of the others (like "dyn" and "hook") are used in eclasses. |
21 |
Should repoman enforce that they're not used? |
22 |
|
23 |
Ulrich |
24 |
|
25 |
|
26 |
From d80c7b7933e07aeb9f55543e15839230f5ca005f Mon Sep 17 00:00:00 2001 |
27 |
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o> |
28 |
Date: Sun, 16 Sep 2012 08:25:15 +0200 |
29 |
Subject: [PATCH] Strings beginning with two underscores are reserved. |
30 |
|
31 |
--- |
32 |
pkg-mgr-commands.tex | 1 + |
33 |
1 file changed, 1 insertion(+) |
34 |
|
35 |
diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex |
36 |
index 772613e..06856e2 100644 |
37 |
--- a/pkg-mgr-commands.tex |
38 |
+++ b/pkg-mgr-commands.tex |
39 |
@@ -858,6 +858,7 @@ strings (ignoring case) are reserved for package manager use and may not be used |
40 |
ebuilds: |
41 |
|
42 |
\begin{compactitem} |
43 |
+\item \t{\_\_} (two underscores) at beginning of string |
44 |
\item \t{abort} |
45 |
\item \t{dyn} |
46 |
\item \t{ebuild} |
47 |
-- |
48 |
1.7.12 |