From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cIJyLJ1Ff2BURAAAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 23:20:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0N77J51Ff2AbAgAAbx9fmQ (envelope-from ) for ; Tue, 20 Apr 2021 21:20:29 +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 D80C62756C for ; Tue, 20 Apr 2021 23:20:27 +0200 (CEST) Received: from localhost ([::1]:43254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYxnC-000606-CO for larch@yhetil.org; Tue, 20 Apr 2021 17:20:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYxms-0005zz-Sc for bug-guix@gnu.org; Tue, 20 Apr 2021 17:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYxms-0006lK-Kv for bug-guix@gnu.org; Tue, 20 Apr 2021 17:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYxms-00058C-G4 for bug-guix@gnu.org; Tue, 20 Apr 2021 17:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47919: Sourcing environment-variables may send to wrong directory Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 20 Apr 2021 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47919 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Alexandre Hannud Abdo Cc: 47919@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 47919@debbugs.gnu.org Received: via spool by 47919-submit@debbugs.gnu.org id=B47919.161895357819667 (code B ref 47919); Tue, 20 Apr 2021 21:20:02 +0000 Received: (at 47919) by debbugs.gnu.org; 20 Apr 2021 21:19:38 +0000 Received: from localhost ([127.0.0.1]:56217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYxmT-000578-QI for submit@debbugs.gnu.org; Tue, 20 Apr 2021 17:19:38 -0400 Received: from tobias.gr ([80.241.217.52]:39224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYxmR-00056z-T0 for 47919@debbugs.gnu.org; Tue, 20 Apr 2021 17:19:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=Asoz+l4M2ZGm5JeEkkLqVKGVOtWB1n2lsoEbvooqcdY=; h=date:in-reply-to: subject:cc:to:from:references; b=ZwbWLiFdePfYW6rbsBFbvo+m/u0dpIpL21E0r 4Gz+d4f2MvkEYmHoOcqzLqCs0/cTY+dNB9lw0xxsbnM0xKMgi3y4dG8tsxyHBIVOkciaE5 VLKZVFeXCAEaRKpa1AdWpUMs0BGM/JEi/yKxQSWn1Xl2JN05+jkPNB1MUe5vx7Qv/gnL9U omynRnhXEw+QYdjr8k1jkceAUcyXRHiBgif3EH/3b2lxiT4TOlQnCbrFJpYoR9+TYRMBHk 8D2ymTmO9O1jaM2915DIWyMvxLFsHD7rGT5fhEGJoDnr975OpjeBqcYGhybN1fJQ6/G9RT +ifzOQ3YsJi5Bvl2eHxcbhsZg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 93b20bc8 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Tue, 20 Apr 2021 21:19:38 +0000 (UTC) References: In-reply-to: BIMI-Selector: v=BIMI1; s=default; Date: Tue, 20 Apr 2021 23:20:12 +0200 Message-ID: <875z0gmz5f.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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" Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618953628; h=from:from:sender:sender:reply-to: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=Asoz+l4M2ZGm5JeEkkLqVKGVOtWB1n2lsoEbvooqcdY=; b=AXeA8nPynTdWK3eTZYPP2BeeVKjiO+tspRp0EiNKMpBhn9e3ZXFeB32/Wq4oVKvaitcN2U 9Xl8vu6iRPupEBM23uFamtnpCxX6MgDNaEZT6fFCzZb4DeGwkLy2NVAxi8HRD/5tBAcKuq zGATYKal6WNuMkAn/8902qKB6hH3BMmDFtfIM0m4ZDqMVGb6eUtQeKWFmydWMaQkwOkkSI unE5mblBJu8vZ1XdO1QMnkMUePo+m26tzj3vX8AOPnN01PE2u7DlHOShtnOr9F7Wa5294H pyCjAGjf/Ysxpth9+7zIY1KzsPTlCuZrsW3UtUIj3jX350FIzoEIIntcAdICuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618953628; a=rsa-sha256; cv=none; b=KcT/mGyuna+4NQdWkUmm1vq2nGTyLcUfb20aMs9L6ufw8zWb5X6eADicI8IiPbNKtkd7dT 5cHX2p0lhl7QaNRMJ01jwM0UOKM3n0CSrH5gQThCt/04G+7A7JfZghMRYg3gXoYJvsddby 6wxPqnV8zI+BnrODeYTRr30Km4JInGffA2pODs98Q0dSrlj5pQKYoYYS6mESXjC+i6hwNo b+ZbZ3zG2OwujGsVGwzB3FhKED0ZnrdLsNotASqS2af4qZ1EhSF6fd7J4R/IMknAqgAf/4 khxehIgMq49K88+EFuplSAGIsF8y06oSryMzLVd2dZq5JlX1IMrFS9C2NCyZnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=ZwbWLiFd; 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: -4.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=ZwbWLiFd; dmarc=pass (policy=none) header.from=gnu.org; 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: D80C62756C X-Spam-Score: -4.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: rDddAwIhwoWO --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Alexandre, Alexandre Hannud Abdo writes: > /tmp/guix-build-[package].drv-1$ source environment-variables > /tmp/guix-build-[package].drv-0/[package]$ If Guix used a different build directory depending on how many=20 previous builds were kept, many builds would become=20 irreproducible. Instead, Guix always uses .drv-0 inside the build container. When=20 you pass --keep and the build fails and .drv-0 already exists on=20 the host, it's renamed. If you want =E2=80=98environment-variables=E2=80=99 to match the environmen= t=20 outside of the container, rename /tmp/guix-build-[package].drv-1=20 to /tmp/guix-build-[package].drv-0. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYH9FjQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15Cd0A/RgCltWkrFSlHDbKo7InkVvyfLrmm7dWw6yBmdwh U2HqAP0chpIdpinbEVrCNOSZZx+VETrrHjLR5XnCmNU8H4loBQ== =k3rB -----END PGP SIGNATURE----- --=-=-=--