From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qNpfE864CmCyJAAA0tVLHw (envelope-from ) for ; Fri, 22 Jan 2021 11:36:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sOIwD864CmCyCwAAB5/wlQ (envelope-from ) for ; Fri, 22 Jan 2021 11:36:46 +0000 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 BE975940481 for ; Fri, 22 Jan 2021 11:36:44 +0000 (UTC) Received: from localhost ([::1]:40842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2uk7-0000dA-1s for larch@yhetil.org; Fri, 22 Jan 2021 06:36:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2ujg-0000Yw-V0 for help-guix@gnu.org; Fri, 22 Jan 2021 06:36:17 -0500 Received: from freeshell.de ([2a01:360:106::2]:43958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2uje-00049G-Rn for help-guix@gnu.org; Fri, 22 Jan 2021 06:36:16 -0500 Received: from localhost (cst-prg-12-153.cust.vodafone.cz [46.135.12.153]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id 8C6EB35CDE2C; Fri, 22 Jan 2021 12:36:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1611315367; bh=S1DyHv+pr016rnB+tWXqfu1NXgK+y7R1gzwG+NkhGbQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ux0HU5su6JIltatM3OsfFm8ZEFRZezDr4S4fPrv04tkpXfiTNVOQ8z6EjDTB1nLBp 81pybNMr/9tgaV7NeIh57Oxp0nc5qfTwCWt7TGYjALfu3sI8aMhK0m9mzOuO75W6wB VqCJvOkFHM4jxd6wICBk80qV8ENpnALHM9zE3HOI= Date: Fri, 22 Jan 2021 12:36:06 +0100 From: Wiktor =?utf-8?Q?=C5=BBelazny?= To: help-guix@gnu.org Subject: Re: guix time-machine, broken hash in an old package definition, a workaround? Message-ID: <20210122113606.iogodbik5prg5xhm@wzguix> Mail-Followup-To: help-guix@gnu.org, zimoun X-PGP-Key: https://freeshell.de/~wz/pubkey.asc X-PGP-Fingerprint: BDC9 74CD D9C9 BA7D 761A 573D C735 A8C6 AB60 79D5 References: <20210114083000.ak4de227ipfi37pg@wzguix> <86eeinsvbg.fsf@gmail.com> <20210114190030.suymnghk5mhteseu@wzguix> <86r1mnl0sj.fsf@gmail.com> <20210115201859.z4rlqu4xnsphowm4@wzguix> <20210120093514.hwd5ojuvrbzluu6a@wzguix> <86czxz9aoa.fsf@gmail.com> <20210120122602.la6nckvozvdkwfnh@wzguix> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ulwbntiv3do744ib" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a01:360:106::2; envelope-from=wz@freeshell.de; helo=freeshell.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=freeshell.de header.s=mail header.b=Ux0HU5su; dmarc=fail reason="SPF not aligned (relaxed)" header.from=freeshell.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: BE975940481 X-Spam-Score: -1.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: w1yxtlPOFaJX --ulwbntiv3do744ib Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 20, 2021 at 04:03:09PM +0100, zimoun wrote: > I was thinking to add MRAN as fallback for CRAN packages. I will give > a look. Hi simon, Would be cool, however for MRAN you also need the snapshot date. Would it be feasible to extract it from the commit date? There are dates at CRAN, but for the archived package versions these are =E2=80=9CLast modifie= d=E2=80=9D. There is also =E2=80=9CDate/Publication:=E2=80=9D field in the tarball, but= you wouldn=E2=80=99t trust a tarball with a hash mismatch. > I bet that removing the inferior still works, for example: > > --8<---------------cut here---------------start------------->8--- > $ cat manifest.scm > ;; Maybe adding modules > > (define-public r-foreign-fixed > (package (inherit r-foreign) > (version "0.8-75-fixed") > (source > (origin > (method url-fetch) > (uri > "https://cran.microsoft.com/snapshot/2020-01-27/src/contrib/foreign_0.8-7= 5.tar.gz") > (sha256 > (base32 > "0g4mi101srjbl17ydb2hl3854m3xj0llj6861lfr30sp08nkqavl")))= ))) > > (specifications->manifest > (list > "r" > "r-foreign@0.8-75-fixed")) > > $ guix time-machine --commit=3Dd81fb2a \ > -- environment -m manifest.scm > --8<---------------cut here---------------end--------------->8--- I cannot check it. This approach works, but for some mysterious reason it also works when I remove the r-foreign-fixed definition and constrain the manifest to r. Without the definition, I would expect guix to try building r-foreign from CRAN. I thought that maybe guix treated r-foreign@0.8-75 and r-foreign@0.8-75-fixed as exchangeable because of the same hash, even if the versions and URIs differed, and so did not try to build r-foreign@0.8-75, but used r-foreign@0.8-75-fixed from the store. However, with `guix time-machine =E2=80=A6 -- build r-foreign@0.8-75= `, I=E2=80=99m getting a different output than for `guix time-machine =E2=80= =A6 -- build r-foreign@0.8-75-fixed`. I tried `guix gc ` to force the rebuild, but I got the =E2=80=9Cstill alive=E2=80=9D error, even though I h= ad exited the environment. I will just trust your expertise on that, and keep your solution. I can always go back to the inferior if it turns out to fail when I encounter the hash mismatch problem sometime in the future. > (As previously shown in this thread.) Sorry, I somehow hard-coded in my head that those were =E2=80=9Cgame over= =E2=80=9D=E2=80=99s and did not review them after MRAN had =E2=80=9Cchanged the game=E2=80=9D. Have a nice weekend, W=C5=BB --ulwbntiv3do744ib Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAmAKuKZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edVSsw/+NAs5IXNsL7fJNdLWtixBe8AKoyVMIVeuDkBL6AUTVWUwyv8aIIhBOqRD IcIhxmKtZRomn02Z3sBU2Z7R5X0r78VYdK+bDTw0lQQqxNOJyrU01cXtxENmWuoE b+vS5k7bm5Com3JsY+17c8TrilM3ATHObrOBenKs07iR9MXKQPjfqF4i7WxW4Msm ZX1/JXFVYtLMnGqmVPdBPw3ZrBGGi1aOPKr3b+Wb7Vh2caaKmOvG/W08hZ1GnuIb 3Cl6ntxdv5sl3KuzjA7Z0f7JKV9bmO5kKSUPCAxTxnjhaFmp5v8Pbqb/iZaXZD8d d0qmOeriBASFwmD2tdV57H8e8mzczqiN3c1JN7iBUxT0Eamv+1/fQ7pIzdP2l+cY /lrxyCNOt4xl44Lr6TF7LU+B4rkRsQHI4xeS9tNhtihOYiaXEatgVKCOKPZJBQqy 5LZARdYxIiM7/JWAKSLj07JkwvaaRJ63d7xcOhTgMg2nhhfy34ikyTkiyaNAtYBe dDbHSY0eWYsq1mVoGkr8VZnuBgHzbsp+GDPLYcGqbJ7p5671buChDGLCsV8n/wA9 YIE+YYzXErDqAUTxTJvIN+SxnePRuCvETxHhNl+34PYjyeCJRHnlHN87uTvGXFKO 8Fhb43e6IQAwPIiTubXMrJeeYRyp7+wR69WCKNYDjMVir9FB34I= =HZMG -----END PGP SIGNATURE----- --ulwbntiv3do744ib--