Received: (at submit) by debbugs.gnu.org; 18 Dec 2024 11:16:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 18 06:16:18 2024 Received: from localhost ([127.0.0.1]:33689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tNs2L-0005P3-MF for submit <at> debbugs.gnu.org; Wed, 18 Dec 2024 06:16:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:47390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1tNs2J-0005Ov-Ra for submit <at> debbugs.gnu.org; Wed, 18 Dec 2024 06:16:16 -0500 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 <mail@HIDDEN>) id 1tNs29-0008P0-2j for bug-guix@HIDDEN; Wed, 18 Dec 2024 06:16:07 -0500 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <mail@HIDDEN>) id 1tNs1z-0007r1-UV for bug-guix@HIDDEN; Wed, 18 Dec 2024 06:16:02 -0500 Received: from localhost (unknown [212.132.255.81]) by mira.cbaines.net (Postfix) with ESMTPSA id 3AE7827BBE2 for <bug-guix@HIDDEN>; Wed, 18 Dec 2024 11:15:52 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id e39170fa for <bug-guix@HIDDEN>; Wed, 18 Dec 2024 11:15:50 +0000 (UTC) From: Christopher Baines <mail@HIDDEN> To: bug-guix@HIDDEN Subject: Computing the guix self derivations can require builds Date: Wed, 18 Dec 2024 11:15:48 +0000 Message-ID: <87seqlp7h7.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@HIDDEN; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain I wasn't aware of a issue for this, so I'm creating one. I did send some patches in an attempt to fix this to #61363. The derivations used by guix pull, guix time-machine and other operations work differently to package derivations. I might have understood exactly how in the past, but unfortunately I've forgotten the details. I think the rough summary is that in contrast to packages, you can't view the guix self derivations grafting as a transformation on the built outputs, but rather that transformation is somehow muddled up with computing the derivations. As noted in #61363, the data service is affected by this since it relies on computing derivations being inexpensive to do, and having to potentially perform many builds for some arbitrary architecture when attempting to compute derivations can be very expensive. Note that since the bad behaviour here is dependent on grafts, this only happens when packages involved in the guix self derivations have replacements. I think there's probably other implications of this as well, substitute servers don't store grafted outputs generally, although I think the use of grafting here probably means that they are storing and providing substitutes for grafted outputs. However this is fixed, I think you'd need to end up with two properties. Computing the derivations doesn't require performing builds, and grafting is a transformation on the outputs of those computed derivations. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmdiruRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfxXw/9FmuWej+XaXULi9QBIovMM/6FJeH4Wtqo Yr9R3GyLVy/w4hfXKngV1hRyB19a97W//XII8u82MUHBGKwxMtA4ounbH5fj/5pi n5Dv5WJeOjXZVnSTDUzj7fiznnEhTh12wSUaZlRiO2kx4uPU7GwecaiEjCGBbOvd 32PZk19S+UOIKi6P2vyUv+nTDsBglSiSSi4tUTO60YfkqyYHjA9k8ObuIUsKe0hc sxmcfvt6lFtXIRrlVbiQIZT4km+MnYjzwFw3gTZ6tSyGiGYgsdJuCGFFjzxPj6Oc CoEoBx1YL98JDKVKZYDUuakyDC+jyiUy+qmOh+VUVrXrmHSnzaMnc40Uvw5UmiyC S3cg3zCu/dE+IX/2gMWU5mUi8S1Mq+NOga8KArk/6aqXQROUyJQ684JgFbdV0vTy cCFlg96OSZakKWf1StWRzqjcLNT27rtfibbgn/yhxgIr+3ttIBfKzHlsn2t3N5Oq /oBW2lApKYUG6a+TpIk+gCH4KC2yt5g3mNKL4wX0bw/BdriiCU4QSO7xUwsW8aO8 iFlijEjFT7fd97bfV8ekNzXh0EmuuuZRJi7TjMfHqF9DllIWsTiAlZ2bK3vh7sTS 4GsdNVXPyDqe81+4WgCNpbkMjQe3tE3jB1nuqnfIC96/lIkapZFpO5OmYImcEij0 +5lpB4jzljM= =n1h/ -----END PGP SIGNATURE----- --=-=-=--
Christopher Baines <mail@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#74942
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.