From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id /PCeK3pt52BNZQEAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 23:26:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4BWsJnpt52D8cQAA1q6Kng (envelope-from ) for ; Thu, 08 Jul 2021 21:26:18 +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 3F39F14A48 for ; Thu, 8 Jul 2021 23:26:18 +0200 (CEST) Received: from localhost ([::1]:41872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1bXF-0004Pw-4E for larch@yhetil.org; Thu, 08 Jul 2021 17:26:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1bX0-0004Ou-Nz for guix-patches@gnu.org; Thu, 08 Jul 2021 17:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1bX0-0004kF-Gh for guix-patches@gnu.org; Thu, 08 Jul 2021 17:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1bX0-0007ka-Eb for guix-patches@gnu.org; Thu, 08 Jul 2021 17:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49280] [PATCH 0/4] gnu: racket: Add racket-next. Bootstrap from C. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Jul 2021 21:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49280 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath Cc: 49280@debbugs.gnu.org Received: via spool by 49280-submit@debbugs.gnu.org id=B49280.162577955229776 (code B ref 49280); Thu, 08 Jul 2021 21:26:02 +0000 Received: (at 49280) by debbugs.gnu.org; 8 Jul 2021 21:25:52 +0000 Received: from localhost ([127.0.0.1]:57742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1bWp-0007kC-UX for submit@debbugs.gnu.org; Thu, 08 Jul 2021 17:25:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1bWn-0007jy-Fn for 49280@debbugs.gnu.org; Thu, 08 Jul 2021 17:25:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53204) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1bWi-0004de-5Q; Thu, 08 Jul 2021 17:25:44 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42858 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1bWh-00083U-Tt; Thu, 08 Jul 2021 17:25:44 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210629215255.3110238-1-philip@philipmcgrath.com> <20210629215742.3112654-1-philip@philipmcgrath.com> <20210629215742.3112654-2-philip@philipmcgrath.com> Date: Thu, 08 Jul 2021 23:25:42 +0200 In-Reply-To: <20210629215742.3112654-2-philip@philipmcgrath.com> (Philip McGrath's message of "Tue, 29 Jun 2021 17:57:40 -0400") Message-ID: <87lf6gjy5l.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625779578; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=w6UEXYw9iMF37RrcYT3yEtTS+VIzyVde36omnZIrrXc=; b=m/wryF5sknHksE29F7RFXexLQdd0O7+C3OflgN0EgP9iaE8GXJv9Hg7dbOm2iJ82AclP77 sR010dqlf2gjak1AWjEyFRo1RMet3L2tfZKGgo5dIRRA1Clg+mTWnaeVuSvFlBEE1Wihi3 SqTuCnILRbUJqBKbp7a1/4aHcxA1vis58WYQNxytgchat3MR84YU6g0eMqDh9MLUvu0L3C Jc8XfZiUnf/pVbtE0irD5x7yVr766XlYXFND5YcyMUDzOuS703LbvL+8GdUqATwxDTb5nN i2eeSCCJrZ9Svch1xK6NtEc5ogMJO4l6ID7MpImHisyHxFoZ809K0BudUikH3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625779578; a=rsa-sha256; cv=none; b=NETQeCCB5mj5c2+RlrRUltLBBA/G1gYkN6RwemzAkI4hoZph5IJevrBxsCuscofG2Dby7g ajrjY/JyW40NmX54+CdKnEgOPDwPBFctQs4jrMwYeo4sW1HA2ywN26uh+V7gt88yIK5lDP +8U/e3qqUU37HB/pPMguGCJPtvqfs/x549Yweq/EI5WGEzPEsV0bMa6icgXLqwaTFBhjbT TDstwiw4w4PVZHBZAR8WxNlq2utVa6/D5Hy4yi3EhIKVUsMeVtW15XecvS/opzeuyizb/8 ioHObmVXTr6Zys8+CyVPiQ5iKNGZMfRiS/9Uf7M755dhWjGaB0x700SvTX4W4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3F39F14A48 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: vIBpTGZLD+1X Hi! Philip McGrath skribis: > * gnu/packages/racket.scm (racket-next-minimal,racket-next): New variable= s. [...] > +++ b/gnu/packages/racket.scm > @@ -23,6 +23,7 @@ > #:use-module ((guix licenses) > #:select (asl2.0 expat lgpl3+)) > #:use-module (guix packages) > + #:use-module (guix base16) Leftover? > +;; Preliminary guidelines on naming things: > +;; - `racket` is the main package. It corresponds to `racket-minimal` > +;; with the Racket-level package "main-distribution" installed. > +;; - `racket-minimal` is Racket runtime system and core libraries: > +;; just enough to implement the package system and install the rest. > +;; Upstream refers to this as "minimal Racket". Note that these two names match existing conventions in Guix. I=E2=80=99d suggest moving the bits about the package contents/features nex= t to the definition of =E2=80=98racket=E2=80=99 and =E2=80=98racket-minimal=E2= =80=99. > +;; - `racket-pkg-` should probably be the prefix for Racket packages > +;; available as Guix packages, once we're able to build those. > +;; More specifically, it should correspond > +;; to packages registered in the catalog at https://pkgs.rackat-lang= .org. > +;; This is a social convention to manage the namespace, not a techni= cal > +;; limitation: Racket can use other catalogs (e.g. for pre-built pac= kages > +;; or packages pinned to specific versions), unregistered package so= urce > +;; urls, or purely local packages. But we also need a convention to > +;; manage the namespace, so we should use this one. In practice, > +;; all generally useful libre Racket packages are registered there. > +;; We probably will need a clever encoding scheme to deal with the f= act > +;; that Racket package names can contain [A-Za-z_-], i.e. including = "_", > +;; which is not allowed in Guix package names. For this there=E2=80=99s already a documented convention (info "(guix) Pack= age Naming"), although part of it is undocumented. The prefix would rather be =E2=80=9Cracket-=E2=80=9D to match what we do with other packages=E2=80= =93=E2=80=9Cghc-=E2=80=9D, =E2=80=9Cocaml-=E2=80=9D, =E2=80=9Cguile-=E2=80=9D, and so forth. > +;; - `racket-next` is a development version of `racket`, following eit= her > +;; the upstrean Git HEAD or the release candidate, when one exists. > +;; - `racket-next-` is the prefix for other development packages, > +;; including `racket-next-minimal`. When we can build Racket packages > +;; individually, we will need `racket-next-pkg-` for the packages > +;; that make up `racket-next`. These two are also conventional and don=E2=80=99t need to be documented here IMO. > +(define %pre-release-installers > + "https://pre-release.racket-lang.org/installers/") > + > +(define-public racket-next-minimal > + (package > + (inherit racket-minimal) > + (name "racket-next-minimal") > + (version "8.1.900") > + (source > + (origin > + (inherit (package-source racket-minimal)) > + (sha256 > + (base32 > + "0dm849wvlaxpfgz2qmgy2kwdslyi515rxn1m1yff38lagbn21vxq")) > + (uri (string-append %pre-release-installers > + "racket-minimal-src.tgz")))))) > + > +(define-public racket-next > + (package > + (inherit racket) > + (name "racket-next") > + (version (package-version racket-next-minimal)) > + (source > + (origin > + (inherit (package-source racket)) > + (sha256 > + (base32 > + "0ysvzgm0lx4b1p4k9balvcbvh2kapbfx91c9ls80ba062cd8y5qv")) > + (uri (string-append %pre-release-installers > + "racket-src.tgz")))))) Do I get it right that *-src.tgz are not versioned? That they=E2=80=99re updated in place regularly? In that case, we cannot refer to them in a package definition since the hash is bound to become stale. What we could do is refer to, say, . However, I suspect this file would vanish fairly quickly from the web site, which is not okay either. I=E2=80=99m not sure what a good solution would be. WDYT? It may be that =E2=80=98--with-source=3Dhttps://pre-release.racket-lang.org/installers/rac= ket-src.tgz=E2=80=99 would do the job for those who=E2=80=99re into that. Thanks, Ludo=E2=80=99.