From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SHeSJoPUv2Q8fAEASxT56A (envelope-from ) for ; Tue, 25 Jul 2023 15:56:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iDJ5JoPUv2TKLAAA9RJhRA (envelope-from ) for ; Tue, 25 Jul 2023 15:56:19 +0200 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 63CC533FEA for ; Tue, 25 Jul 2023 15:56:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=WeHmw3Qu; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690293379; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=xRjpXXc/zj765N0hhEteecfIQXSsqVb2tQZhhD8QiRQ=; b=LBhduJDmW2sd6+OxCLZc4DnB3rw8bmlgG0S2t04udMFu9dYqUdyttby5YXY7EjxAlpuvA1 4LXyK3LE1i05D9fXu4X3tyfe9f+dLA3he8KH5n2DYkHGuptZUUvfjojx91Q9jiGl7plZOz 4sIBwmkClKOC9D2daFUWDchh9xb1ceeRVD0fHx8hko6eTmXPJAlROdy3UTbm5pfkXbyHlQ 9wkKD/6607/OqCKGorPd5DOHbE4ZUQRobL6nybErFDNAzH1fwrgjl4byDIVfTxx2+KSw1U stKj4NdbVA1UmbThX2k5SUyj1lBt/E5etruirQJiAIUU+j37TjmOYLN7YsCnDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690293379; a=rsa-sha256; cv=none; b=p+8LeRRoBBzkBG3mOWJO/t8WfupFdXQmVg8fnnNVX3VK7NRHANQmZ1NmNBjpswDDeFX8P1 dBaBmwuy7O+gC+6BSWYV13du8zObngxxkN+fcpWIJUsPQUwiszRUBg5+2ZNsn+0VXgzI+7 U6RUEQU5cb0ZMFJhpjN1zIwVwvowv3+HPLUJ62UE9T4RpCb9jfCzUQ+3aeFqTLX4n9dH3G CMK5KtpgT0PSWqmGOAPFttq8zN+4iWIc+mEvVgAxDTK9NyGK1fH37jq+fceBe1YJBsTGoD dJvqBmKxOqGTa2QlTelt0RqpRvfXF/DDneICnjfcepTqHwsuOqOFEKEqcjIgbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=WeHmw3Qu; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOIWB-00052E-GX; Tue, 25 Jul 2023 09:56:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOIWA-00051Z-9y for bug-guix@gnu.org; Tue, 25 Jul 2023 09:56:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOIWA-00046b-2E for bug-guix@gnu.org; Tue, 25 Jul 2023 09:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOIW9-000784-Kf for bug-guix@gnu.org; Tue, 25 Jul 2023 09:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64856: guix shell cache doesn't consider grafts Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Jul 2023 13:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64856 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64856@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.169029334126686 (code B ref -1); Tue, 25 Jul 2023 13:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jul 2023 13:55:41 +0000 Received: from localhost ([127.0.0.1]:45946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOIVp-0006wM-GX for submit@debbugs.gnu.org; Tue, 25 Jul 2023 09:55:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:46952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOIVn-0006rv-Dw for submit@debbugs.gnu.org; Tue, 25 Jul 2023 09:55:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOIVb-0004ew-Po for bug-guix@gnu.org; Tue, 25 Jul 2023 09:55:28 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOIVa-0003jt-6j for bug-guix@gnu.org; Tue, 25 Jul 2023 09:55:27 -0400 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-76758b855edso292739385a.0 for ; Tue, 25 Jul 2023 06:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690293325; x=1690898125; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=xRjpXXc/zj765N0hhEteecfIQXSsqVb2tQZhhD8QiRQ=; b=WeHmw3Quva+kcE1Du43EO6bPlwM97bRRtS4CzrNWqRC5zTLE0N2Hz0I3GKkN7ejjd6 Xg3URJiH8AgluViCc4Ro3ahKDYWQZ+Pww6PA3gzxCPiCuHEDOCOk8TRDEwFZ5WXLI3YH ZXyxJ0q7j2zb5kYrASWrULGa+35jgsD1ZtBfKCGReNUcxqCx8IzNA7NIsHEDBNLcczI+ GIF4vVxzgmjk6URS5Opettl8M3HWQu3ipdIW0ibMewc4HBoy6oVmlVhK+Sxfm4M1HLlJ O2iAW0XIsd74AxlE2cFepLSClhZ8H5DXl6iaABh0R1PfJtgSscAJLK50wvJBiwMtql/2 edtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293325; x=1690898125; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xRjpXXc/zj765N0hhEteecfIQXSsqVb2tQZhhD8QiRQ=; b=YT/Kp9sbshcTZaoLoXE3PlgLyIlEnUBar6wPOAVzQLsur6y1fPfSGk3bGOMg0eg9t4 X+K6NUFn8G3vI+MKBy/eWHhHPXK5mQ4WWzLRWck1/3II2+fDYseA1TvY3+mSQSp2nqTr yV3rOSwlfuR3VnsUsrVZxd5iWdkTWIPs8UXmtNU2QcsjTH1tgR9Lim1rmbl8bPntDav2 Wn1XpBphsDqaLSyIgNnWqLVD+ivCNXTi8qO+p1aKXMakb8lL53209leUHxmlsbByqB3m vfIcHqxsr/HWiUcOkhPQnI8AXV+zwo465hdl6jNUoh28otCwsoR3p7Ep/OHO3OIKfOhY ty+A== X-Gm-Message-State: ABy/qLZKbIfULu2SCpQW4vwCExUNGEoZ6REWfajPXDgt7ze5h/JCI8Yb bvB89mSHjc8rOkItq5FY4QMHdgi51r0= X-Google-Smtp-Source: APBJJlElAqHY9CR9FQ2sFVij2Zn3LVyw3pbwFfVuCCoHUM1yQMkSka7vvZsCZAjpKocpkMkweRu7iQ== X-Received: by 2002:a0c:f0c7:0:b0:63c:cc0f:52e7 with SMTP id d7-20020a0cf0c7000000b0063ccc0f52e7mr2803705qvl.2.1690293324743; Tue, 25 Jul 2023 06:55:24 -0700 (PDT) Received: from hurd (dsl-10-134-200.b2b2c.ca. [72.10.134.200]) by smtp.gmail.com with ESMTPSA id w2-20020a0ce102000000b0063642bcc5e4sm4362024qvk.9.2023.07.25.06.55.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:55:23 -0700 (PDT) From: Maxim Cournoyer Date: Tue, 25 Jul 2023 09:55:22 -0400 Message-ID: <87h6ps2j05.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x731.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: 2.86 X-Spam-Score: 2.86 X-Migadu-Queue-Id: 63CC533FEA X-TUID: Tc47YtnFMRKZ Hello, While investigating https://issues.guix.gnu.org/64836, I discovered that the cache of 'guix shell' doesn't take into account grafts for subsequent invocations. Consider, using Guix at commit 21b718f4d6c3ded8ef50d12f6e9ae6474f74620f: --8<---------------cut here---------------start------------->8--- $ guix build gtk+ /gnu/store/6vqx7nip7r95h2nhvhb9vxzjpri581b9-gtk+-3.24.37 $ guix build --no-grafts gtk+ /gnu/store/2n2kprz35a19ibs5kbjsb3k4cdl69q2w-gtk+-3.24.37 $ guix shell gtk+ -- sh -c 'realpath $GUIX_ENVIRONMENT/lib/libgtk-3.so' /gnu/store/6vqx7nip7r95h2nhvhb9vxzjpri581b9-gtk+-3.24.37/lib/libgtk-3.so.0.2405.32 $ guix shell --no-grafts gtk+ -- sh -c 'realpath $GUIX_ENVIRONMENT/lib/libgtk-3.so' /gnu/store/6vqx7nip7r95h2nhvhb9vxzjpri581b9-gtk+-3.24.37/lib/libgtk-3.so.0.2405.32 --8<---------------cut here---------------end--------------->8--- The 'guix shell --no-grafts' invocation simply reused the same cache as the previous command, so grafts are in use, which is non-intuitive. The reverse would be true as well: --8<---------------cut here---------------start------------->8--- $ guix shell --rebuild-cache --no-grafts gtk+ -- sh -c 'realpath $GUIX_ENVIRONMENT/lib/libgtk-3.so' /gnu/store/2n2kprz35a19ibs5kbjsb3k4cdl69q2w-gtk+-3.24.37/lib/libgtk-3.so.0.2405.32 $ guix shell gtk+ -- sh -c 'realpath $GUIX_ENVIRONMENT/lib/libgtk-3.so' /gnu/store/2n2kprz35a19ibs5kbjsb3k4cdl69q2w-gtk+-3.24.37/lib/libgtk-3.so.0.2405.32 --8<---------------cut here---------------end--------------->8--- The ungrafted cache got reused by the invocation that should have used grafted inputs. -- Thanks, Maxim