Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] [PATCH 1/2] Define the FILESDIR variable in global scope.
Date: Sun, 29 May 2016 09:44:42
Message-Id: 22346.47622.525697.900743@a1i15.kph.uni-mainz.de
1 This is needed for assigning PATCHES in EAPI 6.
2
3 Also add a note that ebuilds must not access the actual directory
4 in global scope. The situation is similar to WORKDIR which is also
5 defined in global scope (for assigning S) but with the dir not being
6 available there.
7 ---
8 ebuild-env-vars.tex | 12 +++++++-----
9 1 file changed, 7 insertions(+), 5 deletions(-)
10
11 diff --git a/ebuild-env-vars.tex b/ebuild-env-vars.tex
12 index 32cbde3..ba947e2 100644
13 --- a/ebuild-env-vars.tex
14 +++ b/ebuild-env-vars.tex
15 @@ -84,12 +84,14 @@ variable.
16 of each element of the \t{SRC\_URI} ebuild metadata variable. Only for EAPIs listed in
17 table~\ref{tab:removed-env-vars-table} as supporting \t{AA}. \\
18 \t{FILESDIR} &
19 - \t{src\_*}\footnote{Not necessarily present when installing from a binary package} &
20 + \t{src\_*}, global~scope%
21 + \footnote{Not necessarily present when installing from a binary package} &
22 No &
23 - The full path to the package's files directory, used for small support files or
24 - patches. See section~\ref{sec:package-dirs}. May or may not exist; if a repository provides no
25 - support files for the package in question then an ebuild must be prepared for the situation
26 - where \t{FILESDIR} points to a non-existent directory. \\
27 + The full path to the package's files directory, used for small support files or patches.
28 + See section~\ref{sec:package-dirs}. Ebuilds must not access the directory in global scope.
29 + May or may not exist; if a repository provides no support files for the package in question
30 + then an ebuild must be prepared for the situation where \t{FILESDIR} points to a non-existent
31 + directory. \\
32 \t{PORTDIR} &
33 Ditto &
34 No &
35 --
36 2.8.3

Replies