GNU bug report logs - #37978
[PATCH] guix: new command "guix time-machine"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Konrad Hinsen <konrad.hinsen@HIDDEN>; Keywords: patch; dated Tue, 29 Oct 2019 14:12:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 37978 <at> debbugs.gnu.org:


Received: (at 37978) by debbugs.gnu.org; 7 Nov 2019 21:11:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 07 16:11:03 2019
Received: from localhost ([127.0.0.1]:44003 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSp3W-0000xN-37
	for submit <at> debbugs.gnu.org; Thu, 07 Nov 2019 16:11:02 -0500
Received: from eggs.gnu.org ([209.51.188.92]:57590)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iSp3T-0000wt-T5
 for 37978 <at> debbugs.gnu.org; Thu, 07 Nov 2019 16:11:00 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51590)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iSp3O-0004BV-P4; Thu, 07 Nov 2019 16:10:54 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38844 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iSp3N-0004yh-WB; Thu, 07 Nov 2019 16:10:54 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Konrad Hinsen <konrad.hinsen@HIDDEN>
Subject: Re: [bug#37978] [PATCH] guix: new command "guix time-machine"
References: <m1bltzd4z7.fsf@HIDDEN>
 <87y2wt3ycb.fsf@HIDDEN> <87lfst2i2v.fsf@HIDDEN>
 <m1y2wr5vbg.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 17 Brumaire an 228 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 07 Nov 2019 22:10:52 +0100
In-Reply-To: <m1y2wr5vbg.fsf@HIDDEN> (Konrad Hinsen's message of
 "Thu, 07 Nov 2019 20:40:35 +0100")
Message-ID: <874kzfmlyb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37978
Cc: 37978 <at> debbugs.gnu.org
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: -3.3 (---)

Konrad Hinsen <konrad.hinsen@HIDDEN> skribis:

> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
>
>> Another thing that comes to mind: it=E2=80=99d be nice to add an entry in
>> =E2=80=98etc/news.scm=E2=80=99 to let users know about the new command!
>
> If I understand the format correctly, I can't write this entry before
> the command is merged into master, because I need the commit that
> implements it.

Exactly, so whoever pushes it must adjust the commit ID in the news
entry right before pushing.  You can just write (commit "XXX") in the
meantime.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.

Message received at 37978 <at> debbugs.gnu.org:


Received: (at 37978) by debbugs.gnu.org; 7 Nov 2019 19:40:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 07 14:40:45 2019
Received: from localhost ([127.0.0.1]:43933 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSne9-000746-8e
	for submit <at> debbugs.gnu.org; Thu, 07 Nov 2019 14:40:45 -0500
Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:43667)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.hinsen@HIDDEN>) id 1iSne7-00073u-Lg
 for 37978 <at> debbugs.gnu.org; Thu, 07 Nov 2019 14:40:44 -0500
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.west.internal (Postfix) with ESMTP id B70D0429;
 Thu,  7 Nov 2019 14:40:37 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163])
 by compute7.internal (MEProxy); Thu, 07 Nov 2019 14:40:37 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h=
 from:to:cc:subject:in-reply-to:references:date:message-id
 :mime-version:content-type:content-transfer-encoding; s=fm1; bh=
 tiVJD/epKd4WF9GhKwKJqFcZi3m2Na0vFwu39xyQa7w=; b=hxMZL3pYjKgNn9wn
 HwzuIZkY4ZM656wJSFSdu9+p2SzOMUei095ek2WcCFw8EcWs/unCEianwrz+s7Rg
 dEKvzZhA2DFxT5T5IbmuMep8XGuWMkPcWgCaj0l8oCOIHaaYTuqK5Ixnyt4GPNtQ
 pU84Zba3yi8GrKbyYx8tmfZktPzti/OHBxHGF3BOzLJlVA8Iq5M5RpkJTFnOUNM7
 ILsGmS+rIGeLyBtqjN0m8CM3pVr0VF5eV4WrYaHzCF8O5S4be4aCDcZ9JLdHJj6a
 6xvVW2LDn25UBIknQmsD0PO/QrtPslFdpFsjvBZed4zXCle8Ci1AdVCCZGtnbWLb
 UY9JHw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm1; bh=tiVJD/epKd4WF9GhKwKJqFcZi3m2Na0vFwu39xyQa
 7w=; b=PcM4iXkOVtQcaNWQjTLJZP8ETCXaLJKGg79BNXGIMRFvGbxRq2KgzmM8H
 EuLxIzJqtOaRTGG/qfg30q4H9uZmywBDYpPf8ua+kQVUYk42z3itsq/0FIwl0e8F
 QJVPrdV4zVlEqjkxoojAIIqX26rYirqNQ9Rj8+gkUJOhoYlf9S6VJqRVojvxJYZh
 opm2xuUuqqzGU/ho1kxCCrS1Cy5bP9U2nT6XnFIvYqgeBIeFPy7voBeTfeHnixW7
 wusEqk6TFHgDpQsrahBgoTW4w/gFtoWt6+UF8AxiaKdEIcDYdQ2ekpjMlAPd4Q4R
 I3LXbmX4fzt75TcG4bwrx2cFvFJLA==
X-ME-Sender: <xms:NXPEXV_U46MDCQXnWldVi9JPHdquUiEfeLUUe5Yi5WgsiTQko1w_Ng>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudduledguddvkecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvffujghffffkgggtgfesthhqredttddtjeenucfhrhhomhepmfhonhhr
 rgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnh
 gvtheqnecukfhppeelvddrudeiledrjedruddtudenucfrrghrrghmpehmrghilhhfrhho
 mhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvghtnecuvehluhhsth
 gvrhfuihiivgeptd
X-ME-Proxy: <xmx:NXPEXQuHkQWxYMi88LdA4RKso1LFHSbpDBdHFtCM9lk1uHOLfFDtHA>
 <xmx:NXPEXYBvWJTKVQfczhZuo4_E_v_ulp7ZvUSzqgn4FoTq6SFZTjrvIw>
 <xmx:NXPEXYWH9EAW4EJBGxRJBvVdpJTVMkQVJ4KJzEW-mADm3Z6cAlyhaA>
 <xmx:NXPEXesxum4FOkoziZbk7SX8WMAs2SP2pPSChnncEjyimvlnAx2Z1A>
Received: from khs-macbook.home (lfbn-1-4320-101.w92-169.abo.wanadoo.fr
 [92.169.7.101])
 by mail.messagingengine.com (Postfix) with ESMTPA id 9A37B306005F;
 Thu,  7 Nov 2019 14:40:36 -0500 (EST)
From: Konrad Hinsen <konrad.hinsen@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#37978] [PATCH] guix: new command "guix time-machine"
In-Reply-To: <87lfst2i2v.fsf@HIDDEN>
References: <m1bltzd4z7.fsf@HIDDEN>
 <87y2wt3ycb.fsf@HIDDEN> <87lfst2i2v.fsf@HIDDEN>
Date: Thu, 07 Nov 2019 20:40:35 +0100
Message-ID: <m1y2wr5vbg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37978
Cc: 37978 <at> debbugs.gnu.org
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: -1.7 (-)

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Another thing that comes to mind: it=E2=80=99d be nice to add an entry in
> =E2=80=98etc/news.scm=E2=80=99 to let users know about the new command!

If I understand the format correctly, I can't write this entry before
the command is merged into master, because I need the commit that
implements it.

Konrad.




Information forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.

Message received at 37978 <at> debbugs.gnu.org:


Received: (at 37978) by debbugs.gnu.org; 7 Nov 2019 13:11:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 07 08:11:56 2019
Received: from localhost ([127.0.0.1]:41772 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iShZs-0000i9-7C
	for submit <at> debbugs.gnu.org; Thu, 07 Nov 2019 08:11:56 -0500
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38221)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.hinsen@HIDDEN>) id 1iShZp-0000hw-Pv
 for 37978 <at> debbugs.gnu.org; Thu, 07 Nov 2019 08:11:54 -0500
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id 9F7B120E7B;
 Thu,  7 Nov 2019 08:11:48 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163])
 by compute7.internal (MEProxy); Thu, 07 Nov 2019 08:11:48 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h=
 from:to:cc:subject:in-reply-to:references:date:message-id
 :mime-version:content-type:content-transfer-encoding; s=fm1; bh=
 8Bp4SFJFqoQqdU9dfru+WD4hBH2Q8aUOcK+D0CfdXGQ=; b=cAJUkMm2tkpRws/l
 yRUcjA4X/R5eRse6M05LnaGMkVU1wTaMig3VYpknSSTNO8/2KF9IAwwiOYflLLNQ
 UHY/BWmqzmnogy40OodNkgoxtl75WmCvBfy3ZJ8Tc9rxBmOECOJfyBh82JjFMtl3
 tC1thAS6b93CSfxHlS/vdhzg8bLYs0l/XWGUD0RztsY4tKrzfIAEvja/Gn06RGEK
 Skw7GdSV7FVU5eMEv0qr0GrCWhCkBpGvGzzdacbCAPDo6ua8a/EwvbcXBcBq545V
 EkmrRCK2d9vECx4UMjCMGe9hGOfJjftJfKQFqy2mXQwEGGW509tquH/tMvIZ7jDS
 i1TgNg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm1; bh=8Bp4SFJFqoQqdU9dfru+WD4hBH2Q8aUOcK+D0CfdX
 GQ=; b=QtBbmA9lIgjYvs90uFnGQZr8YeEiZ4UGvFMbkIX+LsD27CGkFnheawYST
 510+4tfmHuGFFXixygB44Bl2Vl0e3Xc1udWB1aw4LKltu/pjJPNaYyKk6UcRcvSc
 tX/fJZJMNniswUjC5ohATH0rhiDkaPv1XIMsalf2H6WnS42Ry9/hOg11NNXQtZmg
 G6QHItZtYR9Q4Gi0aW0jM+ohdiIYhGcNP7G/sEJZ2MuqguTwBucwDyH9uU4PKU6Q
 KvyE624c5tVLIY2czw4tZq9QjYK0xbcmj1sn1OLJqOG6cazi0PCdfnjpG4xyoAwB
 8tN+4/13iXtxUNTPSStdRFPLB0uZg==
X-ME-Sender: <xms:FBjEXW7p-E-ZlKxVcs5xFRgMIyGuu-QiH1o1TQspbrwcWIK0wWK_Zw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudduledggeekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtgfesthhqre
 dttddtjeenucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhi
 nhhsvghnsehfrghsthhmrghilhdrnhgvtheqnecukfhppeelvddrudeiledrjedruddtud
 enucfrrghrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshht
 mhgrihhlrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:FBjEXVHGWmxdYJVf3VNkvB5pk8CF-iXbsYig8epvaSPHbm2jSucI-g>
 <xmx:FBjEXWU0N6KEyuUiSoUxO7HeJjkRQCZKZoBUWjf2737zi-STQDmyGw>
 <xmx:FBjEXZVdcxB2vCg3BeUfMLzxSlBfwGxApgKI7bKsyp5mFIRSWzBeVw>
 <xmx:FBjEXRndEh2M0UnjWnk0LNZzbJ9loDFgQjFmWPRRngVQdPGwNNe2mA>
Received: from ordinateur-de-catherine--konrad.home
 (lfbn-1-4320-101.w92-169.abo.wanadoo.fr [92.169.7.101])
 by mail.messagingengine.com (Postfix) with ESMTPA id 7C0A4306005B;
 Thu,  7 Nov 2019 08:11:47 -0500 (EST)
From: Konrad Hinsen <konrad.hinsen@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: [bug#37978] [PATCH] guix: new command "guix time-machine"
In-Reply-To: <87bltpulkg.fsf@nckx>
References: <m1bltzd4z7.fsf@HIDDEN>
 <87y2wt3ycb.fsf@HIDDEN> <87bltpulkg.fsf@nckx>
Date: Thu, 07 Nov 2019 14:11:46 +0100
Message-ID: <m1h83fzv8t.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37978
Cc: 37978 <at> debbugs.gnu.org
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: -1.7 (-)

Tobias Geerinckx-Rice <me@HIDDEN> writes:

> Konrad Hinsen =E5=86=99=E9=81=93=EF=BC=9A
>> * doc/guix.texi: Document "git time-machine"
>                              ^^^

Ouch. That's me. I always confuse "git" and "guix" on the command line.
It's worst for "pull", which works with both.

Is command-line dyslexia a thing already ? ;-)

Thanks for spotting the typo,
  Konrad.




Information forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.

Message received at 37978 <at> debbugs.gnu.org:


Received: (at 37978) by debbugs.gnu.org; 6 Nov 2019 14:30:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 09:30:26 2019
Received: from localhost ([127.0.0.1]:39675 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSMKI-0005Z4-Er
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 09:30:26 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50352)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iSMKF-0005Yr-Ua
 for 37978 <at> debbugs.gnu.org; Wed, 06 Nov 2019 09:30:24 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48979)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iSMKA-0003Ja-PC; Wed, 06 Nov 2019 09:30:18 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52834 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iSMK9-0004Lm-Lc; Wed, 06 Nov 2019 09:30:18 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Konrad Hinsen <konrad.hinsen@HIDDEN>
Subject: Re: [bug#37978] [PATCH] guix: new command "guix time-machine"
References: <m1bltzd4z7.fsf@HIDDEN>
 <87y2wt3ycb.fsf@HIDDEN>
Date: Wed, 06 Nov 2019 15:30:16 +0100
In-Reply-To: <87y2wt3ycb.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Wed, 06 Nov 2019 14:53:40 +0100")
Message-ID: <87lfst2i2v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37978
Cc: 37978 <at> debbugs.gnu.org
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: -3.3 (---)

Another thing that comes to mind: it=E2=80=99d be nice to add an entry in
=E2=80=98etc/news.scm=E2=80=99 to let users know about the new command!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.

Message received at 37978 <at> debbugs.gnu.org:


Received: (at 37978) by debbugs.gnu.org; 6 Nov 2019 14:27:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 09:27:34 2019
Received: from localhost ([127.0.0.1]:39666 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSMHW-0005T8-LJ
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 09:27:34 -0500
Received: from tobias.gr ([80.241.217.52]:39608)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1iSMHT-0005Sw-B4
 for 37978 <at> debbugs.gnu.org; Wed, 06 Nov 2019 09:27:33 -0500
Received: by tobias.gr (OpenSMTPD) with ESMTP id a9ccaaeb;
 Wed, 6 Nov 2019 14:27:28 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc
 :subject:references:in-reply-to:date:message-id:mime-version
 :content-type; s=2018; i=me@HIDDEN; bh=Neyn0wiFgNyMAnmLUn7TgS
 4i4jseEeVvbxnkO5pA5eQ=; b=kmnqh9ECZ+gXBGuZx9S7oL1AXEbgveI9zanGtu
 mpEDgUMHnXFgEFSO99IRYK8Syfly0FGW13omVVfcyRYCm2WevJ+2FCO7E0LP+Bsb
 qjM/dlPke1t3uXf3QTiUsoD173hq+YlgH7KPXSFEnUk0x1vt7yl/WzEeCVrxVtfH
 BuH13cWlQ6Y3cB4ziOO5sV9lOilpjzT5buSc8LvzYqaELDPUaVldOajjYl41wUGl
 jfWxbM8JtGzEXKR7vnOqUqGgt5y0cMe5IUyPsmYMjwBBAL9fwvMDcSzFGkFFtH6B
 NP8vg9hwOZI7jmtfAVq+CgKbJ5m6cY1REfod+6MeqwUTRFfQ==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 022b547f
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Wed, 6 Nov 2019 14:27:27 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: guix-patches@HIDDEN
Subject: Re: [bug#37978] [PATCH] guix: new command "guix time-machine"
References: <m1bltzd4z7.fsf@HIDDEN>
 <87y2wt3ycb.fsf@HIDDEN>
In-reply-to: <87y2wt3ycb.fsf@HIDDEN>
Date: Wed, 06 Nov 2019 15:27:27 +0100
Message-ID: <87bltpulkg.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37978
Cc: Konrad Hinsen <konrad.hinsen@HIDDEN>, 37978 <at> debbugs.gnu.org
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: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Konrad,

Thank you!  This is neat!

Konrad Hinsen =E5=86=99=E9=81=93=EF=BC=9A
> * doc/guix.texi: Document "git time-machine"
                             ^^^
Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl3C2E8ACgkQ2Imw8BjF
STzLgg//dgmwpbIoVhrxhlDFiVdoAliFoULIQLGGqwFMN/ntA4oh1ZLEYmupPwLW
mmCwWC+0BUgp6o9DEwdzBsxD0htMc2KMU6/0A1lVRljwiMc8U3sAdwHYvT159zle
Xrrod79bc6CHv5PKPfgL1ymdiZjRQYgoFVlc1Is78Z9k28xyNeF2BWw926gcn6gV
64smZDgrBzJ9x/b4Q3XtelbuR016Yr6tjreN4cayrcyLKJ8Is/NG/2ok4T3JPBj4
7Zw49lBY5FvXkUhvVo8PCKdkz8JevExvjLi4UDsqt9fZjgdlgzyy3eQd/hcVrEA6
i6+Be0QVwVHbuCCGHTOH5yTRm90dDeDDWxmND78KcECweUJm/11vi/I+JoFT3GMh
/zWd1SHx139rFWfu8k9lc+tOVUT6X8x+lN/0cvG8P+rL3IZeCwfy81AgezPl99L4
gXaDqINvkd3nJiM/1ZVj5aB1/8m58YPhhnnyU35Ut0F8TaAfCV7Ai+p0MhRm8Pr8
T+g/JJBmddPu5GnMTNmCNWKQQAicDzAS54JUYMNqe73PImp8ENnBz401986y1z7E
4jHVWHOL+Q/x0V3X+KYgpVxC7T3YdlaBM4t+Oo5IO9uPDVa7Naf+3ietFlGKKoTr
r0RPEr8VXouGvG5KM5wmi0OBJjSd1CXK/iSjoZihHtP3sRvtTlo=
=nF7P
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Nov 2019 14:27:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 09:27:39 2019
Received: from localhost ([127.0.0.1]:39669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSMHa-0005TQ-U2
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 09:27:39 -0500
Received: from lists.gnu.org ([209.51.188.17]:43024)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1iSMHW-0005T9-M7
 for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 09:27:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58732)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <me@HIDDEN>) id 1iSMHV-0008Ra-Ow
 for guix-patches@HIDDEN; Wed, 06 Nov 2019 09:27:34 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <me@HIDDEN>) id 1iSMHT-0001pr-VY
 for guix-patches@HIDDEN; Wed, 06 Nov 2019 09:27:32 -0500
Received: from tobias.gr ([2001:470:7405::1]:45628)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <me@HIDDEN>) id 1iSMHT-0001ol-Bt
 for guix-patches@HIDDEN; Wed, 06 Nov 2019 09:27:31 -0500
Received: by tobias.gr (OpenSMTPD) with ESMTP id a9ccaaeb;
 Wed, 6 Nov 2019 14:27:28 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc
 :subject:references:in-reply-to:date:message-id:mime-version
 :content-type; s=2018; i=me@HIDDEN; bh=Neyn0wiFgNyMAnmLUn7TgS
 4i4jseEeVvbxnkO5pA5eQ=; b=kmnqh9ECZ+gXBGuZx9S7oL1AXEbgveI9zanGtu
 mpEDgUMHnXFgEFSO99IRYK8Syfly0FGW13omVVfcyRYCm2WevJ+2FCO7E0LP+Bsb
 qjM/dlPke1t3uXf3QTiUsoD173hq+YlgH7KPXSFEnUk0x1vt7yl/WzEeCVrxVtfH
 BuH13cWlQ6Y3cB4ziOO5sV9lOilpjzT5buSc8LvzYqaELDPUaVldOajjYl41wUGl
 jfWxbM8JtGzEXKR7vnOqUqGgt5y0cMe5IUyPsmYMjwBBAL9fwvMDcSzFGkFFtH6B
 NP8vg9hwOZI7jmtfAVq+CgKbJ5m6cY1REfod+6MeqwUTRFfQ==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 022b547f
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Wed, 6 Nov 2019 14:27:27 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: guix-patches@HIDDEN
Subject: Re: [bug#37978] [PATCH] guix: new command "guix time-machine"
References: <m1bltzd4z7.fsf@HIDDEN>
 <87y2wt3ycb.fsf@HIDDEN>
In-reply-to: <87y2wt3ycb.fsf@HIDDEN>
Date: Wed, 06 Nov 2019 15:27:27 +0100
Message-ID: <87bltpulkg.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2001:470:7405::1
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: Konrad Hinsen <konrad.hinsen@HIDDEN>, 37978 <at> debbugs.gnu.org
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; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Konrad,

Thank you!  This is neat!

Konrad Hinsen =E5=86=99=E9=81=93=EF=BC=9A
> * doc/guix.texi: Document "git time-machine"
                             ^^^
Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl3C2E8ACgkQ2Imw8BjF
STzLgg//dgmwpbIoVhrxhlDFiVdoAliFoULIQLGGqwFMN/ntA4oh1ZLEYmupPwLW
mmCwWC+0BUgp6o9DEwdzBsxD0htMc2KMU6/0A1lVRljwiMc8U3sAdwHYvT159zle
Xrrod79bc6CHv5PKPfgL1ymdiZjRQYgoFVlc1Is78Z9k28xyNeF2BWw926gcn6gV
64smZDgrBzJ9x/b4Q3XtelbuR016Yr6tjreN4cayrcyLKJ8Is/NG/2ok4T3JPBj4
7Zw49lBY5FvXkUhvVo8PCKdkz8JevExvjLi4UDsqt9fZjgdlgzyy3eQd/hcVrEA6
i6+Be0QVwVHbuCCGHTOH5yTRm90dDeDDWxmND78KcECweUJm/11vi/I+JoFT3GMh
/zWd1SHx139rFWfu8k9lc+tOVUT6X8x+lN/0cvG8P+rL3IZeCwfy81AgezPl99L4
gXaDqINvkd3nJiM/1ZVj5aB1/8m58YPhhnnyU35Ut0F8TaAfCV7Ai+p0MhRm8Pr8
T+g/JJBmddPu5GnMTNmCNWKQQAicDzAS54JUYMNqe73PImp8ENnBz401986y1z7E
4jHVWHOL+Q/x0V3X+KYgpVxC7T3YdlaBM4t+Oo5IO9uPDVa7Naf+3ietFlGKKoTr
r0RPEr8VXouGvG5KM5wmi0OBJjSd1CXK/iSjoZihHtP3sRvtTlo=
=nF7P
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.

Message received at 37978 <at> debbugs.gnu.org:


Received: (at 37978) by debbugs.gnu.org; 6 Nov 2019 13:53:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 08:53:52 2019
Received: from localhost ([127.0.0.1]:39602 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSLkt-0004Yi-La
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 08:53:51 -0500
Received: from eggs.gnu.org ([209.51.188.92]:41827)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iSLkr-0004YS-7z
 for 37978 <at> debbugs.gnu.org; Wed, 06 Nov 2019 08:53:49 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48371)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iSLkm-0000aO-0N; Wed, 06 Nov 2019 08:53:44 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52824 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iSLkk-0005Ln-6C; Wed, 06 Nov 2019 08:53:43 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Konrad Hinsen <konrad.hinsen@HIDDEN>
Subject: Re: [bug#37978] [PATCH] guix: new command "guix time-machine"
References: <m1bltzd4z7.fsf@HIDDEN>
Date: Wed, 06 Nov 2019 14:53:40 +0100
In-Reply-To: <m1bltzd4z7.fsf@HIDDEN> (Konrad
 Hinsen's message of "Fri, 25 Oct 2019 17:42:21 +0200")
Message-ID: <87y2wt3ycb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37978
Cc: 37978 <at> debbugs.gnu.org
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: -3.3 (---)

Hello Konrad!

Konrad Hinsen <konrad.hinsen@HIDDEN> skribis:

> * guix/scripts/time-machine.scm: New file.
> * guix/scripts/pull.scm: Export function channel-list.
> * guix/inferior.scm: New function cached-guix-filetree-for-channels.
> * doc/guix.texi: Document "git time-machine"

Awesome.  :-)

Please also add time-machine.scm to Makefile.am.  In the commit log,
you=E2=80=99ll get bonus points if you mention the modified entities in
parentheses (see =E2=80=98git log=E2=80=99 for examples.)  :-)

> @@ -247,6 +247,7 @@ Utilities
>  * Invoking guix container::     Process isolation.
>  * Invoking guix weather::       Assessing substitute availability.
>  * Invoking guix processes::     Listing client processes.
> +* Invoking guix time-machine::  Running an older version of Guix.

How about moving this section a bit higher, because it=E2=80=99s more widely
useful than =E2=80=98guix processes=E2=80=99 for instance?  Actually, it co=
uld go under
=E2=80=9CPackage Management=E2=80=9D right before =E2=80=9CInferiors=E2=80=
=9D, WDYT?

>  The @command{guix describe --format=3Dchannels} command can even generat=
e this
> -list of channels directly (@pxref{Invoking guix describe}).
> +list of channels directly (@pxref{Invoking guix describe}). The resulting
> +file can be used with the -C options of @command{guix pull}
> +(@pxref{Invoking guix pull}) or @command{guix time-machine}
> +(@pxref{Invoking guix time-machine}).

Nitpick: Please write two spaces after an end-of-sentence period.

> +The general syntax is:
> +
> +@example
> +guix time-machine @var{channels} -- @var{command} @var {arg}@dots{}
> +@end example

I think it should be =E2=80=9Cguix time-machine @var{options}@dots{} -- =E2=
=80=A6=E2=80=9D,
right?

IIUC, if you run:

  guix time-machine -- build hello

you build =E2=80=9Chello=E2=80=9D with the latest master, right?

Perhaps it would be good to add an example like this one actually, WDYT?

> +where @var{command} and @var{arg}@dots{} are passed unmodified to the
> +@command{guix} command in its old version.  The @var{channels} that defi=
ne
> +this version can be specified using the following options:

Perhaps add =E2=80=9Clike for @command{guix pull}=E2=80=9D.

> -(define* (inferior-for-channels channels
> -                                #:key
> -                                (cache-directory (%inferior-cache-direct=
ory))
> -                                (ttl (* 3600 24 30)))
> -  "Return an inferior for CHANNELS, a list of channels.  Use the cache at
> -CACHE-DIRECTORY, where entries can be reclaimed after TTL seconds.  This
> -procedure opens a new connection to the build daemon.
> -
> -This is a convenience procedure that people may use in manifests passed =
to
> -'guix package -m', for instance."
> +(define* (cached-guix-filetree-for-channels channels
> +                                            #:key
> +                                            (cache-directory (%inferior-=
cache-directory))
> +                                            (ttl (* 3600 24 30)))
> +  "Return a directory containing a guix filetree defined by CHANNELS, a =
list of channels.
> +The directory is a subdirectory of CACHE-DIRECTORY, where entries can be=
 reclaimed after TTL seconds.
> +This procedure opens a new connection to the build daemon."

How about (1) calling it =E2=80=98cached-channel-instance=E2=80=99 (or simi=
lar), and (2)
not opening a connection to the daemon?

Regarding (2), it means that procedure would be a monadic procedure and
it=E2=80=99s up to the user to do with-store + run-with-store or whatever. =
 The
general convention is to not open new connections on behalf of the user
(=E2=80=98inferior-for-channels=E2=80=99 is one of the only exceptions to t=
he rule
because it=E2=80=99s a convenience function for use in manifests.)

Perhaps this change should be a separate patch.

> +(define (guix-time-machine . args)
> +  (with-error-handling
> +    (let* ((opts         (parse-args args))
> +           (channels     (channel-list opts))
> +           (command-line (assoc-ref opts 'exec))
> +           (directory    (cached-guix-filetree-for-channels channels))
> +           (executable   (string-append directory "/bin/guix")))
> +      (apply system* (cons executable command-line)))))

I think this should be:

  (apply execl executable command-line)

so that we don=E2=80=99t create an extra process and actually get the exit =
code
for that sub-process.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Oct 2019 14:11:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 29 10:11:11 2019
Received: from localhost ([127.0.0.1]:48427 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iPSDG-00025m-Nc
	for submit <at> debbugs.gnu.org; Tue, 29 Oct 2019 10:11:11 -0400
Received: from lists.gnu.org ([209.51.188.17]:32900)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.hinsen@HIDDEN>) id 1iPSDF-00025e-BN
 for submit <at> debbugs.gnu.org; Tue, 29 Oct 2019 10:11:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58835)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <konrad.hinsen@HIDDEN>) id 1iPSDC-00006w-N0
 for guix-patches@HIDDEN; Tue, 29 Oct 2019 10:11:08 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <konrad.hinsen@HIDDEN>) id 1iPS5J-00036J-Jq
 for guix-patches@HIDDEN; Tue, 29 Oct 2019 10:02:59 -0400
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48655)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <konrad.hinsen@HIDDEN>)
 id 1iPS5I-00035r-Nt
 for guix-patches@HIDDEN; Tue, 29 Oct 2019 10:02:57 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id 21260217DD;
 Tue, 29 Oct 2019 10:02:55 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute7.internal (MEProxy); Tue, 29 Oct 2019 10:02:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h=
 from:to:subject:date:message-id:mime-version:content-type
 :content-transfer-encoding; s=fm1; bh=2E1GIl9594m3wlk51NHCc7sodm
 YJJiQ6r/5fzOqj1AA=; b=TV4i/QkWyNta3MxEcuAEUhXmx0jlj5Lh6FIYWJX5go
 Bmg6+hUVrp84WJNmiWhGpGitLmY7ODpNj9tLGGt4c1+3z3rAfuDtDGnTLn/uN0cA
 UL//H+GTAzvOszIDsfGcr20SogyXoXWWM8f9q9hNfb7KCo1ytae5s+Es6cvL+twY
 2AOVgrGJd+M80cCOmL95mkjZFU11HWN1RWrxEHg8sjpQrXkFQVwFwiDdroRYN5Co
 ZJDugFY8iUpEGWbmziP06aPIURNGoNlxOQXeUzyd9QwR0Ji6OLV9feH0E40JMAta
 qBsf5twDWtg4KYZEAQaYROn978Io2LvNOOShi6Ef/lDQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:content-type
 :date:from:message-id:mime-version:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=2E1GIl
 9594m3wlk51NHCc7sodmYJJiQ6r/5fzOqj1AA=; b=saj1PhfK8Ozhq0sJBcznEi
 kgpJyIrIfzYMz6VUQykooLG2/1Z3VJikQfSzEurlKxUkJvkj6j4Gpp/4Ebz0C+7t
 qTVCT3ucPPYAkMZs5anPhgxdywlczgqW79zkdG78fX7NMa27xWIVE/ixSFRvfkA9
 Jr77Ny9ciGJTtLD1bpsi+KSeGuKggJ1HN/UzFVf1s8xhAkTdFI0nBnlcgQX6eopg
 QI4RlIaQimUcOo+1IwBnehtsClqt9r/Cek3oLjmzQ660rJfCaR/E0GBkeFS1tUqN
 Kx0hxX0tDeDiW477hiLU5MWs7JsvaZYJiBpZFBlBXvo+WyPHcCOPpAXlanJpnFxg
 ==
X-ME-Sender: <xms:jka4XfPJ5GoIILOewE8ff5vdVzonoeBCYHhuIaQKu4K-JIgsGb580Q>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtuddgheelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthhqredttd
 dtjeenucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhs
 vghnsehfrghsthhmrghilhdrnhgvtheqnecuffhomhgrihhnpehgnhhurdhorhhgnecukf
 hppeelvddrudeiledruddvjedrfeefnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhn
 rhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvthenucevlhhushhtvghrufhiii
 gvpedt
X-ME-Proxy: <xmx:jka4XWXOvjdlVkCz-GAfZUQtC0Vt7hVO3zYnlh0SXAZzucaKLS73vA>
 <xmx:jka4XSswhEe2kBiRjrMfvM5t9qO2YRf2sgCzlkRjczAelw36Ysw-Mw>
 <xmx:jka4XR05aG8m1miWeIMJVj2_abLVCPdBBHWU6XSUWBNf9u8ocytoaA>
 <xmx:j0a4Xa3sS442ztbSRoidfOVVa-ygFs7XLJ9RAeBUUWwT4YSKF7__xg>
Received: from ordinateur-de-catherine--konrad.home
 (lfbn-1-4129-33.w92-169.abo.wanadoo.fr [92.169.127.33])
 by mail.messagingengine.com (Postfix) with ESMTPA id E2F9880059;
 Tue, 29 Oct 2019 10:02:53 -0400 (EDT)
From: Konrad Hinsen <konrad.hinsen@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] guix: new command "guix time-machine"
Date: Fri, 25 Oct 2019 17:42:21 +0200
Message-ID: <m1bltzd4z7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 66.111.4.27
X-Spam-Score: 0.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.6 (--)

* guix/scripts/time-machine.scm: New file.
* guix/scripts/pull.scm: Export function channel-list.
* guix/inferior.scm: New function cached-guix-filetree-for-channels.
* doc/guix.texi: Document "git time-machine"
---
 doc/guix.texi                 |  47 +++++++++++++++-
 guix/inferior.scm             |  38 +++++++++----
 guix/scripts/pull.scm         |   1 +
 guix/scripts/time-machine.scm | 101 ++++++++++++++++++++++++++++++++++
 4 files changed, 174 insertions(+), 13 deletions(-)
 create mode 100644 guix/scripts/time-machine.scm

diff --git a/doc/guix.texi b/doc/guix.texi
index 7cc33c6e22..a147f16088 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -247,6 +247,7 @@ Utilities
 * Invoking guix container::     Process isolation.
 * Invoking guix weather::       Assessing substitute availability.
 * Invoking guix processes::     Listing client processes.
+* Invoking guix time-machine::  Running an older version of Guix.
=20
 Invoking @command{guix build}
=20
@@ -4142,7 +4143,10 @@ say, on another machine, by providing a channel spec=
ification in
 @end lisp
=20
 The @command{guix describe --format=3Dchannels} command can even generate =
this
-list of channels directly (@pxref{Invoking guix describe}).
+list of channels directly (@pxref{Invoking guix describe}). The resulting
+file can be used with the -C options of @command{guix pull}
+(@pxref{Invoking guix pull}) or @command{guix time-machine}
+(@pxref{Invoking guix time-machine}).
=20
 At this point the two machines run the @emph{exact same Guix}, with access=
 to
 the @emph{exact same packages}.  The output of @command{guix build gimp} on
@@ -7894,6 +7898,7 @@ the Scheme programming interface of Guix in a conveni=
ent way.
 * Invoking guix container::     Process isolation.
 * Invoking guix weather::       Assessing substitute availability.
 * Invoking guix processes::     Listing client processes.
+* Invoking guix time-machine::  Running an older version of Guix.
 @end menu
=20
 @node Invoking guix build
@@ -10563,6 +10568,46 @@ ClientPID: 19419
 ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}
 @end example
=20
+@node Invoking guix time-machine
+@section Invoking @command{guix time-machine}
+
+@cindex @command{guix time-machine}
+@cindex pinning, channels
+@cindex replicating Guix
+@cindex reproducibility, of Guix
+
+The @command{guix time-machine} command provides access to older
+versions of Guix, for example to install older versions of packages,
+or to reproduce a computation in an identical environment. The version
+of Guix to be used is defined by a commit or by a channel
+description file created by @command{guix describe}
+(@pxref{Invoking guix describe}).
+
+The general syntax is:
+
+@example
+guix time-machine @var{channels} -- @var{command} @var {arg}@dots{}
+@end example
+
+where @var{command} and @var{arg}@dots{} are passed unmodified to the
+@command{guix} command in its old version.  The @var{channels} that define
+this version can be specified using the following options:
+
+@table @code
+@item --url=3D@var{url}
+@itemx --commit=3D@var{commit}
+@itemx --branch=3D@var{branch}
+Use the @code{guix} channel from the specified @var{url}, at the
+given @var{commit} (a valid Git commit ID represented as a hexadecimal
+string), or @var{branch}.
+
+@item --channels=3D@var{file}
+@itemx -C @var{file}
+Read the list of channels from @var{file}.  @var{file} must contain
+Scheme code that evaluates to a list of channel objects.
+@xref{Channels} for more information.
+@end table
+
=20
 @node System Configuration
 @chapter System Configuration
diff --git a/guix/inferior.scm b/guix/inferior.scm
index b8e2f21f42..cb80bb43d5 100644
--- a/guix/inferior.scm
+++ b/guix/inferior.scm
@@ -89,6 +89,7 @@
             gexp->derivation-in-inferior
=20
             %inferior-cache-directory
+            cached-guix-filetree-for-channels
             inferior-for-channels))
=20
 ;;; Commentary:
@@ -635,16 +636,13 @@ failing when GUIX is too old and lacks the 'guix repl=
' command."
   (make-parameter (string-append (cache-directory #:ensure? #f)
                                  "/inferiors")))
=20
-(define* (inferior-for-channels channels
-                                #:key
-                                (cache-directory (%inferior-cache-director=
y))
-                                (ttl (* 3600 24 30)))
-  "Return an inferior for CHANNELS, a list of channels.  Use the cache at
-CACHE-DIRECTORY, where entries can be reclaimed after TTL seconds.  This
-procedure opens a new connection to the build daemon.
-
-This is a convenience procedure that people may use in manifests passed to
-'guix package -m', for instance."
+(define* (cached-guix-filetree-for-channels channels
+                                            #:key
+                                            (cache-directory (%inferior-ca=
che-directory))
+                                            (ttl (* 3600 24 30)))
+  "Return a directory containing a guix filetree defined by CHANNELS, a li=
st of channels.
+The directory is a subdirectory of CACHE-DIRECTORY, where entries can be r=
eclaimed after TTL seconds.
+This procedure opens a new connection to the build daemon."
   (with-store store
     (let ()
       (define instances
@@ -680,7 +678,7 @@ This is a convenience procedure that people may use in =
manifests passed to
                                           (file-expiration-time ttl))
=20
       (if (file-exists? cached)
-          (open-inferior cached)
+          cached
           (run-with-store store
             (mlet %store-monad ((profile
                                  (channel-instances->derivation instances)=
))
@@ -689,4 +687,20 @@ This is a convenience procedure that people may use in=
 manifests passed to
                 (built-derivations (list profile))
                 (symlink* (derivation->output-path profile) cached)
                 (add-indirect-root* cached)
-                (return (open-inferior cached)))))))))
+                (return cached))))))))
+
+(define* (inferior-for-channels channels
+                                #:key
+                                (cache-directory (%inferior-cache-director=
y))
+                                (ttl (* 3600 24 30)))
+  "Return an inferior for CHANNELS, a list of channels.  Use the cache at
+CACHE-DIRECTORY, where entries can be reclaimed after TTL seconds.  This
+procedure opens a new connection to the build daemon.
+
+This is a convenience procedure that people may use in manifests passed to
+'guix package -m', for instance."
+  (define cached
+    (cached-guix-filetree-for-channels channels
+                                       #:cache-directory cache-directory
+                                       #:ttl ttl))
+  (open-inferior cached))
diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm
index 80d070652b..a508e817b2 100644
--- a/guix/scripts/pull.scm
+++ b/guix/scripts/pull.scm
@@ -56,6 +56,7 @@
   #:use-module (ice-9 vlist)
   #:use-module (ice-9 format)
   #:export (display-profile-content
+            channel-list
             guix-pull))
=20
 
diff --git a/guix/scripts/time-machine.scm b/guix/scripts/time-machine.scm
new file mode 100644
index 0000000000..8e954d51e1
--- /dev/null
+++ b/guix/scripts/time-machine.scm
@@ -0,0 +1,101 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright =C2=A9 2019 Konrad Hinsen <konrad.hinsen@HIDDEN>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (guix scripts time-machine)
+  #:use-module (guix ui)
+  #:use-module (guix scripts)
+  #:use-module (guix inferior)
+  #:use-module (guix channels)
+  #:use-module ((guix scripts pull) #:select (channel-list))
+  #:use-module (ice-9 match)
+  #:use-module (srfi srfi-1)
+  #:use-module (srfi srfi-11)
+  #:use-module (srfi srfi-26)
+  #:use-module (srfi srfi-37)
+  #:export (guix-time-machine))
+
+
+;;;
+;;; Command-line options.
+;;;
+
+(define (show-help)
+  (display (G_ "Usage: guix time-machine [OPTION] -- COMMAND ARGS...
+Execute COMMAND ARGS... in an older version of Guix.\n"))
+  (display (G_ "
+  -C, --channels=3DFILE    deploy the channels defined in FILE"))
+  (display (G_ "
+      --url=3DURL          use the Git repository at URL"))
+  (display (G_ "
+      --commit=3DCOMMIT    use the specified COMMIT"))
+  (display (G_ "
+      --branch=3DBRANCH    use the tip of the specified BRANCH"))
+  (display (G_ "
+  -h, --help             display this help and exit"))
+  (display (G_ "
+  -V, --version          display version information and exit"))
+  (newline)
+  (show-bug-report-information))
+
+(define %options
+  ;; Specifications of the command-line options.
+  (list (option '(#\C "channels") #t #f
+                (lambda (opt name arg result)
+                  (alist-cons 'channel-file arg result)))
+         (option '("url") #t #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'repository-url arg
+                               (alist-delete 'repository-url result))))
+         (option '("commit") #t #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'ref `(commit . ,arg) result)))
+         (option '("branch") #t #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'ref `(branch . ,arg) result)))
+        (option '(#\h "help") #f #f
+                (lambda args
+                  (show-help)
+                  (exit 0)))
+        (option '(#\V "version") #f #f
+                (lambda args
+                  (show-version-and-exit "guix time-machine")))))
+
+(define (parse-args args)
+  "Parse the list of command line arguments ARGS."
+  ;; The '--' token is used to separate the command to run from the rest of
+  ;; the operands.
+  (let-values (((args command) (break (cut string=3D? "--" <>) args)))
+    (let ((opts (parse-command-line args %options '(()) #:build-options? #=
f)))
+      (match command
+        (() opts)
+        (("--") opts)
+        (("--" command ...) (alist-cons 'exec command opts))))))
+
+
+;;;
+;;; Entry point.
+;;;
+
+(define (guix-time-machine . args)
+  (with-error-handling
+    (let* ((opts         (parse-args args))
+           (channels     (channel-list opts))
+           (command-line (assoc-ref opts 'exec))
+           (directory    (cached-guix-filetree-for-channels channels))
+           (executable   (string-append directory "/bin/guix")))
+      (apply system* (cons executable command-line)))))
--=20
2.23.0





Acknowledgement sent to Konrad Hinsen <konrad.hinsen@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#37978; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 7 Nov 2019 21:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.