From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +KH5Kokbx2LuIgAAbAwnHQ (envelope-from ) for ; Thu, 07 Jul 2022 19:44:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aCXoKokbx2LUQgEA9RJhRA (envelope-from ) for ; Thu, 07 Jul 2022 19:44:41 +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 B40B01A6A9 for ; Thu, 7 Jul 2022 19:44:40 +0200 (CEST) Received: from localhost ([::1]:35926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9VYN-0003j7-HT for larch@yhetil.org; Thu, 07 Jul 2022 13:44:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9VXp-0003it-0L for bug-guix@gnu.org; Thu, 07 Jul 2022 13:44:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9VXl-0005oN-U2 for bug-guix@gnu.org; Thu, 07 Jul 2022 13:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9VXl-0003cu-Pd for bug-guix@gnu.org; Thu, 07 Jul 2022 13:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56441: guix time-machine broken by profiles speed-up Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 07 Jul 2022 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56441 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 56441@debbugs.gnu.org Received: via spool by 56441-submit@debbugs.gnu.org id=B56441.165721579813881 (code B ref 56441); Thu, 07 Jul 2022 17:44:01 +0000 Received: (at 56441) by debbugs.gnu.org; 7 Jul 2022 17:43:18 +0000 Received: from localhost ([127.0.0.1]:57783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9VX4-0003bp-HP for submit@debbugs.gnu.org; Thu, 07 Jul 2022 13:43:18 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9VX2-0003bg-5W for 56441@debbugs.gnu.org; Thu, 07 Jul 2022 13:43:16 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1657215786; cv=none; d=zohomail.com; s=zohoarc; b=gwPEzDOUuHsyjLUfM8CY5fq+iYlN4aKrjOltaEolttsu9XHX0S9l6/hxamO+SYDlPnc3+DXSpKrg8OXKc4N7Ci16B1MulDrU6NKUHDBGeNc8Y1n3o3duZQ2jMQhLNxTaN62+/CydibDZ0Axc7gOQ6xDYnsl3P9oJg/hh0zeJkoQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657215786; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OjhJnCrIAusEyxvfbn5i+ovho0xWnK/UwTKHacS9Rxs=; b=jUrqbksrnI62N2fQOAxEeE9TFr76fsZGiUd7E3TSdCFMfQ+aDhAE/AN8w0fA/UarzOtULQTsuikk5cSq3zxQEXhlWBFHlXyVutDZjsiL770mDUU/G6Kh9Uz5GBi4noDE1RNEbPQWEdDaqlhUGB4WZHEKavGztM5YdXyphuG5UMY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1657215786; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=OjhJnCrIAusEyxvfbn5i+ovho0xWnK/UwTKHacS9Rxs=; b=g5p1slDH4ttkyHLbvRz+ILc5WXQVvcLLWF6F3xk84ow4mjDEqEW+4UutQIgynLq+ Njjsea+0DhhcB8xq5yTxl5Upv5e13rsGfKcoaskRcS+Tm5GZHcSJyqmitaZ2astI7Ta 13yiH3jbnusdDp8Y0Di3PqVL1mF1EZMaoRRyBXAs= Received: from localhost (209-110-142-46.pool.kielnet.net [46.142.110.209]) by mx.zohomail.com with SMTPS id 1657215781009731.4169955453525; Thu, 7 Jul 2022 10:43:01 -0700 (PDT) References: <867d4oq3gr.fsf@gmail.com> User-agent: mu4e 1.6.11; emacs 28.1 From: Ricardo Wurmus Date: Thu, 07 Jul 2022 19:29:58 +0200 In-reply-to: <867d4oq3gr.fsf@gmail.com> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87wncozun2.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657215881; 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: 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:dkim-signature; bh=OjhJnCrIAusEyxvfbn5i+ovho0xWnK/UwTKHacS9Rxs=; b=W84CQknEFrvIOhF24vuBHhGflPWERd5SCfDXJfrQ+fyvvR5z8Ih3nK27QjJzI/UTrlxH1n uNHBTmiReAvhh5oGSmOhiED43j3sRDWKzy4axb2YvutL3dpH4J0kg3lJsAbWLwRAmfxCu/ GSSAB2M/uH1CsXGODUngbemTGlnhJfPszDkNFjHCx5KVx8v79BNFpaRiq4Y3bnfjzZkqNS fcnzPGM+sInil2fASGOz0TPntGFGcdR9o/jzKakHgzTsZdsJ5gij62AsDa9AOpa1mKV4SS Fe9uBDPh2eQKlX1RI47AMdH8fqJpz6DgCEUCRxKm0X+0zMiPvtmuhDRj2mPPFg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1657215881; a=rsa-sha256; cv=fail; b=erOvO3Zc87eZNeew1FVF6f2UHmrjqrb2sU62wuYOZP6yCXBqholGBUP3r7fC/GvxSBR2r7 nheN8BG5aD78fBfmi5cyQ/SlG+mUp5i29o2UmMZWEHwwt0FL/dGEQ+7/jn1Nlh3CWGkgBE alYm1gCL1HX/IEQYqaMCJUECh9E4VP/3bsUSEw444yCAG2OlXSRvbja3CrBXlm+8Knn0uE fPSq7WvCHHZNPMLc5at6w3SvUzg6cQwCM5jERmDdQ8Kw/jtGBB62ukpcY0Iq8VZVrjcCAy WsURfIx1O1K0AbnIKlc6ZpTZydanNqn7noZDZnpbCZrIcyN2uvdM6j411vpiIA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=g5p1slDH; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; 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.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=g5p1slDH; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; 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: B40B01A6A9 X-Spam-Score: 2.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: LnIQBayQxJxM zimoun writes: > Bug#55499 [1] is fixed by 4ff12d1de7cd617b791996ee7ca1240660b4c20e. > However, because the manifest version is going from 3 to 4 with new > fields, the new Guix cannot builds the old Guix. > > Commit 4ff12d1de7cd617b791996ee7ca1240660b4c20e is not able to go to its > parent 9b8c442b254b82196fe2492142b3c3bbbd891a1b. > > $ git rev-parse 4ff12d1de7^ > 9b8c442b254b82196fe2492142b3c3bbbd891a1b > > $ guix time-machine --commit=3D4ff12d1de7 -- time-machine --commit=3D9b8c= 442b25 -- help > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > Computing Guix derivation for 'x86_64-linux'... \ > The following derivation will be built: > /gnu/store/r5qk23fibxn5ryd2k7b8qkbryqv4m3ds-profile.drv > > building package cache... > |builder for `/gnu/store/19nk2x26s0dp68r7d36ifbg0ck0q3xps-guix-package-ca= che.drv' failed to produce output path `/gnu/store/axqgrls563slnp76x60dqlv7= sdwcm2ly-guix-package-cache' > build of /gnu/store/19nk2x26s0dp68r7d36ifbg0ck0q3xps-guix-package-cache.d= rv failed > View build log at '/var/log/guix/drvs/19/nk2x26s0dp68r7d36ifbg0ck0q3xps-g= uix-package-cache.drv.gz'. > cannot build derivation `/gnu/store/r5qk23fibxn5ryd2k7b8qkbryqv4m3ds-prof= ile.drv': 1 dependencies couldn't be built > guix time-machine: error: build of `/gnu/store/r5qk23fibxn5ryd2k7b8qkbryq= v4m3ds-profile.drv' failed IIUC the problem here is that PACKAGE-CACHE-FILE, a profile hook running inside an inferior (=3D with an older Guix), is operating on a manifest that uses the new version 4 format. That manifest was built with the *current* version of Guix that understands the version 4 format. PACKAGE-CACHE-FILE uses GEXP->DERIVATION-IN-INFERIOR and the inferior is a PROFILE that=E2=80=99s made from a given MANIFEST value. That PROFILE is *not* built inside the inferior, so it doesn=E2=80=99t use the old manifest format. The cache generation is happening in /gnu/store/17v5781w8kl1snp826jl6z40z5lbbw1y-inferior-script.scm.drv, which = =E2=80=94 as the name indicates =E2=80=94 is run inside the inferior, i.e. the older Guix. --=20 Ricardo