From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0CzjKVVGCGC8GgAA0tVLHw (envelope-from ) for ; Wed, 20 Jan 2021 15:03:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yO+4JVVGCGBTcQAA1q6Kng (envelope-from ) for ; Wed, 20 Jan 2021 15:03:49 +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 11AE89404CF for ; Wed, 20 Jan 2021 15:03:48 +0000 (UTC) Received: from localhost ([::1]:54494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2F1O-0002mF-PH for larch@yhetil.org; Wed, 20 Jan 2021 10:03:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2F13-0002m6-4u for help-guix@gnu.org; Wed, 20 Jan 2021 10:03:25 -0500 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:38004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2F10-0002a3-P9 for help-guix@gnu.org; Wed, 20 Jan 2021 10:03:24 -0500 Received: by mail-qk1-x72d.google.com with SMTP id d85so1414467qkg.5 for ; Wed, 20 Jan 2021 07:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=4z7OYik03CY2TrpFVs4GixOJ7Z2PZq5re87TP/8mO0E=; b=GkfXIxcCiH+xqjxj2bnqNm0s7JWt0UYvMaV9Ksyb087wAH6VK6nCEcuTQEl78En4jc 6cErPExDT9+CRIscNF8yvvFFP4jlK6gDSlVc41Wr6zUYdUuqKDBfAT7NIiTaIqcRX8yW uXjrLqksbUxN7KMo3KLed6pCRAdXn7vCZUwNaPo4Nasng9WXekj6JErCNRkh8zvjDKhZ kS+ouVXukwW5RfB1UUoRYad6MdL5zPoFrOUnlJ/S6KaF3M/aSdDi2JumpGLBBRykUzVe BZxQDWI/0TE+EkXCtaa9XER+a2dDxeN3VPhcFURdMfNU0T1Y778hkjxaWR3HWuoMODic VoKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=4z7OYik03CY2TrpFVs4GixOJ7Z2PZq5re87TP/8mO0E=; b=V2DJbuwGDDcBszsra/5AoN6v8PPC3cs6Pe8795vmk9PU5VO6Nt/hbAEfd1yWcEcp6r du6wWqJxTPPPdcTxc5g/ldGen5yDh0H1QNErTIGw+mXN5OarNCTQ06RbU6M6M00Af5Lr QkqupIxVL2LIpxK1QmGw83xarDAmnN9h40wNBm3CEscEOFrnp6NcEBqitdFw5ikassJ3 NDb3sFs334yx+fASDIpecy2njTHb3H/+9qkXmulgzcfpRxTjAuWDcfm1Xet7krtcVlmm njSWKwPr873eiWWoxC91G6AE1Yn7u0xI1yzMkqC6t2KEDTy2/sejNpaYKmpBA4BQi84p mVrA== X-Gm-Message-State: AOAM531Btv2mdn7xw/hSoHbg0nHz3Zw1G/L+eZcO3rvkWNmHZClJWaaR GuRYCj0Ga4rk/Gl0tnS5b8MYvWlsXeOwlvl0cVbXa3EkJpk= X-Google-Smtp-Source: ABdhPJx09wUrc9CYCbxMWgsSqg1ubdINGFOM/RfiknQieA+tvMEwHxOCTmpaF2HNNRqMARUthHab9Odayy5nao4AzKg= X-Received: by 2002:a05:620a:805:: with SMTP id s5mr9957495qks.80.1611155001209; Wed, 20 Jan 2021 07:03:21 -0800 (PST) MIME-Version: 1.0 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> <20210120122602.la6nckvozvdkwfnh@wzguix> In-Reply-To: <20210120122602.la6nckvozvdkwfnh@wzguix> From: zimoun Date: Wed, 20 Jan 2021 16:03:09 +0100 Message-ID: Subject: Re: guix time-machine, broken hash in an old package definition, a workaround? To: help-guix , zimoun Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=zimon.toutoune@gmail.com; helo=mail-qk1-x72d.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: -0.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=GkfXIxcC; dmarc=pass (policy=none) header.from=gmail.com; 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: 11AE89404CF X-Spam-Score: -0.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: gMeITXevkmiW Hi, On Wed, 20 Jan 2021 at 13:26, Wiktor =C5=BBelazny wrote: > 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. > Thanks for the review. You could say the same thing about Software > Heritage. You never know. I was considering starting a new thread I was thinking to add MRAN as fallback for CRAN packages. I will give a lo= ok. The current issue with Software Heritage is that the tarballs story is not ready yet. Roughly speaking, now it is not possible to fallback to SWH for tarballs. > > 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). I do not know if there is a precedence and what happens if the file passed to the --channels option provides a commit and in the same time --commit provides another commit. > Does `environment -C` imply `environment --pure`, as well? --pure simply clear all the environment variables. --container runs a fresh container, i.e., nothing inherited. > > 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 wit= h the commit. My point is the inferior done by your manifest is not necessary for that. Somehow, you are running this: guix time-machine --commit=3Dd81fb2a \ -- time-machine --commit=3Dd81fb2a \ -- build r-foreign@fixed This command line is almost equivalent to the inferior in your manifest fil= e. > > However, the inferior in =E2=80=99manifest.scm=E2=80=99 is not necessar= y. > > Why? If it=E2=80=99s not there, you=E2=80=99re facing the hash mismatch p= roblem, aren=E2=80=99t > you? Please, explain. No. Because you need to build 'r-foreign@fixed' and not 'r-foreign' 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-75.= 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--- (As previously shown in this thread.) > > Inferiors in =E2=80=99manifest.scm=E2=80=99 are used when you want to p= ut some packages > > from different Guix commits in the same profile. And it is not what yo= u > > 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= =99s a > bit like Unix philosophy. Obviously! You can shot in your foot, too. :-) My comment is to explain that your use of "inferior" is far to be optimal and not necessary to solve your problem. > It works for me. If there are better solutions, I=E2=80=99ll be happy to = learn. For example, see here All the best, simon