From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 mN2qLzwQOmNXQwEAbAwnHQ (envelope-from ) for ; Mon, 03 Oct 2022 00:27:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6GulLjwQOmOmTQEAG6o9tA (envelope-from ) for ; Mon, 03 Oct 2022 00:27:08 +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 58AEE228AF for ; Mon, 3 Oct 2022 00:27:08 +0200 (CEST) Received: from localhost ([::1]:42828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of7QQ-0004GX-UW for larch@yhetil.org; Sun, 02 Oct 2022 18:27:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of7QM-0004GH-W3 for bug-guix@gnu.org; Sun, 02 Oct 2022 18:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of7QM-0004zb-Nw for bug-guix@gnu.org; Sun, 02 Oct 2022 18:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1of7QM-0001yY-GB for bug-guix@gnu.org; Sun, 02 Oct 2022 18:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58247: Using guix time-machine results in unsupported manifest format error Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 02 Oct 2022 22:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58247 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: david larsson Cc: 58247@debbugs.gnu.org Received: via spool by 58247-submit@debbugs.gnu.org id=B58247.16647495687514 (code B ref 58247); Sun, 02 Oct 2022 22:27:02 +0000 Received: (at 58247) by debbugs.gnu.org; 2 Oct 2022 22:26:08 +0000 Received: from localhost ([127.0.0.1]:48270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of7PT-0001x7-LZ for submit@debbugs.gnu.org; Sun, 02 Oct 2022 18:26:08 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:55863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of7PR-0001wV-7T for 58247@debbugs.gnu.org; Sun, 02 Oct 2022 18:26:05 -0400 Received: by mail-wm1-f46.google.com with SMTP id t4so5982468wmj.5 for <58247@debbugs.gnu.org>; Sun, 02 Oct 2022 15:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=Yhptwv0rL6eYe8BpCPmjufq85Bw3VFEc8fXP8s+lVs0=; b=qEePwzd6lq6GOoAjSjxjCYqg81Rkolqpk15C9Nk8PoFDRp8HV9x7cvdB83LykBOm2u 9+JvPD6dAs2TGcUR3EBJoJhFK3v6mCoWeh3XvFeKzuQPsVWeS7c0gvLgqkjjGCkYxhUv 8houuHQEE7AXNd6/FH1PNkrfJdglzYwOUJ+B8RPjfd4gCEIzL41mnqlUS2xJdXKlnsgy WIWs00Jhlpsrcd2BHwAPaKmDL1WwibgG1fO7wHoK+HzDjrzpGGOfa+dSczy9PxGfV9cR OtMX2jup66OyYxzWiM8uG4no8bZ/+SK25BmDHJGCiUNyKygqXGx24r8IflGra7ueGvF3 mrzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Yhptwv0rL6eYe8BpCPmjufq85Bw3VFEc8fXP8s+lVs0=; b=0yXjyR5Zq1JXFv0v42pNpcakNb40JchEEPIalvqcQ0gtWoiFJNIThW4MDEhOxetY1v wMLIK6cRQUzI6Qv/wx9VecbRUX2dLSHMGLA+MKKvezxvefVZiIBtMl24MLhaB1kddfQG BGs2zJaJienyLUTl64w3/Oc5HghVDZwa+uha6SYXbNIuW3mt7FQqUP/Kqno0vwI2l2Eo Uqp0tan2cwjfGEdkFD+/EM85TBBF5o8K9m1U9L1RWsmGZBgWFNVr1NuWpd/xBm2dRA3L XPHqC6qpjtCoiIm56ji1ELhRCdswzK4UUP/w60E/mtZgU3Acb5UUm9z/356Kl8vyhYkP l35A== X-Gm-Message-State: ACrzQf1TIZh2uAy3E4kDpz4lmDCxRU7NRJWWEhptEjooAbgxyQ3BVY3W bFkun7SFjRwZek93sfihlAfhC5iieYI= X-Google-Smtp-Source: AMsMyM7xma549Bkt7nqhw7bw0QCCygvnF8tjXEJuMQzWC3YGP/ZG9BrObq2mUji5GkUVIlBPmpLcyQ== X-Received: by 2002:a05:600c:268f:b0:3b4:acef:34ab with SMTP id 15-20020a05600c268f00b003b4acef34abmr5052555wmt.176.1664749559202; Sun, 02 Oct 2022 15:25:59 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id g18-20020a056000119200b002206203ed3dsm8069795wrx.29.2022.10.02.15.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 15:25:58 -0700 (PDT) From: zimoun In-Reply-To: <2b9ab157dfb62c46f8416fc39c320323@selfhosted.xyz> References: <87bkquxior.fsf@gmail.com> <2b9ab157dfb62c46f8416fc39c320323@selfhosted.xyz> Date: Mon, 03 Oct 2022 00:10:24 +0200 Message-ID: <87v8p1x4fj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1664749628; 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=Yhptwv0rL6eYe8BpCPmjufq85Bw3VFEc8fXP8s+lVs0=; b=Q+oYom5CjLyF51alt6kr7iHDQH5F1DZFoYFSWwHvwvKe3oQNsDNzv+87GP/uapAsPGdgL1 sf2xZ7Cv2cR+KVeK1iKUqmtSwsaVj8W2G4kJYWS6AbTfaTH5+0G6eHUO5BgtTLT9OBmBS+ HTvtIJUuaQy5qTfqWztj5XwkHSg1bA4mZ6ZE/3yGkxvfyGRA+7crYQz36NWB9gZA0+gBPQ oLzutmCDuGGgefOBMQi27S4UUUv9hEDQwTcWH6zZuX0NZZwpykJQQTAK6WSvB6lsXA/5An nmecQG73a9C8PRMwbrokYR1hFu0bcEI6QUgJXFyVNiAFc4/2MlbbYogBCWPQ0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664749628; a=rsa-sha256; cv=none; b=LLlRzRZ5nnhpadZTErIt85jJ25Unjd1D51s96q8oojqcfwCH3xMQ6iesAwsRMds7jpoPJ7 BmMdp8V2xeMTaWqg/QNtQE6Z5NYSbDbPq0/687uCwycpLGEHI/EkUbfYKoQnIe1FyW3rGj 02K/3kemtLX01rZJDmSnVCfNOIDPgHcMNzBphrh1Ha68abCG+YD9LevphPH4zekH35U6FC g9/YBkBdz0PlcA7aEsCNK7wsJ43oiGIbLGGozqpYMz13LeWuOmuSa4RyttjBHjG8hbjK+8 bvMPrYVMUENhZA4o8yYAcEHZwIMaY1NVWj3EJaGUM9lmJEgzTMtZKTvXzcZ+Og== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=qEePwzd6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 6.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=qEePwzd6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 58AEE228AF X-Spam-Score: 6.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: a4mXGwccp9OK Hi, On Sun, 02 Oct 2022 at 20:57, david larsson = wrote: > On 2022-10-02 19:02, zimoun wrote: >> It is probably because an issue with version of manifest; e.g, fixed by >> 67a6828b2bb821274757f686f7c685b664339a96. See >> . > > Note that the commit I'm on, is from 2 days ago, which is after the fix=20 > commit you're mentioning. Yes, note that the earlier mentioned commit 7e8e07033d2a6b0ecef566a05084c534c774cd4a is from Oct 2021 if I read correctly. > Not sure it matters, but Im able to run guix time-machine=20 > --commit=3D -- describe but not package -i IIUC, =E2=80=99describe=E2=80=99 reads from ~/.config/guix/current/manifest= and here the issue is from ~/.guix-profile/manifest. Maybe I am wrong, but I think the issue is coming from an incompatibility about the version of ~/.guix-profile/manifest. This manifest is at the version 4. When you run guix time-machine --commit=3D -- package -i hello then I guess it works or not depending on . The manifest file ~/.guix-profile/manifest needs to be updated and there is a conflict because some versions of the profile manifest. For instance, consider two profiles generated using 2 different revisions of Guix =E2=80=93 a recent one and an old one: --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D729ce5f -- package -i hello -p /tmp/new $ cat /tmp/new/manifest | grep -A 1 '(manifest' (manifest (version 4) --8<---------------cut here---------------end--------------->8--- and --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D7e8e070 -- package -i hello -p /tmp/old $ cat /tmp/old/manifest | grep -A 1 '(manifest' (manifest (version 3) --8<---------------cut here---------------end--------------->8--- Now, consider the recent profile named /tmp/new and try to install a previous package from an old commit, --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D7e8e070 -- package -i hello -p /tmp/new guix package: error: unsupported manifest format --8<---------------cut here---------------end--------------->8--- The old Guix uses version 3 and cannot read/write version 4 and bang! Let try the converse, --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D729ce5f -- package -i hello -p /tmp/old $ cat /tmp/old/manifest | grep -A 1 '(manifest' (manifest (version 4) $ guix package --list-generations -p /tmp/old Generation 1 oct. 02 2022 18:53:10 hello 2.10 out /gnu/store/xg67cpxq2p6q7wn4y2z194pndwdymhpf-hello-2.10 Generation 2 oct. 02 2022 21:25:11 (current) + hello 2.12.1 out /gnu/store/s5pd3rnzymliafb4la5sca63j86xs0y0-hello-2.12.1 - hello 2.10 out /gnu/store/xg67cpxq2p6q7wn4y2z194pndwdymhpf-hello-2.10 --8<---------------cut here---------------end--------------->8--- This profile /tmp/old is thus converted from version 3 to version 4, and then, reusing old version of Guix fails, --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D7e8e070 -- package -i hello -p /tmp/old guix package: error: unsupported manifest format --8<---------------cut here---------------end--------------->8--- Well, I do not know if a fix is possible. The issue is a backward compatibility issue. Cheers, simon