From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2IhgB6GheGAiGwAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 22:27:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0AsjAaGheGALbQAAB5/wlQ (envelope-from ) for ; Thu, 15 Apr 2021 20:27:13 +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 657F714F03 for ; Thu, 15 Apr 2021 22:27:12 +0200 (CEST) Received: from localhost ([::1]:33394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX8Zx-0007J2-Ll for larch@yhetil.org; Thu, 15 Apr 2021 16:27:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX8Zq-0007In-6Z for bug-guix@gnu.org; Thu, 15 Apr 2021 16:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX8Zp-00029w-VP for bug-guix@gnu.org; Thu, 15 Apr 2021 16:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX8Zp-0007X1-RT for bug-guix@gnu.org; Thu, 15 Apr 2021 16:27:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47786: Several build --keep-failed result in wrong env variables Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 15 Apr 2021 20:27:01 +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: greenfork.lists@yandex.com, 47786@debbugs.gnu.org Received: via spool by 47786-submit@debbugs.gnu.org id=B47786.161851838828911 (code B ref 47786); Thu, 15 Apr 2021 20:27:01 +0000 Received: (at 47786) by debbugs.gnu.org; 15 Apr 2021 20:26:28 +0000 Received: from localhost ([127.0.0.1]:39330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX8ZH-0007W8-HO for submit@debbugs.gnu.org; Thu, 15 Apr 2021 16:26:27 -0400 Received: from world.peace.net ([64.112.178.59]:40972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX8ZF-0007Vr-HY; Thu, 15 Apr 2021 16:26:26 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lX8Z9-0008Ef-45; Thu, 15 Apr 2021 16:26:19 -0400 From: Mark H Weaver In-Reply-To: <87r1jc5ld1.fsf@yandex.com> References: <87r1jc5ld1.fsf@yandex.com> Date: Thu, 15 Apr 2021 16:24:34 -0400 Message-ID: <875z0ni9cy.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , 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=1618518432; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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; bh=ciUbJ38vo3V1kkWfhlDbSLehfN3ndTomOGwgyKmfpAw=; b=CE2LFV3MGb3WNXcxcU969uiKwRRhHJwwxgpJno7xh3X59a57/Lx0i1VE8ycFRkhuq8s3AM +seLDz4YjFaXDKEPWjANQbPosoIS78fYAMVCK/KqYt53PU/vx4HnC8BCN99OHR3qGTM3Ue JlbPSzV6Tki2dyg+xTlrnhkApapHl+wXmX8y4Tbo+OFgQeWRI6s+aIzvBeQByYjG1A+Bqt 6mWBuk/Sr1+K8UdecDPduwEY1I48ZHdV6a/zNwVbpm8acowgKoeMZxv42UZ41lTCQ2EstZ XKwZaPQ9YcqKTQbj3UyDpNXsZTLLWmB9/laGyCbrRSA4M1oWOqoZvXw4uy9IbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618518432; a=rsa-sha256; cv=none; b=ZmMz+xJa2KTJxNuROoaVahPxQM/KvcLPvgP8P7XFTAwUlk+ku52VvJIn/KoqacByhQz90z AQY/aJPy8V87IO4v0cZTaKnrPZz33/gS2YMqMNTGBVKuvUZFfSi/fdsdpfBAT0fDF0KYwr 6DM9HePrxmYF9jPl969BqCYzAQ3vN2ZB/mduK/S9/jLrRmSToScs0ggTtD2oeZdOqf4wu7 u6S7e/eo4D4nMDBPrJCLpvwT3PuULCvVU0tbdiWG7zbWoUjKu4163Na9RJR2CPVyiNQXh6 vivzIOCLpD1je6KS6frWnMxZcPT2YduGDGpeaVmGfYJtSVDJvezC5JIYnH2jig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 657F714F03 X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: mzqofEkUo1Vo tags 47786 + notabug close 47786 thanks Hi Dmitry, Dmitry Matveyev writes: > 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. This is the intended behavior, although I agree that it can be surprising. The environment variables refer to "/tmp/guix-build-=E2=80=A6.drv-0" because within the build container, the directory is _always_ named "/tmp/guix-build-=E2=80=A6.drv-0", regardless of what name was given to the directory outside of the build container. In general, where practical, we try to isolate the build container from irrelevant details about the host system (such as the contents of /tmp), because those details might leak into the build outputs, compromising reproducibility. For example, some packages retain the absolute file name of the build directory, as an aid to developers when users report bugs. Reproducibility of such package builds would be lost if the build directory name varied depending on the contents on /tmp on the host system. Does that make sense? Thanks for the report, Mark