summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-08-29 10:10:29 +0200
committerUlrich Müller <ulm@gentoo.org>2021-08-31 18:02:50 +0200
commitf5f8e42eeb8ea1e8c2ac182f30214ef0c559dd88 (patch)
tree29def91e8d4dee0324f7726a4c9d36cf60ce34da
parentpms.tex: Delete some empty lines (diff)
downloadpms-f5f8e42eeb8ea1e8c2ac182f30214ef0c559dd88.tar.gz
pms-f5f8e42eeb8ea1e8c2ac182f30214ef0c559dd88.tar.bz2
pms-f5f8e42eeb8ea1e8c2ac182f30214ef0c559dd88.zip
eclasses.tex: Clarify precedence of EXPORT_FUNCTIONS calls
Clarify that the last call to EXPORT_FUNCTIONS takes precedence over earlier calls. Unfortunately, we need an exception when inherit is called after EXPORT_FUNCTIONS because Portage changed its behaviour in 2009: https://gitweb.gentoo.org/proj/portage.git/commit/?id=06d4433e8b8be60d606733b9e23f57f8a5869d8f Pkgcore and Paludis apply precedence consistently based on call order of EXPORT_FUNCTIONS. Bug: https://bugs.gentoo.org/399039 Bug: https://bugs.gentoo.org/422513 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--eclasses.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclasses.tex b/eclasses.tex
index a92ce1f..e23dcd8 100644
--- a/eclasses.tex
+++ b/eclasses.tex
@@ -88,6 +88,10 @@ should the author wish to override it he can access the function in \t{foo.eclas
\t{EXPORT_FUNCTIONS} must only be used on ebuild phase functions. The function that is aliased
must be named \t{eclassname_phasefunctionname}, where \t{eclassname} is the name of the eclass.
+If \t{EXPORT_FUNCTIONS} is called multiple times for the same phase function, the last call takes
+precedence. Eclasses may not rely upon any particular behaviour if they inherit another eclass
+after calling \t{EXPORT_FUNCTIONS}.
+
% vim: set filetype=tex fileencoding=utf8 et tw=100 spell spelllang=en :
%%% Local Variables: