Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:master commit in: /
Date: Wed, 01 Sep 2021 17:35:04
Message-Id: 1630425770.f5f8e42eeb8ea1e8c2ac182f30214ef0c559dd88.ulm@gentoo
1 commit: f5f8e42eeb8ea1e8c2ac182f30214ef0c559dd88
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 29 08:10:29 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 31 16:02:50 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=f5f8e42e
7
8 eclasses.tex: Clarify precedence of EXPORT_FUNCTIONS calls
9
10 Clarify that the last call to EXPORT_FUNCTIONS takes precedence over
11 earlier calls.
12
13 Unfortunately, we need an exception when inherit is called after
14 EXPORT_FUNCTIONS because Portage changed its behaviour in 2009:
15 https://gitweb.gentoo.org/proj/portage.git/commit/?id=06d4433e8b8be60d606733b9e23f57f8a5869d8f
16
17 Pkgcore and Paludis apply precedence consistently based on call order
18 of EXPORT_FUNCTIONS.
19
20 Bug: https://bugs.gentoo.org/399039
21 Bug: https://bugs.gentoo.org/422513
22 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
23
24 eclasses.tex | 4 ++++
25 1 file changed, 4 insertions(+)
26
27 diff --git a/eclasses.tex b/eclasses.tex
28 index a92ce1f..e23dcd8 100644
29 --- a/eclasses.tex
30 +++ b/eclasses.tex
31 @@ -88,6 +88,10 @@ should the author wish to override it he can access the function in \t{foo.eclas
32 \t{EXPORT_FUNCTIONS} must only be used on ebuild phase functions. The function that is aliased
33 must be named \t{eclassname_phasefunctionname}, where \t{eclassname} is the name of the eclass.
34
35 +If \t{EXPORT_FUNCTIONS} is called multiple times for the same phase function, the last call takes
36 +precedence. Eclasses may not rely upon any particular behaviour if they inherit another eclass
37 +after calling \t{EXPORT_FUNCTIONS}.
38 +
39 % vim: set filetype=tex fileencoding=utf8 et tw=100 spell spelllang=en :
40
41 %%% Local Variables: