summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-06-25 20:38:51 +0200
committerUlrich Müller <ulm@gentoo.org>2020-07-05 21:03:44 +0200
commite39511f0353770fdc4b7e4ce45b7ff0ed034b6d8 (patch)
treeba1bd6ce519473a27dd9248103a5ba9f12cef70f
parentRevert "pms.cls: Another workaround for tex4ht." (diff)
downloadpms-e39511f0353770fdc4b7e4ce45b7ff0ed034b6d8.tar.gz
pms-e39511f0353770fdc4b7e4ce45b7ff0ed034b6d8.tar.bz2
pms-e39511f0353770fdc4b7e4ce45b7ff0ed034b6d8.zip
ebuild-functions.tex: Phase functions can write to temporary dirs.
All package managers support that functions like pkg_pretend() write to temporary directories T, TMPDIR and HOME. This is also used in the tree, see for example bug 469210. Update the spec to match this. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--ebuild-functions.tex11
1 files changed, 6 insertions, 5 deletions
diff --git a/ebuild-functions.tex b/ebuild-functions.tex
index 4a13db6..3935800 100644
--- a/ebuild-functions.tex
+++ b/ebuild-functions.tex
@@ -6,11 +6,12 @@
The following is a list of functions that an ebuild, or eclass, may define, and which will be called
by the package manager as part of the build and/or install process. In all cases the package manager
must provide a default implementation of these functions; unless otherwise stated this must be a
-no-op. Most functions must assume only that they have write access to the package's working
-directory (the \t{WORKDIR} environment variable; see section~\ref{sec:ebuild-env-vars}), and the
-temporary directory \t{T}; exceptions are noted below. All functions may assume that they have read
-access to all system libraries, binaries and configuration files that are accessible to normal
-users.
+no-op. All functions may assume that they have read access to all system libraries, binaries and
+configuration files that are accessible to normal users, as well as write access to the temporary
+directories specified by the \t{T}, \t{TMPDIR} and \t{HOME} environment variables
+(see section~\ref{sec:ebuild-env-vars}). Most functions must assume only that they have additional
+write access to the package's working directory (the \t{WORKDIR} environment variable); exceptions
+are noted below.
The environment for functions run outside of the build sequence (that is, \t{pkg_config},
\t{pkg_info}, \t{pkg_prerm} and \t{pkg_postrm}) must be the environment used for the build of the