From patchwork Sat Feb 26 13:02:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 634 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6051C27BBEB; Sat, 26 Feb 2022 13:04:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 608F227BBEA for ; Sat, 26 Feb 2022 13:04:20 +0000 (GMT) Received: from localhost ([::1]:50476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNwkF-0006so-Cw for patchwork@mira.cbaines.net; Sat, 26 Feb 2022 08:04:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNwjy-0006qr-P0 for guix-patches@gnu.org; Sat, 26 Feb 2022 08:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60551) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNwjy-0003AL-Ff for guix-patches@gnu.org; Sat, 26 Feb 2022 08:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNwjy-0005WF-8Z; Sat, 26 Feb 2022 08:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v5 00/22] Update Racket to 8.4. Adjust Chez Scheme packages. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, guix-patches@gnu.org Resent-Date: Sat, 26 Feb 2022 13:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53878 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53878@debbugs.gnu.org, Liliana Marie Prikler , zimoun Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Maxime Devos , Attila Lendvai , Malte Gerdes , raingloom , philip@philipmcgrath.com X-Debbugs-Original-Xcc: philip@philipmcgrath.com Received: via spool by 53878-submit@debbugs.gnu.org id=B53878.164588058420993 (code B ref 53878); Sat, 26 Feb 2022 13:04:02 +0000 Received: (at 53878) by debbugs.gnu.org; 26 Feb 2022 13:03:04 +0000 Received: from localhost ([127.0.0.1]:54414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNwj2-0005SW-0h for submit@debbugs.gnu.org; Sat, 26 Feb 2022 08:03:04 -0500 Received: from mail-qt1-f177.google.com ([209.85.160.177]:40523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNwiz-0005Ry-Rq for 53878@debbugs.gnu.org; Sat, 26 Feb 2022 08:03:02 -0500 Received: by mail-qt1-f177.google.com with SMTP id t28so4990914qtc.7 for <53878@debbugs.gnu.org>; Sat, 26 Feb 2022 05:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Fy4AJtzByadh4Q83DXt5CyQvYogjUexf8NFO4ZMcBh4=; b=Y0LORkGcACm3EtsGdeMoWsJejna8iGGUUlS7pd5iJGZ1gxwKxPuH4wU002+n7ONsC1 hRVIZqGIg5N0hUeJqqM+Ddg8grwkdW6RZWzn6KHOfWFey8TAxKu3VwkG680uIrk2+y0N qBsFdT8CeEuwXxLaVzHTeJ2iwCTiEuDjKIiS4k7Uw+ODxxQkYV62T/SznHV5EM3tSZu3 fxHMPguTsPw1RKCEvAHJAmcbXuBeLbX4BH47JY1z5lE8yd3UF5rhFzdYP4sktQ4Ly5VM H56R8P8B1MRt21gburOwyBu+nv5H9gYiWgftCots+Ei7WlkbZAxag5fULhm0uR9U2//Z nOXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fy4AJtzByadh4Q83DXt5CyQvYogjUexf8NFO4ZMcBh4=; b=LRY4jruMxpd6o9YwsLh+hagwX+qWZPmeQbKy1Ee13Vg3etSbzaeeUNP/4tqDWxCvwk SGB8Ng3/Pw229BjUkImd0GxslR3RU8xUpb34DVRS3ktk2rGu/VK3nnAWahPlu7N0rB/5 6/ZBdvIzLGDtJ4cSeA6tkd0eV9m3R7udFfJuP13ud7mgHTpaGTrAo70NcN5P1hVQB6xC xC9g9K+1U+bwQ1d9zGL4VJX0qDI1qyei/yuqrn1kudpOsNqF13JEMVoWrWfN5D/y9xFc K8YQ5lX5NR8YohR9mev1HR4CAC0BvIlj2dkmZk49p7BzZdUKC21jcQLNYT5r/HokKVB2 Jk6Q== X-Gm-Message-State: AOAM531iFxzCNXt5zbbFqad2hO9jKDsEFVqgh84/wDHVh0Mi4CJGr9gu wVt+LOl/wGKx5p7RvoPDDDpKP3lttjLbdii8bdM= X-Google-Smtp-Source: ABdhPJzNvq8B5Ahgawzu+Sox0prw5mFED0zNoREtdRHWdlJGt9tjnaL2GeNFd2yx/s4Z65kdVBhfdw== X-Received: by 2002:ac8:5ace:0:b0:2d8:c7fa:6f8f with SMTP id d14-20020ac85ace000000b002d8c7fa6f8fmr10235598qtd.410.1645880576017; Sat, 26 Feb 2022 05:02:56 -0800 (PST) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id 24-20020a05620a06d800b0047bc1e91c34sm2508092qky.114.2022.02.26.05.02.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 05:02:55 -0800 (PST) From: Philip McGrath Date: Sat, 26 Feb 2022 08:02:32 -0500 Message-Id: <20220226130254.1301333-1-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220220060610.178131-1-philip@philipmcgrath.com> References: <20220220060610.178131-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, I've been ruminating for a while on Liliana's comment from : On Wednesday, February 23, 2022 3:31:34 PM EST Liliana Marie Prikler wrote: > [...] there are some things that still > don't feel right for me – for instance the fact, that seemingly > unrelated modules now have to pull in racket bootstrap sounds like a > recipe for trouble. The final patch in the series also still does too > much for me to wrap my head around, which makes it difficult to audit. > > Therefore, one question I have w.r.t. updating Racket is whether we > could theoretically bump the version while keeping the old bootstrap, > and then adjust the bootstrap by adding all the packages you've made. > It does seem to be an all or nothing deal when doing the bootstrap > first, but that need not necessarily hold for bootstrap second. > > Also, accepting for a moment that we might have to move chez-scheme and > other important things into chez-scheme-and-racket-bootstrap (even > though I'm not really content with it), I still wonder if we could > introduce chez-scheme-for-system first (defined as simply chez-scheme > initially) and adjust the callers, then move chez-scheme while keeping > the function in chez.scm and finally do the magic with making it either > chez or racket. > It struck me that the core of the dependency cycle (at least, from one perspective) is that 'chez-scheme-for-racket' wants to 'inherit' from 'chez-scheme' but use '%racket-origin' for its 'source', and neither of those are thunked fields. I realized that, if we just pass the origin some other way than as the 'source' field, we can avoid adding the "chez-and-racket-bootstrap.scm" file altogether: patch v5 10/22 does the core of that. I also managed to split up the update to Racket 8.4 (patch v4 15/15) into a number of smaller steps (or, more precisely, rewrite it now that I knew what the end result would be). I now have the 'racket-minimal*' packages gradually evolve into the corresponding 'racket-vm-*' packages (rather than adding the 'racket-vm-*' stack in parallel), then split the new 'racket-minimal' package out of 'racket'. Hopefully this might be somewhat easier to review. The downside is there are now 22 patches, rather than 15. So, here is v5! -Philip P.S.: I've also posted this series at . Philip McGrath (22): gnu: Use license prefix in (gnu packages racket). gnu: racket: Update to 8.4. gnu: racket: Use Git origins for Racket packages. gnu: racket-minimal: Use new package style. gnu: racket-minimal: Don't configure non-existant catalogs. gnu: racket-minimal: Change inheritance to follow bootstrapping. gnu: racket-minimal: Add "debug" output. gnu: make-installation-layer.rkt: Adjust indentation. gnu: racket-minimal: Separate from the Racket VM. gnu: racket: Move Chez bootfiles to (gnu packages chez). gnu: chez: Add utilities for Chez machine types. gnu: racket: Add 'racket-vm-for-system'. gnu: chez-scheme: Use "lib/chez-scheme" for search path. gnu: chez-scheme: Use shared zlib and lz4. gnu: chez-scheme: Use new package style. gnu: Add stex. gnu: Add chez-nanopass. gnu: chez-scheme: Explicitly package bootstrap bootfiles. gnu: chez-mit: Support chez-scheme-for-racket. gnu: Add chez-scheme-for-racket. gnu: chez: Add 'chez-scheme-for-system'. gnu: racket-vm-cs: Build with "--enable-scheme". gnu/local.mk | 4 +- gnu/packages/chez.scm | 1264 +++++++---- gnu/packages/emacs-xyz.scm | 2 +- gnu/packages/loko.scm | 2 +- .../racket-enable-scheme-backport.patch | 465 ++++ ...acket-gui-tethered-launcher-backport.patch | 26 + gnu/packages/racket.scm | 1866 ++++++++++++----- 7 files changed, 2774 insertions(+), 855 deletions(-) create mode 100644 gnu/packages/patches/racket-enable-scheme-backport.patch create mode 100644 gnu/packages/patches/racket-gui-tethered-launcher-backport.patch