From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aOkiDlv6AWAXagAA0tVLHw (envelope-from ) for ; Fri, 15 Jan 2021 20:26:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SNG0CVv6AWB/LwAAbx9fmQ (envelope-from ) for ; Fri, 15 Jan 2021 20:26:03 +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 CC39D9403A9 for ; Fri, 15 Jan 2021 20:26:01 +0000 (UTC) Received: from localhost ([::1]:49886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0VfU-0001UG-Qr for larch@yhetil.org; Fri, 15 Jan 2021 15:26:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0VYv-0004Y8-Bb for help-guix@gnu.org; Fri, 15 Jan 2021 15:19:14 -0500 Received: from freeshell.de ([2a01:360:106::2]:41882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0VYs-0002kM-0W for help-guix@gnu.org; Fri, 15 Jan 2021 15:19:13 -0500 Received: from localhost (cst-prg-7-79.cust.vodafone.cz [46.135.7.79]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id EEAC435CE9AD; Fri, 15 Jan 2021 21:19:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1610741941; bh=0ALhieoh8AOzZhiRANP9Bg3O+kuFbqEzaJYaNklUOgQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZnOH4AXiwa4AJ8tx4zmDDSUaYpzWC3aHZl4bwREInRPvmpBPLNYXAPyHPpkNYNQ5z mSbq5yD0aMgx6IqJsAXqB0VC+7IFPCQj9NMmbc1Q3zg6HLOHB8Axww2LGS8rVy4I/p u4JLFNt/KWRJSV3RWUrylhz6gK7bDhOn0ZeWCETY= Date: Fri, 15 Jan 2021 21:18:59 +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: <20210115201859.z4rlqu4xnsphowm4@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: <20210113132223.x4wgnwwph2jwtfb5@wzguix> <20210113193730.efv5qknqcbwit4jk@wzguix> <20210114083000.ak4de227ipfi37pg@wzguix> <86eeinsvbg.fsf@gmail.com> <20210114190030.suymnghk5mhteseu@wzguix> <86r1mnl0sj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u2yflm6eyals24tf" Content-Disposition: inline In-Reply-To: <86r1mnl0sj.fsf@gmail.com> 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.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=freeshell.de header.s=mail header.b=ZnOH4AXi; 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: CC39D9403A9 X-Spam-Score: -1.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: yIZDYK0PDu3Q --u2yflm6eyals24tf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 14, 2021 at 09:29:48PM +0100, zimoun wrote: > But I am doubtful that is what you really want. Instead, I guess you > want packages that depends on r-foreign, as r for instance. Let take > r-hmisc and r-rio for simplicity. Hi, Thank you for the great explanation. > --8<---------------cut here---------------start------------->8--- > $ guix time-machine --commit=3Dd81fb2a \ > -- build -L pkgs r-hmisc r-rio --with-input=3Dr-foreign=3Dr-forei= gn=20 > [=E2=80=A6] > guix build: avertissement : sp=C3=A9cification du paquet =C2=AB r-foreign= =C2=BB ambigu=C3=AB =20 > guix build: avertissement : choix de r-foreign@0.8-75 =C3=A0 l'emplacemen= t pkgs/fix.\ > scm:8:2 > [=E2=80=A6] > /gnu/store/b64i6d3vsyss7154j1dgvc8rr7k4wzqs-r-rio-0.5.16 > /gnu/store/w0lpix3yjlzsb9kh32hsg0lp1igrk1y9-r-hmisc-4.3-0 > --8<---------------cut here---------------end--------------->8--- > > If you want you avoid the ambiguity, you can instead rename the package > as you want, for instance r-foreign-new and just type: > > --with-input=3Dr-foreign=3Dr-foreign-new This actually looks like one of the approaches that I tried before starting this thread, but with `environment` substituted for `build`. Is it possible that `guix environment` ignores --with-input? `guix environment --help-transform` lists it. It is also possible that I did something a bit differently than in your example (devil in the details). I would need to compare the presented approach with mine. > you will not get the exact R packages as they were at the time of > d81fb2a; Can you, please, elaborate on that? Do you mean by that that the different r-foreign will result in a different r, and that will propagate to the packages, as they depend on r? But R does not compile the R code in the packages while they are being installed, does it? Am I missing something? If it were the issue wouldn=E2=80=99t it occur also in y= our `./pre-inst-env` approach? A new idea: I just checked =E2=80=9CCRAN Time Machine=E2=80=9D at MRAN. The= tarball with the 0g4mi101srjbl17ydb2hl3854m3xj0llj6861lfr30sp08nkqavl hash is there. I guess I can use `build --with-source=3D` now, maybe even `environment --with-source=3Dr-foreign=3D`? Perhaps a more elegant solution would be to define r-foreign-fixed, as you describe above, yet this time leaving the hash, but changing the URL. Are there philosophical reasons for not using MRAN? W=C5=BB --u2yflm6eyals24tf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAmAB+LNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edWDGg/+KWRm/n3/HzhGShkq5tapVLUzrD3xA97wGI3O++slzEW25PqHPBibZXmf E3+oaDrSQzaKrFnD/N7evBvFG2NMNJIXqwTKNiDlScAaDobDNrP+AYsgi6i6Q00+ 6bn3BcQqOxrvIs6xo4dFHaG0whfoepNR4srbRa/p1atzFGmP3Mwsa5uWZR+dKUKY hazxMB4iwZmg013Tsx613fXb8XvEj2J/PNTyYHvOzZHmThapxszcnHTFYfAE8t+h tebyqCf+QR/UrTfrkqLSqomucSwPu2EsOuQmM4iWQYvWsL+pUAepPgRnDzBwsKYI lhwWSYbA6gF7pk3KoQOBli25fk6d8oMmcYKfc5JICmGgN0q0bixVFBOGv/wZIKid rCvyZnwx+3YaRDXyEPoHG7IVt+V9eKBK6liHvI5YsYxAsENRS68nUEpBTsdyNX2j j5Joqa6hP9sOISk52MU9hcwN0JDdM7hFfoF2sr+9gHE+Z/ctqLh5Mebd/X3pX4RS rN5S+Nn8IG4bVXO4WmlP8SgHmww/pESNTz9HHhhvkWrWJdQAE3AbEPsJxoVEsuod Lfwipezh5QJSj2N0v9M9lD67XZ+DGfpORQr0+SP5rDpx7ERPyj1tapbtHfbmZ45h Ot4+oE7g17LjNqGruHE+jYHe2/6V6tQWjzjqfBHS7W6SSy4mQf4= =jOwH -----END PGP SIGNATURE----- --u2yflm6eyals24tf--