From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SE5Qi-0007y1-Uz for garchives@archives.gentoo.org; Sat, 31 Mar 2012 21:01:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB37A21C06B; Sat, 31 Mar 2012 21:01:35 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 4CE3C21C065 for ; Sat, 31 Mar 2012 21:01:02 +0000 (UTC) Received: by obqv19 with SMTP id v19so2757257obq.40 for ; Sat, 31 Mar 2012 14:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=FaGgIS3WaIF5dfWBWpecVm2s+VwgFdoCwvTfGUjD9sg=; b=gAxhFfH053w05VcQFGZ1ven21MFHISx9KIii/tf5bXtBWk9/z0QKjqwO+/63aYo2DX MGLcsRLBo2Bc0pwstJwzylFQjuo6gn6FxYrMj2O8frqXC6RGi59+Qfuyo75lt3q72/Bv 5yWE8qziQ97AcMHfJ5buNilnKKTRm4DEcn4nwTMOWAtcn++8w2BWFQE58ycKrnWau6wR Kb6/V0Q+WLKpBMwny0ZAN1g1g67wYasj457wM2FJDqLBNMs//ZreT9VxuhbeSaw18GGL s7qPqOaiITMrFL/1OKicBpEjE86Tximfo1cF554hePqkugsxsocog3raQl/NcFrr1wLL ABug== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.182.48.36 with SMTP id i4mr4047024obn.72.1333227661694; Sat, 31 Mar 2012 14:01:01 -0700 (PDT) Received: by 10.60.42.161 with HTTP; Sat, 31 Mar 2012 14:01:01 -0700 (PDT) In-Reply-To: <1333208180.4703.11.camel@storm> References: <4F76F44A.4020409@gmail.com> <20342.64535.858274.416935@a1i15.kph.uni-mainz.de> <1333208180.4703.11.camel@storm> Date: Sat, 31 Mar 2012 21:01:01 +0000 Message-ID: Subject: Re: [gentoo-dev] Should ${T} be defined in pkg_prepare ? From: Francesco Riosa To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: aa6bf47e-dd6f-4ce9-a9ff-627b9e0a0f8c X-Archives-Hash: 9aac1390ea7878f5c87d3d8a20eeca61 2012/3/31 Tiziano M=C3=BCller : > Am Samstag, den 31.03.2012, 14:44 +0200 schrieb Ulrich Mueller: >> >>>>> On Sat, 31 Mar 2012, Maciej Grela wrote: >> >> > I've read the PMS and I haven't found information whether this variabl= e >> > is supposed to be set during pkg_prepare or not. >> >> There is no such stage. You mean pkg_pretend, I suppose? >> >> > Therefore I ask, what is the proper behaviour here ? Is there >> > documentation on what special env variables are supposed to be >> > defined in each stage ? >> >> It's specified here: >> >> >> | Variable =C2=A0 Legal in =C2=A0 Consistent? =C2=A0 =C2=A0Description >> | --------------------------------------------------------------------- >> | T =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0All =C2=A0 =C2=A0 =C2=A0 =C2=A0Par= tially=E2=81=B4 =C2=A0 =C2=A0 The full path to a temporary >> | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0directory for= use by the ebuild. >> | >> | =E2=81=B4Consistent and preserved across a single connected sequence o= f >> | install or uninstall phases, but not between install and uninstall. >> | When reinstalling a package, this variable must have different >> | values for the install and the replacement. >> >> > Can this be considered as a bug in paludis ? >> >> The spec seems to be clear that T is legal in all phases, including >> pkg_pretend. > > Well, I'd say: there is no sane value you can assign to $T since you are > not allowed to write anything anyway: indeed it's not writing, check-reqs.eclass is reading space available via 'df -Pm' there is something else it could use assuming $PORTAGE_TMPDIR is worse for portability? > > "pkg_pretend must not write to the > filesystem." (http://dev.gentoo.org/~ulm/pms/4/pms.html#x1-9700010.1.2) > > and since "pkg_pretend is run separately from the main phase function > sequence, and does not participate in any kind of environment saving" it > is not guaranteed to be set to the same $T later. > > Cheers, > Tiziano