From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aEaIBXslGmKoTAAAgWs5BA (envelope-from ) for ; Sat, 26 Feb 2022 14:04:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uF77AXslGmLZxQAAauVa8A (envelope-from ) for ; Sat, 26 Feb 2022 14:04:59 +0100 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 B492529F33 for ; Sat, 26 Feb 2022 14:04:58 +0100 (CET) Received: from localhost ([::1]:52150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNwkr-00085r-Gh for larch@yhetil.org; Sat, 26 Feb 2022 08:04:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNwk6-00076T-3B for guix-patches@gnu.org; Sat, 26 Feb 2022 08:04:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNwk5-0003Ce-NW for guix-patches@gnu.org; Sat, 26 Feb 2022 08:04:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNwk5-0005Yj-Ja; Sat, 26 Feb 2022 08:04:09 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v5 12/22] gnu: racket: Add 'racket-vm-for-system'. 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:09 +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.164588064421270 (code B ref 53878); Sat, 26 Feb 2022 13:04:09 +0000 Received: (at 53878) by debbugs.gnu.org; 26 Feb 2022 13:04:04 +0000 Received: from localhost ([127.0.0.1]:54456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNwjz-0005Wn-Oq for submit@debbugs.gnu.org; Sat, 26 Feb 2022 08:04:04 -0500 Received: from mail-qv1-f46.google.com ([209.85.219.46]:39733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNwjn-0005VM-DW for 53878@debbugs.gnu.org; Sat, 26 Feb 2022 08:03:51 -0500 Received: by mail-qv1-f46.google.com with SMTP id a1so8843897qvl.6 for <53878@debbugs.gnu.org>; Sat, 26 Feb 2022 05:03:51 -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=k/9MRYKwBQb0a6Gw7ObTuv3AcCArpX+jq+jv49oz8T4=; b=kIr/h5AuoMMZN27ZaZ1UBDfY7KshbDGmC1yq1XxPl9oVqKDWpKJ89kuu78nzUy26rn 7I76aaUhxEil2K7ikjhG+/ml/d57z7VKGuV8I3EreZRAyVrRKRms1BVZ+B3AvTP/MJNW um2yesIISen7Ovrinx3Mxq5cMZe6Bota0oAz6c9Y1kprULlBAPoWJtqG3dUzBzEDg9Ea ilc2zs/CDBb191u/w/qVAXQAvbDKgF5N9a0KhkPfOgL5MW0bXGKoA9XzUqnT/afOEh67 WkfB9CfkQoJ71vmoLiuqVfGg9L9/bgH6FqPoc7rErVsFdfHPw7DVRx90mF5Skp26Qc3c Egbw== 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=k/9MRYKwBQb0a6Gw7ObTuv3AcCArpX+jq+jv49oz8T4=; b=7yhdZuR2qQWcJEONe1mLdkDH/JBSST0H7lZWK32D+cZCMQoZKXch7LKUpTRqRxYvLH ML4b5OmzAw0rcJfxDmlqq0bjLy4wACekNSnfLV0jWSKPujv+3Yv3YscvW9T1fEknsJuP sAGPJz4TnjKIJ4ovTcW2ILWIyMD29x6J3SiV/IOFFhkLXT270wzY+mxXQb3wxV7xCYRt XzLHfiX0n4t4dCnG4PLYKJ7cOUsv23iSyjd2CZ2Qtahtv9y9hau+GRB4PZ+tm02qezJs AvxpXWrRaJtrv+D/8oStc/2BtrOeUS9MdbkTtM7AAyLhhUBPv4lM6gsOYR1yXixBKOEO 89+w== X-Gm-Message-State: AOAM533jEwQlyT2SnNg4ecZ7XUjm5UVfGjRISZcture5mRvLaRqeXUqH ZBxSa3lAkv/fNBH2xYTzGFiTye0pwm2NGBvgbrg= X-Google-Smtp-Source: ABdhPJwGC+7A5yJoL6E4CjPyUzTcIjfb7VYT3JtgkbeF+nmXOLt5zbeKRPPoZg7MX6r+qer/HmT4Gw== X-Received: by 2002:a05:6214:c89:b0:432:c49b:41a5 with SMTP id r9-20020a0562140c8900b00432c49b41a5mr4905379qvr.48.1645880625874; Sat, 26 Feb 2022 05:03:45 -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 c6-20020ac87d86000000b002ddd9f33ed1sm3138312qtd.44.2022.02.26.05.03.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 05:03:45 -0800 (PST) From: Philip McGrath Date: Sat, 26 Feb 2022 08:02:44 -0500 Message-Id: <20220226130254.1301333-13-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220226130254.1301333-1-philip@philipmcgrath.com> References: <20220220060610.178131-1-philip@philipmcgrath.com> <20220226130254.1301333-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645880698; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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:dkim-signature; bh=k/9MRYKwBQb0a6Gw7ObTuv3AcCArpX+jq+jv49oz8T4=; b=ARCO613zq5p2TMYwxvYS2XHBf0sJfBc6OpXCCvfV3/EdnVBcg1IEh1UL/mWbC5dYd/X0Kk LJE3Bu4EGMQEUM2gbsDoUxcB7H4POhyQsgPTvTKyGhV87Or4fz8ylaebDcr8zOfoLLjsOO lRUU0q/WTHKnwoo07+Nm35FFknlnW5vax61EYIlw31pCdGtwdHW1Z1e8SFUsxfWR4tks6z 3zzJcmSTqJOGpjaeumnCztT/cWEDobgNBLf3KQ/QHihR9bFjK0PtcJrtLReXsp34jFH3Kn zyxiOSVROeJzQcQ4X5eFlOMaP13PQkOh1e2cffFKbUcmt1lBitzJaJMZ0KMM9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645880698; a=rsa-sha256; cv=none; b=k93M/NhAY8HQ7QBgpx4UcskXN9StY0Rrhef5d8F4yonYOCE5c0ZundS9K+NkIwvyYX+52b p+5vG/Nj+g1VNKQnmfh9sjE3pmE0vTSSrMRxbc9AYptxgfYTCQOK/j3isFi7z2MLwND/2G joGTN999RsNz2LzF7SEpqp5MY0GX5+toY4MXAGFULynIHOWMaU7UWIJ1Nk2GRHgtgK4/Dx yULaBe3zGub+zCRIQS/ZYHDZHQliPvQehCmePzHH4wzdpwsgsSkai2HmIp6SHU3zu120LE arCG/2VdRfE10T/leYsVf7YGvXbGbizOYJjA19dOWudM7rTUbdqsxykRMm1/9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="kIr/h5Au"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.38 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="kIr/h5Au"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B492529F33 X-Spam-Score: 3.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: 93u8xABxcBG1 * gnu/packages/racket.scm (racket-vm-for-system): New procedure. (racket-minimal, racket)[inputs]: Use it. --- gnu/packages/racket.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm index ba958b6101..93e5eea158 100644 --- a/gnu/packages/racket.scm +++ b/gnu/packages/racket.scm @@ -187,6 +187,14 @@ (define-module (gnu packages racket) ;; ;; Code: +(define* (racket-vm-for-system #:optional + (system (or (%current-target-system) + (%current-system)))) + "Return 'racket-vm-cs' if it supports SYSTEM; 'racket-vm-bc' otherwise." + (if (nix-system->chez-machine system) + racket-vm-cs + racket-vm-bc)) + (define %racket-version "8.4") ;; ^ Remember to update chez-scheme-for-racket-bootstrap-bootfiles! (define %racket-commit @@ -508,7 +516,7 @@ (define-public racket-minimal (inputs (cons* openssl sqlite - racket-vm-cs ;; TODO (racket-vm-for-system) + (racket-vm-for-system) (extract-package-source* `((,%racket-origin ("base" "pkgs/base") @@ -625,7 +633,7 @@ (define-public racket unixodbc libedit ;; TODO reconsider in light of expeditor and readline-gpl racket-minimal ;; <-- TODO non-tethered layer - racket-vm-cs ;; TODO (racket-vm-for-system) + (racket-vm-for-system) (extract-package-source* `((,(origin (method git-fetch) -- 2.32.0