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 MDqOJXkhCGDfNgAA0tVLHw (envelope-from ) for ; Wed, 20 Jan 2021 12:26:33 +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 eOpdIXkhCGAKRwAAB5/wlQ (envelope-from ) for ; Wed, 20 Jan 2021 12:26:33 +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 3030094030E for ; Wed, 20 Jan 2021 12:26:31 +0000 (UTC) Received: from localhost ([::1]:34870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2CZA-0003db-Mu for larch@yhetil.org; Wed, 20 Jan 2021 07:26:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2CYs-0003cu-Ss for help-guix@gnu.org; Wed, 20 Jan 2021 07:26:10 -0500 Received: from freeshell.de ([2a01:360:106::2]:35878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2CYp-0007yA-S8 for help-guix@gnu.org; Wed, 20 Jan 2021 07:26:10 -0500 Received: from localhost (cst-prg-10-233.cust.vodafone.cz [46.135.10.233]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id 35AC435CEA0B; Wed, 20 Jan 2021 13:26:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1611145563; bh=Xka/UjIGAG7LAgB2LcjbCHvR2Q6BwFfw4ggY4DMyIzo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XU5iyjlLJXa/7pVEyVNZRz4KKjsh2IJgv6SaB3/w6e+U/8yXIk6IG060a5xUIjsyt ZU5EKpjsTq27hpr/9tJtuO2Dq+YMUAJ3Bu1r+m4d0vMWE720iO2axRmeNVXuv5NCOC +um0iVO3THdGkLuwhniq2GEyT0O820GL7JUP/oF8= Date: Wed, 20 Jan 2021 13:26:02 +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: <20210120122602.la6nckvozvdkwfnh@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: <20210113193730.efv5qknqcbwit4jk@wzguix> <20210114083000.ak4de227ipfi37pg@wzguix> <86eeinsvbg.fsf@gmail.com> <20210114190030.suymnghk5mhteseu@wzguix> <86r1mnl0sj.fsf@gmail.com> <20210115201859.z4rlqu4xnsphowm4@wzguix> <20210120093514.hwd5ojuvrbzluu6a@wzguix> <86czxz9aoa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n7udpeh3ui5746my" Content-Disposition: inline In-Reply-To: <86czxz9aoa.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.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=freeshell.de header.s=mail header.b=XU5iyjlL; 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: 3030094030E X-Spam-Score: -1.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: daUPQcvgOF30 --n7udpeh3ui5746my Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 20, 2021 at 11:15:17AM +0100, zimoun wrote: > Cool if Microsoft support long time archive of CRAN packages. Well, it > seems possible to use it as fallback. Hi, Thanks for the review. You could say the same thing about Software Heritage. You never know. I was considering starting a new thread questioning the sufficiency of the manifest and channels to reproduce an environment (you can find this kind of statement in Konrad Hinsen=E2=80=99s =E2=80=9CReproducible computations with Guix=E2=80=9D last year=E2=80=99s G= uixHPC blog post, for instance). Looks like you also want to archive the source code, just in case. > > (packages->manifest > > (list (first (lookup-inferior-packages inferior "r-foreign" "0.8-75= -fixed")) > > (specification->package "r"))) > > Here, the package =E2=80=9Cr-foreign=E2=80=9D come from d81fb2a and so it= is built using > the R build system from d81fb2a. I do want d81fb2a r-foreign be built by d81fb2a R build system. > However, the package =E2=80=9Cr=E2=80=9D come from the current Guix, i.e.= , the Guix when > the manifest is called. It is called from the time machine, so it=E2=80=99s also d81fb2a, right? Th= at=E2=80=99s what I want. > Specifying --commit and --channels is redundant. Other said, the > --commit is not necessary because it is already provided by your > =E2=80=99channel-specs.scm=E2=80=99. But that=E2=80=99s a detail. :-) Thanks. I thought that --channels referred to the package definitions, whereas --commit to the guix version that processes them (yes, I know that the definitions are a part of guix, but still). Does `environment -C` imply `environment --pure`, as well? > By =E2=80=9Cchance=E2=80=9D, the file =E2=80=99channel-specs.scm=E2=80=99= and =E2=80=99manifest.scm=E2=80=99 points to > the same commit. This is intentional. I want to have an environment reflecting the d81fb2a state of things, so that=E2=80=99s why I=E2=80=99m consistent with = the commit. > However, the inferior in =E2=80=99manifest.scm=E2=80=99 is not necessary. Why? If it=E2=80=99s not there, you=E2=80=99re facing the hash mismatch pro= blem, aren=E2=80=99t you? Please, explain. > Inferiors in =E2=80=99manifest.scm=E2=80=99 are used when you want to put= some packages > from different Guix commits in the same profile. And it is not what you > want here; if I understand correctly your problem. If a tool designed for some purpose turns out to be suitable for other purposes, as well, I see no reason for not using it for latter. It=E2=80=99= s a bit like Unix philosophy. I use an inferior to substitute a guix package also in my config.scm. I added some patch or something (I don=E2=80=99t remember), so the definition= is loaded from another channel, rather than another guix commit. Maybe I even borrowed this trick from someone who had been showing it on this mailing list. (define wz-channel (cons* (channel (name 'guix-wz) (url "file:///home/w/guix/guix-wz-git")) %default-channels)) (define spectrwm-wz (first (lookup-inferior-packages (inferior-for-channels wz-channel) "spectrwm-wz" "3.2.0"))) ; I should upgrade it, I guess (packages (append (list ;; dadada spectrwm-wz) %base-packages)) It works for me. If there are better solutions, I=E2=80=99ll be happy to le= arn. W=C5=BB --n7udpeh3ui5746my Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAmAIIVlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edVsTA/+LyovgA5PrtXPbzxw/etFmTujvRJvf+SKym4Arb7qZUS1skUaUlkLOhWF c2ONV2rnIufdWVa+bEq5UET0GufVeNDnH+H1VuFr5BZOTqv3UsSv0+Su/e2PEEDi Fn5SOAH84lPjbJmyqtc1q9VNg5c6K9483fW+BTfE30lcOg45eTyEYgJJWug8HTOP c0xiLsdAsh6tFr2B6r0Bhj+sStfN3Za80ZfndzcPZDxytV9vKITtJIFqJBHCuRhG jhcHgghcynuCRVT4CcuwBqPjgh6Xioe753xHuT5f6vHgdfBkL3N4DQHyWxPcUGqn asrVexYfy+0aTAV8HyAWqYg8DNxErh13++vEawK5mh7t8PLxlxGNuJsTZSLEloJU bFuzn05j7d2FHbywfR/ZynCI1RAQgCwxe2+ECxmYUHV419cpErwFBWscLYGRZxeV DuoBxjTY9WsrVlVAYQauy/M7bEd4H+wUcCo2Ve3SL8tLKFZzhr1XX8lsMKP5qeVf /lqbHO+XN6yu+oElw6fN2KFOViaHUM7fSUjx/G7WBewIH2JSjmGFS7Qy9uj/hNIi m5qGvxiOZ0uQXtywInw7UX6X3FLhl6t8mu0NuciJn3lf8OByoh59WLu0ptFTbmO/ zzkOAmZTy6xGTp7+hxPp+RyGgD23QRUUgtuNgbCv2Fe+UMi42R8= =XST8 -----END PGP SIGNATURE----- --n7udpeh3ui5746my--