From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gJWDB/15SWMKTQEAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 17:02:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uOOyBv15SWMePgAAG6o9tA (envelope-from ) for ; Fri, 14 Oct 2022 17:02:21 +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 6A17E11462 for ; Fri, 14 Oct 2022 17:02:20 +0200 (CEST) Received: from localhost ([::1]:35876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojMCZ-0000Je-Hw for larch@yhetil.org; Fri, 14 Oct 2022 11:02:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojMCJ-0000Hm-2n for bug-guix@gnu.org; Fri, 14 Oct 2022 11:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39230) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojMCI-0005iE-BX for bug-guix@gnu.org; Fri, 14 Oct 2022 11:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojMCH-0006Gg-UK for bug-guix@gnu.org; Fri, 14 Oct 2022 11:02:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58419: Grafting order depends on store connection state Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 14 Oct 2022 15:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58419 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret Cc: 58419@debbugs.gnu.org Received: via spool by 58419-submit@debbugs.gnu.org id=B58419.166575971724081 (code B ref 58419); Fri, 14 Oct 2022 15:02:01 +0000 Received: (at 58419) by debbugs.gnu.org; 14 Oct 2022 15:01:57 +0000 Received: from localhost ([127.0.0.1]:38308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojMCC-0006GK-Hi for submit@debbugs.gnu.org; Fri, 14 Oct 2022 11:01:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojMCA-0006G6-NC for 58419@debbugs.gnu.org; Fri, 14 Oct 2022 11:01:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojMC5-0005he-Fi; Fri, 14 Oct 2022 11:01:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=VOHtYicZc4Ov0Htll6RLeTB6zw7vYmB/DojViBCPaS4=; b=JLMZWXw8iFTCNjjZ5wlm rpFg4pRmwqD4Jz2mBuMf2pxYdh8sNKVHy/uKUmyczMxX9ITV1NLuCUsXTPFD0BIziDWsgy7ohr+zy q+NqAiPoiDHDhRDq1TAJuYRp50FREGH3ddONMZ2NLzDHbsHYwajUhGCAUH7c3DL8DghrpGuGeGVeQ I0YJr0FnFzFdpeTRfmVZ9ahXwxcOuXN6f80FXbbOJYO4uNo2qFReCc8WaGWhf9841SfTfVwMFusDj DxG3s/nzU62XneF1aPzU1C+D4/F4hJ5mw/PwZAU2eKuahqEB41ARlmKckdT6Pqa7XXaJvyQr5Firh ylqlrUaG1yoStQ==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=53136 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojMBy-0003hk-RK; Fri, 14 Oct 2022 11:01:48 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87o7ujjwm1.fsf@jpoiret.xyz> Date: Fri, 14 Oct 2022 17:01:33 +0200 In-Reply-To: <87o7ujjwm1.fsf@jpoiret.xyz> (Josselin Poiret's message of "Mon, 10 Oct 2022 21:40:22 +0200") Message-ID: <87wn92la9e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665759740; 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=VOHtYicZc4Ov0Htll6RLeTB6zw7vYmB/DojViBCPaS4=; b=b7T6TNlHdfLgH8xY1Zo8RXRH3MHv0wKtgmqTMENhJFwwBR8VN/N4tuGTIYiqg/xpyLWSwx Dc3+cE1yh27LIQ6jSVB8MFZVMxNzpjwKtYJgv1rXTCm3whcKhyNtFsUwHOcsFDE5Sg2nyT 9TUibzTuu4YtIp5L5DC/kQQW6aQypfPkMEkftJKTzaO/vDgywfnBNrxMHTGoPgNaIuRq8O sAlTWyBJoQkrw5RMACFKWpNWjF4g81W5IkqDRDWzKF34bHN1Mrj9djwRbPlElR1xXuflBb BQeIa4yQd551fiwBsv6itjeoyqcFtlYxxcqd4l9IqWs5pISJJgTryej5oOA4+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665759740; a=rsa-sha256; cv=none; b=tgIHDYvdju5LfOT7CHmU9GAVQpK8qT8ZI6CNoiQErFvZ3zuJKR4psY0g3pxIMBqkdzqo0F g6MFCF0mFwm8dwEbGTkJEitaTqM5VKbRpclhP4LmnwVG5IhXTahbo4tqOuJ4UnI1o5gHsj uN0N3OaHTBPOap6aXAqOsmVrH4w7KrtJXXerTvaBkFnmrd+z8X8ylRUZuIhHmj+kX0qhMm gJB5o+PqJz0T2eEmUDLqVmOVVjWthzNsXs/ypOpiFumEF6EnFh59ZTwFHDeR3ufKL36vmr C7ZuSNuLVZb3ozxwEWMIvObYDvcvAYxhnJrsTP2z+k7ISxw0PhVsNgh/iBQIww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JLMZWXw8; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -2.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JLMZWXw8; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 6A17E11462 X-Spam-Score: -2.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: WGP9cu19DMUg --=-=-= Content-Type: text/plain Hi, Josselin Poiret skribis: > (let ((right (with-store store (run-with-store store (package->derivation > (specification->package > "password-store"))))) > (wrong (with-store store (run-with-store store (mbegin %store-monad > (package->derivation > (specification->package > "texlive-bin")) > (package->derivation > (specification->package > "password-store"))))))) > (pk right) > (pk wrong)) > > Both derivations differ even though they ideally should be identical, > apparently git doesn't appear in the same place in the grafting > derivation. Right: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- # +++ # @@ -19,17 +19,17 @@ ("x" . "/gnu/store/3bpq5knfvzhxhqfwzqm9br917nz7r0yp-gnupg-2.2.32") ("x" . "/gnu/store/31ffp5lszf1g7h1zw750w621cm14hxlr-util-linux-2.37.2") ("x" . "/gnu/store/zpw3l0y7sq3ag3fmq001x22bdpalw1fy-xclip-0.13") - ("x" . "/gnu/store/f686n3snbkbbf41g7hqyb75dymnckr3z-git-2.37.3") ("x" . "/gnu/store/g8qm4vq1f9v81zg8aazkiaf1j3wb8w0s-dmenu-5.1") ("x" . "/gnu/store/mk4514a1rjf6mqp0z46kzh80z7j1mhbs-xdotool-3.20211022.1") ("x" . "/gnu/store/vmwvxj3ksnmck2cfwsgm9dfi9n41050x-wl-clipboard-2.0.0") + ("x" . "/gnu/store/f686n3snbkbbf41g7hqyb75dymnckr3z-git-2.37.3") ("x" . "/gnu/store/0jlw8kk0ll25lzbz939jaz4sbfkr8gqj-gnupg-2.2.32") ("x" . "/gnu/store/a8k9s0wpf0f3l7nwsscjhnbs5wrn2y1q-util-linux-2.37.2") ("x" . "/gnu/store/4vh3qdhsq6misl3vvgm39zdh4sflz4s0-xclip-0.13") - ("x" . "/gnu/store/svj9wb4jcb701g3fjf0cmi87rv85sx0x-git-2.37.3") ("x" . "/gnu/store/h647qh34g8afyy99gbkngavvlm2p14vn-dmenu-5.1") ("x" . "/gnu/store/n6gsqfcc51m4flr21p8szzic5yh1fpfb-xdotool-3.20211022.1") - ("x" . "/gnu/store/k28gncxkgxy3hn8qzwylsazc00pwr71s-wl-clipboard-2.0.0")))) + ("x" . "/gnu/store/k28gncxkgxy3hn8qzwylsazc00pwr71s-wl-clipboard-2.0.0") + ("x" . "/gnu/store/svj9wb4jcb701g3fjf0cmi87rv85sx0x-git-2.37.3")))) (unsetenv "GUILE_LOAD_COMPILED_PATH") (unsetenv "LD_LIBRARY_PATH")) (exit @@ -44,10 +44,10 @@ (("/gnu/store/3bpq5knfvzhxhqfwzqm9br917nz7r0yp-gnupg-2.2.32" . "/gnu/store/0jlw8kk0ll25lzbz939jaz4sbfkr8gqj-gnupg-2.2.32") ("/gnu/store/31ffp5lszf1g7h1zw750w621cm14hxlr-util-linux-2.37.2" . "/gnu/store/a8k9s0wpf0f3l7nwsscjhnbs5wrn2y1q-util-linux-2.37.2") ("/gnu/store/zpw3l0y7sq3ag3fmq001x22bdpalw1fy-xclip-0.13" . "/gnu/store/4vh3qdhsq6misl3vvgm39zdh4sflz4s0-xclip-0.13") - ("/gnu/store/f686n3snbkbbf41g7hqyb75dymnckr3z-git-2.37.3" . "/gnu/store/svj9wb4jcb701g3fjf0cmi87rv85sx0x-git-2.37.3") ("/gnu/store/g8qm4vq1f9v81zg8aazkiaf1j3wb8w0s-dmenu-5.1" . "/gnu/store/h647qh34g8afyy99gbkngavvlm2p14vn-dmenu-5.1") ("/gnu/store/mk4514a1rjf6mqp0z46kzh80z7j1mhbs-xdotool-3.20211022.1" . "/gnu/store/n6gsqfcc51m4flr21p8szzic5yh1fpfb-xdotool-3.20211022.1") - ("/gnu/store/vmwvxj3ksnmck2cfwsgm9dfi9n41050x-wl-clipboard-2.0.0" . "/gnu/store/k28gncxkgxy3hn8qzwylsazc00pwr71s-wl-clipboard-2.0.0"))) + ("/gnu/store/vmwvxj3ksnmck2cfwsgm9dfi9n41050x-wl-clipboard-2.0.0" . "/gnu/store/k28gncxkgxy3hn8qzwylsazc00pwr71s-wl-clipboard-2.0.0") + ("/gnu/store/f686n3snbkbbf41g7hqyb75dymnckr3z-git-2.37.3" . "/gnu/store/svj9wb4jcb701g3fjf0cmi87rv85sx0x-git-2.37.3"))) (map (match-lambda ((name . file) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable If we squint a bit, we realize it=E2=80=99s the same thing but in a differe= nt order, which is good news: it=E2=80=99s functionally equivalent. The downside is obvious: it=E2=80=99s stupidly non-deterministic, and we ca= n end up building the same grafts multiple times. The order differs in two places: in the definition of =E2=80=98%build-input= s=E2=80=99, and in the definition of the =E2=80=98mapping=E2=80=99 variable. This can = be solved by sorting things in the right place, but that needs some thought. To be continued=E2=80=A6 Ludo=E2=80=99. --=-=-=--