From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 6B+yJ/uXUWP4HwEAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 20:48:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AGm6J/uXUWMEVQAAauVa8A (envelope-from ) for ; Thu, 20 Oct 2022 20:48:27 +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 82DFA3C8ED for ; Thu, 20 Oct 2022 20:48:27 +0200 (CEST) Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olaag-0006PI-Mf for larch@yhetil.org; Thu, 20 Oct 2022 14:48:26 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olaXT-0005co-26 for larch@yhetil.org; Thu, 20 Oct 2022 14:45:07 -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 1olaXQ-0005cE-5L for bug-guix@gnu.org; Thu, 20 Oct 2022 14:45:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olaXO-0004Gk-Rp for bug-guix@gnu.org; Thu, 20 Oct 2022 14:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olaXO-0000GJ-8v for bug-guix@gnu.org; Thu, 20 Oct 2022 14:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58247: Using guix time-machine results in unsupported manifest format error Resent-From: david larsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 20 Oct 2022 18:45: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: zimoun Cc: 58247@debbugs.gnu.org Received: via spool by 58247-submit@debbugs.gnu.org id=B58247.1666291494980 (code B ref 58247); Thu, 20 Oct 2022 18:45:02 +0000 Received: (at 58247) by debbugs.gnu.org; 20 Oct 2022 18:44:54 +0000 Received: from localhost ([127.0.0.1]:36133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olaXG-0000Fk-9L for submit@debbugs.gnu.org; Thu, 20 Oct 2022 14:44:54 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]:47554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olaWz-0000FF-IR for 58247@debbugs.gnu.org; Thu, 20 Oct 2022 14:44:53 -0400 Received: from server0.selfhosted.xyz (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id E964E2CE2026; Thu, 20 Oct 2022 20:44:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1666291469; bh=dS6aVHgZpaaTDGO8REFt1r/LWvhcalI3NuokJC+aOmk=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=iw3+CVsfN6GwOhzwVUW5eYF5gcG69jVHrlDv1wLz6BndEYJ/c2JWwcJc3DsXMBaW8 NXva4X1o5x+edDnkhFZ/O3rrBURDkBp4IkkiQZbNpFwkKG6sRtJ4j1nM5hR3WBCzSB JJpMiQoB3V2v1z3lwn8k3KIkQDy2qQnYDVXvJCHLejJUVqYv0mBfXypR1gox0Gvlwk 4tit+jLMZ5ai1gFCKr0RPnigZXq71F8YlEN1F9e5IcD4aDKu0mMEUu/ld8b4wL2Iea RukPfE4wnnv8U18W6Fngw/ZBFdk22dYNF5e3kbUTnfKposoNjEezEvubkVh3xJ6wIh Do5BThBAvEoUg== X-Fuglu-Suspect: 5323a5af72be491c868cceb4c56208bd X-Fuglu-Spamstatus: NO Received: from webmail.selfhosted.xyz (office.selfhosted.xyz [192.168.1.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA; Thu, 20 Oct 2022 20:44:23 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Oct 2022 20:44:23 +0200 From: david larsson In-Reply-To: <87v8p1x4fj.fsf@gmail.com> References: <87bkquxior.fsf@gmail.com> <2b9ab157dfb62c46f8416fc39c320323@selfhosted.xyz> <87v8p1x4fj.fsf@gmail.com> Message-ID: X-Sender: david.larsson@selfhosted.xyz 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=1666291707; 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=dS6aVHgZpaaTDGO8REFt1r/LWvhcalI3NuokJC+aOmk=; b=OXxOu3+gknephnEKbXWI/mG87rZI/rS8Ba6Y9bdMzMA5FIBFZ++eI+OoEYIPdX58nsgoco evh9ohl2i4bJdehOHcZxYALydVdgTWJ4A/fIzx/p82cNSXqBM8hBBrLZfz/8D7I1Huysau Io4+7LOVAuYUiowAF21xcpwA2AVT0V5bn6h1AVCoxj+2Qq4YZZlMKzTUCKcqIXN3RXA/1n 9aYZKBrPU4VGaLTCLeuBvjMD7b0s3e5mNvDw44WXLPN2yQiTFeRbQsoXqTMavQEGFI6/lN QMMmRIZtBavnE92m9B6tsdPDvr3dDYm10XIQW+Z71UOi7I5kQQdlS+uhrXTmrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666291707; a=rsa-sha256; cv=none; b=dnnuhq1wkSxKL/5l5TkpN/cpEeARAKVRxMrRz/P3C1Wz7lX5HQpT0kUiRa9Hmqo6o4PoD3 LuEH3zSjUn8tBz44H8TPeVsvI2IKhPjse6BXn2nushv5k99X58msGBIS50PFIjfJkm1DoC Z6/YZnxAahNJKPTaotaWAkRnruaw/oEyVb9A0RYOKfhDUXhjQyML2yaLiPXjCQaX6UlZ0O jTN9+oimGucY8fg8t0str2uoYqyf2s6AtHdYiBz0ai1igTe4F3uttvQEyy1F2g6aziMqzn y+NLDAPqAucbkX0IEAtX5QwCYDHOA6h2c2jxsNbm6MddzwU+t+9CuGWbiMMjkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=selfhosted.xyz header.s=dkim header.b=iw3+CVsf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=selfhosted.xyz (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: 5.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=selfhosted.xyz header.s=dkim header.b=iw3+CVsf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=selfhosted.xyz (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: 82DFA3C8ED X-Spam-Score: 5.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: pbEXCoSHO9+b On 2022-10-03 00:10, zimoun wrote: [..] > > Let try the converse, > > --8<---------------cut here---------------start------------->8--- > $ guix time-machine --commit=729ce5f -- 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=7e8e070 -- 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. > Hi, Thanks for the clarification. I imagine it would be possible to give it a dirty fix, approximately as you just showed with /tmp/old, if you also just readd the default profile's currently installed packages to it at the end. So, if using ~/.guix-profile, it would be something like: 1. Say your ~/.guix-profile is at commit=XYZ 2. build a NEW profile with the old package ONLY, from commit=ABC (as in /tmp/old) 3. guix pull /tmp/old "back" to commit=XYZ 4. install remaining packages that was in your ~/.guix-profile to /tmp/old. 5. mv the ~/.guix-profile symlink to /tmp/old. ( /tmp/old should just be in /var/guix/profiles/per-user/$USER as normal ) Building a new package generation like this would not be the same as usual, cuz the currently installed packages may come from different guix revisions. That might be a dealbreaker for fixing it. I do think it's very sad though, that the time-machine is kind of broken whenever the manifest gets a new version, with no hint even to the user how to find a solution. Best regards, David