From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1490656-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6104D158030 for <garchives@archives.gentoo.org>; Sun, 26 Feb 2023 17:43:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4585E0882; Sun, 26 Feb 2023 17:42:58 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0093E0882 for <gentoo-commits@lists.gentoo.org>; Sun, 26 Feb 2023 17:42:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C10F1340D85 for <gentoo-commits@lists.gentoo.org>; Sun, 26 Feb 2023 17:42:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E8CC48CF for <gentoo-commits@lists.gentoo.org>; Sun, 26 Feb 2023 17:42:54 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> 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" <ulm@gentoo.org> Message-ID: <1673288025.ede65b5d136640575479c9c9a3162ee4d2be953e.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-9 commit in: / X-VCS-Repository: proj/pms X-VCS-Files: ebuild-env-vars.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: ede65b5d136640575479c9c9a3162ee4d2be953e X-VCS-Branch: eapi-9 Date: Sun, 26 Feb 2023 17:42:54 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ffaef17-a86d-4e90-acf4-51706d8fc175 X-Archives-Hash: 217d7a53f91cae01e485af5b3427d608 commit: ede65b5d136640575479c9c9a3162ee4d2be953e Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Tue Jan 3 20:11:28 2023 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Jan 9 18:13:45 2023 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=ede65b5d ebuild-env-vars.tex: D is available as a variable in all src_* phases The D variable has been described as a "phase-specific variable" since the spec's early draft stage (SVN r19). However, Portage would always define the variable in all src_* phases, with the restriction that the directory would exist only in src_install(). In reality, not all ebuilds comply with the spec. For example, Perl eclasses use D in src_configure(), i.e. they rely on Portage behaviour. Therefore, lift this unnecessary and somewhat artificial restriction and make the variable (but not the directory) available outside the install phase. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> ebuild-env-vars.tex | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ebuild-env-vars.tex b/ebuild-env-vars.tex index a55c366..db693ab 100644 --- a/ebuild-env-vars.tex +++ b/ebuild-env-vars.tex @@ -179,24 +179,27 @@ variable. See also~\ref{sec:offset-vars}. Only for EAPIs listed in table~\ref{tab:offset-env-vars-table} as supporting \t{EPREFIX}. \\ \t{D} & - \t{src_install} & - No & + \t{src_*} & + Yes & Contains the full path to the image directory into which the package should be installed. + Ebuilds must not attempt to access the directory in \t{src_*} phases other than \t{src_install}. The presence of a trailing slash is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ \t{D} (continued) & \t{pkg_preinst}, \t{pkg_postinst} & - Yes & + Yes\footnote{Consistent across \t{pkg_preinst} and \t{pkg_postinst}, but may not necessarily + have the same value that it had in the \t{src_*} phases.} & Contains the full path to the image that is about to be or has just been merged. The presence of a trailing slash is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ \t{ED} & - \t{src_install}, \t{pkg_preinst}, \t{pkg_postinst} & + \t{src_*}, \t{pkg_preinst}, \t{pkg_postinst} & See \t{D} & Contains the concatenation of the paths in the \t{D} and \t{EPREFIX} variables, for convenience. See also the \t{EPREFIX} variable. Only for EAPIs listed in - table~\ref{tab:offset-env-vars-table} as supporting \t{ED}\@. The presence of a trailing slash - is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ + table~\ref{tab:offset-env-vars-table} as supporting \t{ED}\@. Ebuilds must not attempt to + access the directory in \t{src_*} phases other than \t{src_install}. The presence of a trailing + slash is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ \t{DESTTREE} & \t{src_install} & No & From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1475505-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D6BE315800F for <garchives@archives.gentoo.org>; Mon, 9 Jan 2023 18:18:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8547E069C; Mon, 9 Jan 2023 18:18:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2A16E069C for <gentoo-commits@lists.gentoo.org>; Mon, 9 Jan 2023 18:18:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 834773408CF for <gentoo-commits@lists.gentoo.org>; Mon, 9 Jan 2023 18:18:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 117684C8 for <gentoo-commits@lists.gentoo.org>; Mon, 9 Jan 2023 18:18:35 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> 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" <ulm@gentoo.org> Message-ID: <1673288025.ede65b5d136640575479c9c9a3162ee4d2be953e.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: ebuild-env-vars.tex X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: ede65b5d136640575479c9c9a3162ee4d2be953e X-VCS-Branch: master Date: Mon, 9 Jan 2023 18:18:35 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f50c6d35-77f8-49f5-9f5c-3e1504a49f7a X-Archives-Hash: 7eabffe43079b5db14d510c73ddd4f6d Message-ID: <20230109181835.ou7icn8YIpa-tivgbIjeyMV9oenavcHKh7Mmrhst2r0@z> commit: ede65b5d136640575479c9c9a3162ee4d2be953e Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Tue Jan 3 20:11:28 2023 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Jan 9 18:13:45 2023 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=ede65b5d ebuild-env-vars.tex: D is available as a variable in all src_* phases The D variable has been described as a "phase-specific variable" since the spec's early draft stage (SVN r19). However, Portage would always define the variable in all src_* phases, with the restriction that the directory would exist only in src_install(). In reality, not all ebuilds comply with the spec. For example, Perl eclasses use D in src_configure(), i.e. they rely on Portage behaviour. Therefore, lift this unnecessary and somewhat artificial restriction and make the variable (but not the directory) available outside the install phase. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> ebuild-env-vars.tex | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ebuild-env-vars.tex b/ebuild-env-vars.tex index a55c366..db693ab 100644 --- a/ebuild-env-vars.tex +++ b/ebuild-env-vars.tex @@ -179,24 +179,27 @@ variable. See also~\ref{sec:offset-vars}. Only for EAPIs listed in table~\ref{tab:offset-env-vars-table} as supporting \t{EPREFIX}. \\ \t{D} & - \t{src_install} & - No & + \t{src_*} & + Yes & Contains the full path to the image directory into which the package should be installed. + Ebuilds must not attempt to access the directory in \t{src_*} phases other than \t{src_install}. The presence of a trailing slash is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ \t{D} (continued) & \t{pkg_preinst}, \t{pkg_postinst} & - Yes & + Yes\footnote{Consistent across \t{pkg_preinst} and \t{pkg_postinst}, but may not necessarily + have the same value that it had in the \t{src_*} phases.} & Contains the full path to the image that is about to be or has just been merged. The presence of a trailing slash is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ \t{ED} & - \t{src_install}, \t{pkg_preinst}, \t{pkg_postinst} & + \t{src_*}, \t{pkg_preinst}, \t{pkg_postinst} & See \t{D} & Contains the concatenation of the paths in the \t{D} and \t{EPREFIX} variables, for convenience. See also the \t{EPREFIX} variable. Only for EAPIs listed in - table~\ref{tab:offset-env-vars-table} as supporting \t{ED}\@. The presence of a trailing slash - is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ + table~\ref{tab:offset-env-vars-table} as supporting \t{ED}\@. Ebuilds must not attempt to + access the directory in \t{src_*} phases other than \t{src_install}. The presence of a trailing + slash is EAPI dependent as listed in table~\ref{tab:trailing-slash}. \\ \t{DESTTREE} & \t{src_install} & No &