From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 15 13:06:57 2021 Received: (at 47786) by debbugs.gnu.org; 15 Apr 2021 17:06:58 +0000 Received: from localhost ([127.0.0.1]:39078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX5SD-0006kG-Md for submit@debbugs.gnu.org; Thu, 15 Apr 2021 13:06:57 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX5SC-0006k3-F6 for 47786@debbugs.gnu.org; Thu, 15 Apr 2021 13:06:56 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6FE135C004A; Thu, 15 Apr 2021 13:06:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 15 Apr 2021 13:06:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=LJBKCaHWcjBXp4AE6yBR20lY Jz2tsCsT8o9GGFa4BsY=; b=q0IPTfc2FJunrbVWutO8sIWmjfZVq9IqrD7Xnx3A 5E0HU/BlEsdrMG7LmXM4uI0YayFvbQnujZPXpD3XOiZYsw7p5sYKnHOrhBxD6Hr4 O5qRTzSoTowYhZm8XMRYfOqomRr9gcuzGfus7vFvbOLI/DkYZKbkuuOXNVK42lUH Hw8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=LJBKCa HWcjBXp4AE6yBR20lYJz2tsCsT8o9GGFa4BsY=; b=LXuqrXstpbfqHvRvOflYtQ pzwYd6KfvZLKAwLAGEqYWeVhRPDd6uUqXGM4pegr8YWn8soaks5IxxlwIVPCj+Vw 5bWvBEq3DRVqteIgIpJxQ++D3vJTIBckYDeDlBU2CS/xba0zOKTE4CxZepx/RkA4 LiTqol17JGaLFi3Gnr6H7NlaFGHXKdLn7W3oWhY1RFQ2AxGoUt2EykyQ47002vpK V/hPWkv0tFCg0hKwM0xE8QxXtISA1DWomQqkvd1odUaZDSrZxa0qOZoqBGwRbWsP pp0cIKz0ltzfv1Y/0lET1KHKDu7O/pluAYZZmPIKFulnO6GN6G1nQyV040rBWNfg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudelfedguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeukeektdffvddtudegjeegtdevhf eufeeivdejiedtieegtdevjedvjeehffevgfenucfkphepuddttddruddurdduieelrddu udeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplh gvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: from localhost (pool-100-11-169-118.phlapa.fios.verizon.net [100.11.169.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 5827D108005B; Thu, 15 Apr 2021 13:06:50 -0400 (EDT) Date: Thu, 15 Apr 2021 13:06:47 -0400 From: Leo Famulari To: Dmitry Matveyev Subject: Re: bug#47786: Several build --keep-failed result in wrong env variables Message-ID: References: <87r1jc5ld1.fsf@yandex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r1jc5ld1.fsf@yandex.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47786 Cc: 47786@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, Apr 15, 2021 at 08:31:54AM +0600, Dmitry Matveyev wrote: > Hello, > > I use guix on Arch Linux, version > 050be36cbf3a42199f64f2e44c59f1cb1b3afab5. > > Several invocations of guix build --keep-failed creates directories in > /tmp like this one guix-build-hello-2.10.drv-0 for 1st build and then > guix-build-hello-2.10.drv-1 for 2nd and so on (with last digit > increasing). But environment variables for all of them are set to point > to the very 1st directory. > > Reproduce: > > $ guix build --check --keep-failed hello > ^C > $ guix build --check --keep-failed hello > ^C > $ cd /tmp/guix-build-hello-2.10.drv-1/ > $ grep PWD environment-variables > export OLDPWD > export PWD="/tmp/guix-build-hello-2.10.drv-0/hello-2.10" > > Here although we are in directory /tmp/guix-build-hello-2.10.drv-1/, PWD > is set to .drv-0 directory. I see, thanks for the report. This is probably because, within the build environment, the directory is always named '/tmp/guix-build-$name-$version.drv-0/', for reproducibility. We should see about changing the PWD variable after the build fails.