From patchwork Sun Feb 20 06:06:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 37374 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 DC20A27BBE9; Sun, 20 Feb 2022 06:08:50 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 3C69627BBEA for ; Sun, 20 Feb 2022 06:08:50 +0000 (GMT) Received: from localhost ([::1]:60606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLfOr-000734-DJ for patchwork@mira.cbaines.net; Sun, 20 Feb 2022 01:08:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLfOA-000638-Fp for guix-patches@gnu.org; Sun, 20 Feb 2022 01:08:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLfO7-00048x-Sb for guix-patches@gnu.org; Sun, 20 Feb 2022 01:08:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLfO7-0005XV-OC; Sun, 20 Feb 2022 01:08:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v4 12/15] gnu: Add racket-vm-cs. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, guix-patches@gnu.org Resent-Date: Sun, 20 Feb 2022 06:08:03 +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 , Ludovic =?utf-8?q?Co?= =?utf-8?q?urt=C3=A8s?= Cc: Attila Lendvai , Malte Gerdes , raingloom , zimoun , Philip McGrath X-Debbugs-Original-Xcc: Philip McGrath Received: via spool by 53878-submit@debbugs.gnu.org id=B53878.164533724421187 (code B ref 53878); Sun, 20 Feb 2022 06:08:03 +0000 Received: (at 53878) by debbugs.gnu.org; 20 Feb 2022 06:07:24 +0000 Received: from localhost ([127.0.0.1]:59207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLfNT-0005Ve-Vh for submit@debbugs.gnu.org; Sun, 20 Feb 2022 01:07:24 -0500 Received: from mail-qk1-f179.google.com ([209.85.222.179]:34528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLfNF-0005Nt-4Y for 53878@debbugs.gnu.org; Sun, 20 Feb 2022 01:07:09 -0500 Received: by mail-qk1-f179.google.com with SMTP id 185so4817286qkh.1 for <53878@debbugs.gnu.org>; Sat, 19 Feb 2022 22:07:09 -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=4ShzeyZsRCigfyxoFD7aYzR9LiIx+sSCoyEYRMjDGUo=; b=jtW9ysach5ZZGr86H0nGkxcMFcxl663YEkh1zKW8iL6S6jEw1SpZTUX1Gqkgw+csaQ bXX6tIQ5JfO6mIDvMqXxrO9BUiNHj9/ZoB8N1FtmDqJIN9jyvnrnFPTrQM6bPexDFMP8 sDsCnZlNv0mB6FQC3XROK16Xepq9UchAzGyV2c4Uot81cLI94vD3yz50mtUKO1hE9N4L UkJZtHb81MyQ66enPgriVZdJN0qbkEmEjCWe9qpirdaYYK81u5UsegYOuEjvhl7FyFl9 ZtWjdjgjomSKKTKBRfzP3ppnVjgMur7DXPz8R0Op+gcjzZfrE95sMV7Op7ogBax+lle7 kQ7A== 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=4ShzeyZsRCigfyxoFD7aYzR9LiIx+sSCoyEYRMjDGUo=; b=aUL3+ZX+d90cA8SRcDur62eBda4MA1iaOlI0bAb/05eIBHOMC0nhU/I+8uzaTiTPzN qSLiQotVvPcpIW1IUokwIzNN03sm46XPZc504D8J1JSDfXctaBr5N45OriDmlGTO6N1r FBDcPWxhoqAWDk0JYlY4VEKn/VG/9Mg34QNV5msYeJhZmBc94ocqrIMalVdHqmiWagdA y4KolM1o9wI/rVvox6xRGUf8ESCJo4N28eXo6R/iLLxxy4QDktiJ5A1NDqYQQMTk7mdB fH2p8KNzxRWz2px3lnKPDlG/O7NrdIDyHcHd7u8ezr73UwM6JEK0oovpm61NBxB3UGUR Y+5A== X-Gm-Message-State: AOAM530+gjnNA57UeOmXp2pyyiL3eGP7qdo/pwzWP+88P9hyENRnoISP OdLElAAcGNDfoZKsUwtWSEdeFHjW3ZBxp/p6InY= X-Google-Smtp-Source: ABdhPJzRYYKVEBtGz/XVkS8Mkb7vQ+K0qxFRnj7YbJSPFld7ySBBeU4AaS0zXZLJowlIiCLk+cmLqg== X-Received: by 2002:a05:620a:f02:b0:47d:8329:282c with SMTP id v2-20020a05620a0f0200b0047d8329282cmr8780117qkl.355.1645337223662; Sat, 19 Feb 2022 22:07:03 -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 f16sm3023865qkl.52.2022.02.19.22.07.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Feb 2022 22:07:03 -0800 (PST) From: Philip McGrath Date: Sun, 20 Feb 2022 01:06:07 -0500 Message-Id: <20220220060610.178131-13-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220220060610.178131-1-philip@philipmcgrath.com> References: <20220208151316.1897345-1-philip@philipmcgrath.com> <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 * gnu/packages/chez-and-racket-bootstrap.scm (racket-vm-cs): New variable. --- gnu/packages/chez-and-racket-bootstrap.scm | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/chez-and-racket-bootstrap.scm b/gnu/packages/chez-and-racket-bootstrap.scm index 25f1ff52f8..f8fc4c7ea1 100644 --- a/gnu/packages/chez-and-racket-bootstrap.scm +++ b/gnu/packages/chez-and-racket-bootstrap.scm @@ -515,6 +515,50 @@ (define-public racket-vm-bc This package is the normal implementation of Racket BC with a precise garbage collector, 3M (``Moving Memory Manager'')."))) + +(define-public racket-vm-cs + (package + (inherit racket-vm-bc) + (name "racket-vm-cs") + (inputs + (modify-inputs (package-inputs racket-vm-cgc) + (prepend zlib lz4) + (delete "libffi"))) + (native-inputs + (modify-inputs (package-native-inputs racket-vm-cgc) + (delete "libtool") + (prepend chez-scheme-for-racket + chez-nanopass-bootstrap + racket-vm-bc))) + (arguments + (substitute-keyword-arguments (package-arguments racket-vm-cgc) + ((#:phases those-phases #~%standard-phases) + #~(modify-phases #$those-phases + (add-after 'unpack 'unpack-nanopass+stex + (lambda args + (with-directory-excursion "racket/src/ChezScheme" + #$unpack-nanopass+stex))))) + ((#:configure-flags _ '()) + #~(cons* "--enable-csonly" + "--enable-libz" + "--enable-lz4" + (string-append "--enable-scheme=" + #$(this-package-native-input + "chez-scheme-for-racket") + "/bin/scheme") + #$(racket-vm-common-configure-flags))))) + (synopsis "Racket CS implementation") + (description "The Racket CS implementation, which uses ``Chez Scheme'' as +its core compiler and runtime system, has been the default Racket VM +implemetation since Racket 8.0. It performs better than the Racket BC +implementation for most programs. + +Using the Racket VM packages directly is not recommended: instead, install the +@code{racket-minimal} or @code{racket} packages.") + ;; https://download.racket-lang.org/license.html + ;; The LGPL components are only used by Racket BC. + (license (list license:asl2.0 license:expat)))) + ;; ;; Chez Scheme: ;;