From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 02872138359 for ; Sun, 5 Jul 2020 19:03:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AFFDE087A; Sun, 5 Jul 2020 19:03:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0193DE087A for ; Sun, 5 Jul 2020 19:03:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2531A34F364 for ; Sun, 5 Jul 2020 19:03:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9379028F for ; Sun, 5 Jul 2020 19:03:14 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1593975558.38e58b37949f3bd8e3fbac4bc83432cc4e3f3183.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: ebuild-functions.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 38e58b37949f3bd8e3fbac4bc83432cc4e3f3183 X-VCS-Branch: master Date: Sun, 5 Jul 2020 19:03:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7180e019-4a41-4a75-b4b7-71caa87df7cf X-Archives-Hash: 0008904e50a3ec19ef6af600990edec4 commit: 38e58b37949f3bd8e3fbac4bc83432cc4e3f3183 Author: Ulrich Müller gentoo org> AuthorDate: Thu Jun 25 18:38:51 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Jul 5 18:59:18 2020 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=38e58b37 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 gentoo.org> ebuild-functions.tex | 11 ++++++----- 1 file 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