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 SCA/F/IDCGCwIgAA0tVLHw (envelope-from ) for ; Wed, 20 Jan 2021 10:20:34 +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 8MAOE/IDCGAdTQAAbx9fmQ (envelope-from ) for ; Wed, 20 Jan 2021 10:20:34 +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 BE76F9403D2 for ; Wed, 20 Jan 2021 10:20:33 +0000 (UTC) Received: from localhost ([::1]:36070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2AbI-0001Jh-Hw for larch@yhetil.org; Wed, 20 Jan 2021 05:20:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2Ab8-0001IJ-Ka for help-guix@gnu.org; Wed, 20 Jan 2021 05:20:22 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:38570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2Ab3-0006dT-NX for help-guix@gnu.org; Wed, 20 Jan 2021 05:20:22 -0500 Received: by mail-wm1-x332.google.com with SMTP id y187so2324932wmd.3 for ; Wed, 20 Jan 2021 02:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=uwB8f3KXylwyEQzKvCjZD1qZFaCPSY+h4JYicnuZLq4=; b=jZe9haaqnxU96XtGHAv58bOAdrO6ScTF89qsA4RWdScvwgE/2eRkceApDLh8vGdtvk Lg+xHimq2iIYbFr0ueuFomY8YD+kQlWq1nfAg5mXox+uA4mwl3lKWzz/cTz6CYSrrZDH qfh7djv63zem/cv0mW6z+AXWuSgODr5jPju6ePoozCs1HeU9XGm+yuBr4ue+jFXDo31x PuxBOx6OyNSs53aGRgcTGxklNrit/Azr75v+BF3jSYGHDl6SFctcKU5QjVJDdMltOl7H SGqKWmqqvSGPNfxjyl3F2zczAmtqGgw6s0e6OCiNys0U6zFrqjW8knsTwxCXfwClWbLd p5kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=uwB8f3KXylwyEQzKvCjZD1qZFaCPSY+h4JYicnuZLq4=; b=MP3ZkIR+pvnbY1nWuvTK0zZoSRkIBPUWoXC2GuHHs5Y1DZlpwGQoGKWoxpemBg0abc rh3u4Yz+8wk6HDoGCo616tPBeMp2RpPzwsHEynMhidlhkEttocsdNJCuVQOdmgLD3CDm 2WRv0/WaugmoeFo0xUKkYbbwCZ4Li45N5H9CYlGmJQv0LiLJ6Tzfd2YpoZ7oGxhFWs8i lER0ps0RDP7o/aQXQPPbFM+qJ7FI5IYwiB3bbSo8AKv5L2QKSmwEocq6/Tr9k0KVt5Hs TlNFbYg//2FI9oF2KNysULuiNrweHmVsKwGsIk191SSLTmUXogxb0929eha9+JjrZv4n zaKA== X-Gm-Message-State: AOAM533ZK6Zf46dfF/ncvUSt9ASdNESIIcCklCSFsCVOonYutRCxwia8 FjuqZH3GChki6APAT/clDG5YeWeE36Y= X-Google-Smtp-Source: ABdhPJwx7oDXkihQBPzoYhilfjGKQ4aRMyJQI7Db4GobLFaF6j6YnMw1rpRvkL3JRERedXEs5bh+hQ== X-Received: by 2002:a05:600c:3549:: with SMTP id i9mr3442962wmq.89.1611138016168; Wed, 20 Jan 2021 02:20:16 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j13sm2976693wmi.24.2021.01.20.02.20.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 02:20:15 -0800 (PST) From: zimoun To: Wiktor =?utf-8?Q?=C5=BBelazny?= , help-guix@gnu.org Subject: Re: guix time-machine, broken hash in an old package definition, a workaround? In-Reply-To: <20210120093514.hwd5ojuvrbzluu6a@wzguix> References: <20210113132223.x4wgnwwph2jwtfb5@wzguix> <20210113193730.efv5qknqcbwit4jk@wzguix> <20210114083000.ak4de227ipfi37pg@wzguix> <86eeinsvbg.fsf@gmail.com> <20210114190030.suymnghk5mhteseu@wzguix> <86r1mnl0sj.fsf@gmail.com> <20210115201859.z4rlqu4xnsphowm4@wzguix> <20210120093514.hwd5ojuvrbzluu6a@wzguix> Date: Wed, 20 Jan 2021 11:15:17 +0100 Message-ID: <86czxz9aoa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.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: -2.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=jZe9haaq; 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: BE76F9403D2 X-Spam-Score: -2.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: bK3E0DsKB1Tb Hi, On Wed, 20 Jan 2021 at 10:35, Wiktor =C5=BBelazny wrote: > 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. = The tarball >> with the 0g4mi101srjbl17ydb2hl3854m3xj0llj6861lfr30sp08nkqavl hash is >> there. > > A solution with an inferior: Your solution could be error prone, IMHO. > in guix-packages.git/local/cran.scm (guix-packages.git is a local git rep= o): > > (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/contr= ib/foreign_0.8-75.tar.gz") > (sha256 > (base32 > "0g4mi101srjbl17ydb2hl3854m3xj0llj6861lfr30sp08nkqavl"))= )))) Cool if Microsoft support long time archive of CRAN packages. Well, it seems possible to use it as fallback. > (packages->manifest > (list (first (lookup-inferior-packages inferior "r-foreign" "0.8-75-f= ixed")) > (specification->package "r"))) Here, the package =E2=80=9Cr-foreign=E2=80=9D come from d81fb2a and so it i= s built using the R build system from d81fb2a. However, the package =E2=80=9Cr=E2=80=9D come from the current Guix, i.e., = the Guix when the manifest is called. Therefore, the =E2=80=9Cr-foreign=E2=80=9D and =E2= =80=9Cr=E2=80=9D packages could be incompatible. For example, if =E2=80=9Cr-foreign=E2=80=9D is buil= t with R 3.x and =E2=80=9Cr=E2=80=9D with R 3.y maybe these two R versions use a differe= nt bytecode for their VMs. > $ guix time-machine --commit=3Dd81fb2ae9443994ae5dd1cb5837276fad63f842c -= -channels=3Dchannel-specs.scm -- \ > environment -C --pure --manifest=3Dmanifest.scm 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. :-) This command create an inferior at commit fixed by =E2=80=99channel-specs.s= cm=E2=80=99 and in this inferior, it runs =E2=80=99manifest.scm=E2=80=99. The file =E2=80=99manifest.scm=E2=80=99 creates another inferior at commit = d81fb2a to build =E2=80=9Cr-foreign=E2=80=9D and then build =E2=80=9Cr=E2=80=9D in the= current inferior (the one specified by =E2=80=99channel-specs.scm=E2=80=99). By =E2=80=9Cchance=E2=80=9D, the file =E2=80=99channel-specs.scm=E2=80=99 a= nd =E2=80=99manifest.scm=E2=80=99 points to the same commit. However, the inferior in =E2=80=99manifest.scm=E2=80=99 i= s not necessary. And even, from my point of view, it is a bad idea. Inferiors in =E2=80=99manifest.scm=E2=80=99 are used when you want to put s= ome packages from different Guix commits in the same profile. And it is not what you want here; if I understand correctly your problem. All the best, simon