From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eGBvDSc3eGB0lAAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 14:52:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qDFbByc3eGCqLgAAB5/wlQ (envelope-from ) for ; Thu, 15 Apr 2021 12:52:55 +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 60DDC20E30 for ; Thu, 15 Apr 2021 14:52:54 +0200 (CEST) Received: from localhost ([::1]:48606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX1UL-0007pB-A4 for larch@yhetil.org; Thu, 15 Apr 2021 08:52:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWtGU-0002Sd-9n for bug-guix@gnu.org; Thu, 15 Apr 2021 00:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWtGT-0003oV-VV for bug-guix@gnu.org; Thu, 15 Apr 2021 00:06:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWtGT-00077e-PN for bug-guix@gnu.org; Thu, 15 Apr 2021 00:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47786: Several build --keep-failed result in wrong env variables Resent-From: Dmitry Matveyev Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 15 Apr 2021 04:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47786 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47786@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161845952827335 (code B ref -1); Thu, 15 Apr 2021 04:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Apr 2021 04:05:28 +0000 Received: from localhost ([127.0.0.1]:36163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWtFv-00076o-40 for submit@debbugs.gnu.org; Thu, 15 Apr 2021 00:05:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:46938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWrnb-0004mH-Lk for submit@debbugs.gnu.org; Wed, 14 Apr 2021 22:32:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWrnb-0007fs-FA for bug-guix@gnu.org; Wed, 14 Apr 2021 22:32:07 -0400 Received: from forward101j.mail.yandex.net ([2a02:6b8:0:801:2::101]:46816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWrnY-0005Q2-1o for bug-guix@gnu.org; Wed, 14 Apr 2021 22:32:07 -0400 Received: from sas1-a99d60d0e232.qloud-c.yandex.net (sas1-a99d60d0e232.qloud-c.yandex.net [IPv6:2a02:6b8:c08:920:0:640:a99d:60d0]) by forward101j.mail.yandex.net (Yandex) with ESMTP id E0F9B1BE0541 for ; Thu, 15 Apr 2021 05:31:56 +0300 (MSK) Received: from sas8-6bf5c5d991b2.qloud-c.yandex.net (sas8-6bf5c5d991b2.qloud-c.yandex.net [2a02:6b8:c1b:2a1f:0:640:6bf5:c5d9]) by sas1-a99d60d0e232.qloud-c.yandex.net (mxback/Yandex) with ESMTP id p5mTMv1wFR-VuIWuReZ; Thu, 15 Apr 2021 05:31:56 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1618453916; bh=cqwHh5+im/IDrcQvqGv7iXdPOzQQb7IR07xXR4fiBJs=; h=Reply-To:Subject:To:From:Message-ID:Date; b=Fx47fwed7GHwrmsq+uIxWpU0i0gYtI+wCA+YowkNyKmr8nRfK/n0i8aA/8jK5F9IH xlHOhtDSC0m9Onxs+SgvNdQkGjXwjRBr6D2d7Ix00OyDs09VbR9WmSTDgNXkE7iY2K ejmr3dl2KaM4zP1FJgYxD4hfdrhy4yG9q94ph9PY= Received: by sas8-6bf5c5d991b2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id USPNE92vNu-VuKSKlJQ; Thu, 15 Apr 2021 05:31:56 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) User-agent: mu4e 1.4.15; emacs 27.2 From: Dmitry Matveyev Date: Thu, 15 Apr 2021 08:31:54 +0600 Message-ID: <87r1jc5ld1.fsf@yandex.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a02:6b8:0:801:2::101; envelope-from=greenfork.lists@yandex.com; helo=forward101j.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 15 Apr 2021 00:05:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 15 Apr 2021 08:51:43 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: greenfork.lists@yandex.com 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=1618491174; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=cqwHh5+im/IDrcQvqGv7iXdPOzQQb7IR07xXR4fiBJs=; b=QLdy1Z/+3LQ8JMCuwa00S7lMVJQ0P+FGtIUfg9Zlhuss6+tI8OP0zpUKMTxyNVtna0iCT/ BkxmW1FiL6rDiToUVCkahMWS+RQbXfSPOa8biKgdCHfEuurhq7D56AzlfLmwvGDPpalvYZ dDJaT4ggj4bYNZgwxuZfs/Hsgov9WbMw1O/9OHSJfbBJTkCveZETk/Y6mkN5vExYUCw55b NMapOnvaWpey2j+SVDGM8i4ZOJJSCcifLgvbpbQ5cjdVDfo/YDYr+zCt4TgiMJXgJ/gyy7 4t6DxQjMVetDYl0BTbV1XKo0tEEp7cvu6t/3WF+1/IZ4lCGD0W9PYDkHsU2Obg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618491174; a=rsa-sha256; cv=none; b=GgMD0SED7k4sCzLHqYuT3VppjgBiNnKeTdeVQjDhjzaUqw5O8qiSDDkpsEsK6+eZ3Kbgj3 cM5/93Z+ydAqBKRUkfI/UF7iovV8aNs63NhD2DmpuJVonkWkD35Yx++4zOiqBnjjuo0mAW 01X4WD1YuHIvXELyG5zpbQ73yiUfiAxoyjUbvuHCQjy4c7uzajnT+03FCw52oqbn684Jmx 29QMqaCH+S5BO5rEW/daRagOJIVc+t6ZA5oop++ETm8rMJUAEJWHklqAAzBYpZtd5zcpoJ MLvLoH/Pw/Y3gSRsNpBldls6/F9wRUc5R/aHloRWMr62q5xpeTN2/HyvbDDYGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yandex.com header.s=mail header.b=Fx47fwed; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=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-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yandex.com header.s=mail header.b=Fx47fwed; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=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: 60DDC20E30 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: iUeBicNj7gpz 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. Regards, Dmitry.