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 YMsvO3v5B2DfLQAA0tVLHw (envelope-from ) for ; Wed, 20 Jan 2021 09:35:55 +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 sHT5Nnv5B2BaLQAAbx9fmQ (envelope-from ) for ; Wed, 20 Jan 2021 09:35:55 +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 44BD29403AC for ; Wed, 20 Jan 2021 09:35:55 +0000 (UTC) Received: from localhost ([::1]:48832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l29u6-0005ik-9M for larch@yhetil.org; Wed, 20 Jan 2021 04:35:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l29tg-0005cr-8w for help-guix@gnu.org; Wed, 20 Jan 2021 04:35:29 -0500 Received: from freeshell.de ([2a01:360:106::2]:58586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l29td-0007Uc-V5 for help-guix@gnu.org; Wed, 20 Jan 2021 04:35:28 -0500 Received: from localhost (cst-prg-9-208.cust.vodafone.cz [46.135.9.208]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id 4EA6435CE8D9; Wed, 20 Jan 2021 10:35:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1611135317; bh=t1quoCR33+jNdQ8GuMB9Uh375D1SZNsj1VbGduCIR6U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nmQKAye7+OHv4fk9H+QtNb5wFwx8W6vJXASqdD7v7WevYAyJTjpZ76NOfmYVfxJrV Y7Ztbc+rv1o57xdPBRfznldsUh9xxcLwCD8ItBkj+64cQECRGI2Z7Lu2DGBwKHhapG xUywyZsZ0PQUJNRqjXgtqCnEcklbk3fkNX006yPQ= Date: Wed, 20 Jan 2021 10:35:14 +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: <20210120093514.hwd5ojuvrbzluu6a@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> <20210115201859.z4rlqu4xnsphowm4@wzguix> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ktyx4tlgnoscx7zu" Content-Disposition: inline In-Reply-To: <20210115201859.z4rlqu4xnsphowm4@wzguix> 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=nmQKAye7; 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: 44BD29403AC X-Spam-Score: -1.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: OniAZrMrBnBC --ktyx4tlgnoscx7zu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 15, 2021 at 09:19:01PM +0100, Wiktor =C5=BBelazny wrote: > A new idea: I just checked =E2=80=9CCRAN Time Machine=E2=80=9D at MRAN. T= he tarball > with the 0g4mi101srjbl17ydb2hl3854m3xj0llj6861lfr30sp08nkqavl hash is > there. A solution with an inferior: in guix-packages.git/local/cran.scm (guix-packages.git is a local git repo): (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-75.tar.gz") (sha256 (base32 "0g4mi101srjbl17ydb2hl3854m3xj0llj6861lfr30sp08nkqavl"))))= )) $ cat manifest.scm (use-modules (guix inferior) (guix channels) (srfi srfi-1)) ;for 'first' (define channels ;; This is the revision from which we want to ;; extract r-foreign. (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "d81fb2ae9443994ae5dd1cb5837276fad63f842c")) (channel (name 'local) (url "./guix-packages.git")))) (define inferior ;; An inferior representing the above revision (inferior-for-channels channels)) ;; Now create a manifest with the current "r" package ;; and the substituted "r-foreign" package. (packages->manifest (list (first (lookup-inferior-packages inferior "r-foreign" "0.8-75-fix= ed")) (specification->package "r"))) More stuff can be added to the manifest by appending other `(specification->package "")` elements to the list. $ cat channel-specs.scm (list (channel (name 'local) (url "./guix-packages.git")) (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "d81fb2ae9443994ae5dd1cb5837276fad63f842c"))) $ guix time-machine --commit=3Dd81fb2ae9443994ae5dd1cb5837276fad63f842c --c= hannels=3Dchannel-specs.scm -- \ environment -C --pure --manifest=3Dmanifest.scm I extracted and adapted this from my larger package definition repository and manifest, and did not test the resulting minimum version, but you get the idea. Perhaps, this should go to the manual. W=C5=BB --ktyx4tlgnoscx7zu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAmAH+VJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edVssg/+KS0fZbzAPoylynxoPsljXMr6AODqRVB8Zh5fTCXqQalQnNP4k6KGaxW2 PGb5NNn1HRnMLjw17eggzAXA8oVNYV8K4b3N/fwgK4dU/vcCccNMFJkimzfYde5W t0pczFLzn3nEcJu54YlSNrVqZrm0zc/kf1G3jAFggwMTAJM1wT9xYevpXrCAv14+ ATFyBhVT9V7qpQmIKkMDa4oenBp7YD1k0mTlKMMJ9i408RW8+t87VkoAP+WRk6CH 6kxtF6Rys3aa7URaHkmXqjfSu7BZzEcgRIid4/pLD9MKxHEmvA49bgHYsToldfTb vefkcFNNp5wXD5wQIWufSqvlYj9UAcA6txHPio/1xtS/qi1PnAeoKT09pB5rY/9Y bnfFfss8Bej0bRqiYe7KszEHpKwPZYGdMqqej7FW4a3IDcB6uBS/JLBxltPduT4g XJ4O3wVcLkz+EsFGIPsH/bEBEho0zUfwlK4JvZkR45Ygq7NWAn79R60dQXoXh9IR 694KPDoBnorK97kVpDDxKFqVJCRoriSN/HOJQ2xNhDqUfWlmsoiXdLQywiWwzGiD pvIdkuB5z9LIKhq6/0ZT0uu4fbMcv9gHasAAUPNRenFKYOwcWOVoy2XWLpAtTAvB 5GtG5IMne2HC5TvCbiuSqna8IOmepcY476xPEoLHKaQSoUeGQCg= =cRGb -----END PGP SIGNATURE----- --ktyx4tlgnoscx7zu--