From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +I6ILADuG2J0dAAAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 22:32:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QB/+KQDuG2JqkwAA9RJhRA (envelope-from ) for ; Sun, 27 Feb 2022 22:32:48 +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 5C855C30D for ; Sun, 27 Feb 2022 22:32:48 +0100 (CET) Received: from localhost ([::1]:60688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOR9r-0001ZK-IM for larch@yhetil.org; Sun, 27 Feb 2022 16:32:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOR9A-0000XY-OK for guix-patches@gnu.org; Sun, 27 Feb 2022 16:32:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOR9A-0005fE-Cd for guix-patches@gnu.org; Sun, 27 Feb 2022 16:32:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOR9A-0008Hu-9f for guix-patches@gnu.org; Sun, 27 Feb 2022 16:32:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v7 13/24] gnu: racket: Add 'racket-vm-for-system'. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Feb 2022 21:32:04 +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: Philip McGrath , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxime Devos , raingloom , Liliana Marie Prikler , Attila Lendvai , Malte Gerdes Received: via spool by 53878-submit@debbugs.gnu.org id=B53878.164599750331769 (code B ref 53878); Sun, 27 Feb 2022 21:32:04 +0000 Received: (at 53878) by debbugs.gnu.org; 27 Feb 2022 21:31:43 +0000 Received: from localhost ([127.0.0.1]:59364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOR8p-0008GJ-3O for submit@debbugs.gnu.org; Sun, 27 Feb 2022 16:31:43 -0500 Received: from mail-vs1-f52.google.com ([209.85.217.52]:46877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOR8J-0008Ew-Er for 53878@debbugs.gnu.org; Sun, 27 Feb 2022 16:31:11 -0500 Received: by mail-vs1-f52.google.com with SMTP id u10so11037126vsu.13 for <53878@debbugs.gnu.org>; Sun, 27 Feb 2022 13:31:11 -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=n8BGEmpxXWD+h6k4gjttH4eE9hhDpt7HQXaF3+MVYXg=; b=HTLvsGS8FruOBK80XWts+wbGzSHVYFmVpOPb2QdE745sgY+0UAAxZkkHjX+RPblp/F pjN7UtLR86yqAlMIfICnH/gejZ9kL81e15xSU4Zjwe81Iu+6WbPRXSi3AMCKodpIyAjW eQ4FkIQDqwASt7rRRQgdwS61izR6ajTJ2ZSY3GaTWZyyi9KMZgOQF9x5wIPdaDZgXMxw pzb5M67UNBrceKAVHARARpJ5ji/RAwMfiM0teSpzBPU1nuvQPAHb+5QEw1PEFIDf5e1E P2Kn6fsrQgDRODjB7YAU/gNAVMMla280kPZTWXf8snWfSBLhe5LmK1vDeggJNos6tUuP 2Xng== 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=n8BGEmpxXWD+h6k4gjttH4eE9hhDpt7HQXaF3+MVYXg=; b=fNWA+wrknWsRU2AjO/f4XPBN2xMkx7qTQ6YjgmwnYigsuntHqbdRccnBN6z+I1kWQ0 mhEMt47JWMgLG3weRQcrGysPfOW/3zcpDYAaOQVyiFn4YnxbaRdDNBYlGCPI+G8mbSg0 lUYOK5PgbbTIlM9nzHCyqJ/vYQwfDxIVMxqJ1k+RJSlGnBK8cqXuQc/PpFODYRu1Ctzo SVHipeefc+4yLkKG8CorlLODRqLLWOXdmTPAjWhmYsC6XP7vh0hnRvS//2iI9Qo1JKY8 REjM2a2zXVxSMg6g0qRsFrSSKXbyLSeMEby+g06hYcF8NbB0jVbxEJe3oZDRvA9A7Lt8 zj/g== X-Gm-Message-State: AOAM531/nOKSkbJb3h7o0S1j/ynE+pgvwSPIrTYwJfRVMv6KpES2eAOI DVA87+DOjhKFUPheiwiyJSxY7Jq9er3wpQKgy8Y= X-Google-Smtp-Source: ABdhPJzktN+UUWmdWvsYgWjjEPe4xBgcPE+8BfOZ+d+JngLeG1+ztJbOCEuFcpoS9OLlzHH/f2dLPg== X-Received: by 2002:a05:6102:21ac:b0:31c:1b59:4fc6 with SMTP id i12-20020a05610221ac00b0031c1b594fc6mr6639305vsb.59.1645997466013; Sun, 27 Feb 2022 13:31:06 -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 n22-20020a1fa416000000b0031e658fd080sm1354745vke.43.2022.02.27.13.30.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Feb 2022 13:31:05 -0800 (PST) From: Philip McGrath Date: Sun, 27 Feb 2022 16:29:09 -0500 Message-Id: <20220227212920.2009000-14-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220227212920.2009000-1-philip@philipmcgrath.com> References: <20220220060610.178131-1-philip@philipmcgrath.com> <20220227212920.2009000-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=1645997568; 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=n8BGEmpxXWD+h6k4gjttH4eE9hhDpt7HQXaF3+MVYXg=; b=bAK1VHrhAJ1O67BS2jCBgKHrTq/W79d0Pe66FgX9eB57sWKZLnCgyMLGLPeNL8UAiSJ/md qxxPpn7FioTSRb7ziwJfFIPF+TEdxhapygyUe5PGIuCAj7x6GbXdNA+rBfTqQ6UrfTDFe/ 0jnLqF8JLsP0craKhtwyWyQrusKZbrwojMpJQiraYHLgyC+GXd1vYFib/pvHkOYMUPDnpo emo0UsPXxTjtsfj6gjSavMoWgeyc3ZPmWYGNa06q6hLUUodNDegMHeYFliAh5tCA+sBdmR UQR/DD+hB0Z05IZ6Oesp3+V8tE/m8NPA69ObpCSFU1ZzTA4ECRgg9Paan0xTAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645997568; a=rsa-sha256; cv=none; b=YB1OlSgw6RNmgKjkbLXzBWrtK/ZAVV8gk3uIGVTxTvReVVKOZeEz5cGdFFfnvffVXP5hWv 9+4G9ExF4zAO1bk1EbVCIg1CEg2GBExeZFDGBNQw5JhYT+chMr5NqaFCl9xegemJZfKc0/ o3V8x+AnpB6C6VriJN6qVXCaaA0j1aNCPBrgBAfVXRlN1N8PkUxP+yEQcG8sgbfHNl9C22 hChKRfAkHFNXdCvN6Xs5lgcNXSuovLxpW6ATqx6QtDRZ1gYQQiqWlHNy95WGK+snZGlJlH 3vkJjkewGf+ANkjVa1kmhOGrtYPd+D933qP1Z2cvLnGgRrFtBxd8S5ad/2BhGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=HTLvsGS8; 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.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=HTLvsGS8; 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: 5C855C30D X-Spam-Score: 3.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: Tn3y7RODFuLP * 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 a853e520f5..272638ca2e 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 @@ -513,7 +521,7 @@ (define-public racket-minimal (inputs (list openssl sqlite - racket-vm-cs ;; TODO (racket-vm-for-system) + (racket-vm-for-system) (racket-packages-origin "base" %racket-origin '(("base" "pkgs/base") @@ -630,7 +638,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) (simple-racket-origin "2d" (base32 "1zzcz5qyjv7syi41vb8jkxjp1rqgj61zbsdrg0nlc4qy9qsafzgr") '("2d" "2d-doc" "2d-lib")) -- 2.32.0