From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uB7WApN2eGD/6wAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 19:23:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4N5dOJJ2eGBkdQAA1q6Kng (envelope-from ) for ; Thu, 15 Apr 2021 17:23:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B7C8726F2E for ; Thu, 15 Apr 2021 19:23:29 +0200 (CEST) Received: from localhost ([::1]:60884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX5iB-0001NK-S4 for larch@yhetil.org; Thu, 15 Apr 2021 13:23:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX5SI-00058w-Vh for bug-guix@gnu.org; Thu, 15 Apr 2021 13:07:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX5SI-0003RY-O0 for bug-guix@gnu.org; Thu, 15 Apr 2021 13:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX5SI-0006kb-IP for bug-guix@gnu.org; Thu, 15 Apr 2021 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47786: Several build --keep-failed result in wrong env variables Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 15 Apr 2021 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47786 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Dmitry Matveyev Received: via spool by 47786-submit@debbugs.gnu.org id=B47786.161850641825937 (code B ref 47786); Thu, 15 Apr 2021 17:07:02 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47786@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618507410; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=LJBKCaHWcjBXp4AE6yBR20lYJz2tsCsT8o9GGFa4BsY=; b=bULM4LJw8CbjJ1/7kQ5xZNvQh2jXoT6/CsEd7XLlMXXCPkDIW2/EKxs8VY8QkoTIk6QQFc bUtTwA17u07cht8mP8Zk2ZieLynIYNMsrIbFuL+uGnb4hEosKHxMshczhYT3zoSw8q/wot fshUs1B9EPw0XlyE9x4Mc/B71aWBnVVTL3dnf4kkyoZVPyUx+37MlfwzndFsXkCtVaiWoa QwntFVd4G+WanhYjGS4mHYKIdjNf2ogGWj3ZkWEb3VEp+x7j/DXDg9UBTIFip3nJQA137u 1qLqnGT8ac5r8+DFobYFy5oPlChsr1Z7VJ+3FaEB3yYZjSUCtUPjeBUtYk8Xog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618507410; a=rsa-sha256; cv=none; b=Ky3U3TGccthKL36gS2taAl3ITIucF4FLpoc/Sh8fho9UnsQF4c0cYIcwNND253TyHtf94z Dz5GrCFlZ5bc6Ek0T/bLY9YyCpOjSxNBKQCrnKvmykJrE4SC+KIuhTbyZi773KcoMJzOEg P5guWZrFLVrWCkEgf9GlGgyYeGjOEsEO/dS1Q7ibKjJaYc3mozgc/nMpgu2xUHjD4Ps+oQ s0F52Q4gVrqwdgythFJa/e7Jxe35dXAYbQmCreSwKYm5bxxtibpOhRNw9F6Xpg4D/MFDFI Kg5D1lTtQVnVEL/zvGkKH1rJOYN2+5JorBVCOCOQ6VmLuDlcXfwxskPUADH3Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=q0IPTfc2; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=LXuqrXst; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.05 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=q0IPTfc2; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=LXuqrXst; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B7C8726F2E X-Spam-Score: -2.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: h7HYfBwSpTqh 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.