From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eBJYE8zuG2IbdwAAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 22:36:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8HMYEMzuG2KsnAAAauVa8A (envelope-from ) for ; Sun, 27 Feb 2022 22:36:12 +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 E06B115F4E for ; Sun, 27 Feb 2022 22:36:11 +0100 (CET) Received: from localhost ([::1]:37174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nORD9-00051T-3w for larch@yhetil.org; Sun, 27 Feb 2022 16:36:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nORC3-0003pK-GC for guix-patches@gnu.org; Sun, 27 Feb 2022 16:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nORC3-00068j-71 for guix-patches@gnu.org; Sun, 27 Feb 2022 16:35:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nORC3-0008PH-3u for guix-patches@gnu.org; Sun, 27 Feb 2022 16:35:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v7 23/24] gnu: chez: Add 'chez-scheme-for-system'. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Feb 2022 21:35: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 , 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.164599765232211 (code B ref 53878); Sun, 27 Feb 2022 21:35:03 +0000 Received: (at 53878) by debbugs.gnu.org; 27 Feb 2022 21:34:12 +0000 Received: from localhost ([127.0.0.1]:59409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nORBD-0008NT-GV for submit@debbugs.gnu.org; Sun, 27 Feb 2022 16:34:11 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:43849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nORBB-0008NF-U5 for 53878@debbugs.gnu.org; Sun, 27 Feb 2022 16:34:10 -0500 Received: by mail-qt1-f181.google.com with SMTP id s15so7409057qtk.10 for <53878@debbugs.gnu.org>; Sun, 27 Feb 2022 13:34: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=U6sOEQII/nfr63USoeuo2RDShtCjrXl2+vOKM7l7ThA=; b=UicR0GRq25yM8Z+Jh0DRKeKE1MrutLNYBTDdvgJ5Pxw4qJQRpe35a5NaMZqrOq3Q1C OVGEQGhpNgLufLH1oXjE7oaoPXjxa1yV1SrqbM5b7hW0nuYwmWFnMLDRbMKOPzt/cppJ /gmbJE075UdzRW2lap5oKrM5NgAPO99igVczRYbW4ZnzslsNQ2dyDN4ZkQlW1YeFLYik 00jsP0ar/9YcweS9JRaabvN40qaZlGsJavnQY726bvr5RMX2l8340PBOVVD/0epR5R2u nb60SvBEEe/JHOfAZ6nYWOtUxZUAk99pMglCGCf0L75rDcidnW33ch2Zq9sauNqAlIhT B53Q== 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=U6sOEQII/nfr63USoeuo2RDShtCjrXl2+vOKM7l7ThA=; b=0cx8pSSBAFFj/KB+4K/wiClJIqIZ7LYMY63NeHrFJvRvdiDQZ1gqAdrs7M8N1ADIJY O4SgYd+yJOb7aBH+vjuYEu2aQSzAMIqeKgLKwI3nsiRoLyWw7rflozpaP3V/PfeA4i92 TZX2ly6a/OU1BHqEy0nNfv5KMyFaazTrgsnuqhmAc290ZYMbaUbzvNcOZ95CHxyLkEmQ FeBy+HP9PHr+51Tci4Er93HJg3MeCM1hLcvczBm+4oFRV7l0sawHG5LBtir/cCmVKiUr 86TngJLzwhZx5GZBjYO9bnphNOT1G9b10ThlaPeNPuzbnMverUuZH24joWCWaS3EcVgX Nelg== X-Gm-Message-State: AOAM531W8QbL0KKKnjDLsAbzts7DpfEIPsDXrNI0i34U9XPAXZTFZVL4 456OZvxIQGdgbFh2Ya8NJ6gm/N+Erq+D5wVF2Lw= X-Google-Smtp-Source: ABdhPJzHrK3IMELSb4U1Trw5hDTNC5wB28IblUINi2oThk4dZVyh8WwcHu859J2N+eWx5n8dxy1WPA== X-Received: by 2002:ac8:130c:0:b0:2dd:d52d:325 with SMTP id e12-20020ac8130c000000b002ddd52d0325mr14740861qtj.376.1645997644493; Sun, 27 Feb 2022 13:34:04 -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 c27-20020a05620a135b00b0062cda8dab3fsm4175863qkl.46.2022.02.27.13.33.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Feb 2022 13:34:04 -0800 (PST) From: Philip McGrath Date: Sun, 27 Feb 2022 16:29:19 -0500 Message-Id: <20220227212920.2009000-24-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=1645997772; 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=U6sOEQII/nfr63USoeuo2RDShtCjrXl2+vOKM7l7ThA=; b=ua7vrG/GVhiWsZ21UnNXgqiXaZti6WF73k7SX/6ciIfg1cUcQXWPMLjM4fcJTm9DXE11Bw Qc3RlZ7jZFHkwfIPh8gLikt9lI2gyXCNtkvx95q4v5FHef7AKYROSTdn8ZUpznfQv9FOBv 9Bqx9CJ8O9sZOnP9y1LaMccrQI6PiA7bZTaA0BVw7PcUU7g94l9K8TbqCIeCpkRuEEXk+M IaRvIf1fyCN4uP2BL+wAVWRye0a3ijEsX6R2RGh1P3zIV0UFKl3Z3/z0sNjQZMOj1w/v4o GkrjGDDk4257UMk6F8uyVWz1ltiQuFaE5ZhhMROa0r+GJGOYNTYcotGrcuvW0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645997772; a=rsa-sha256; cv=none; b=KGDitFIMp6VLXLrAMPbS+16byoIVtxYdnCFaCxZq21Izr58ekpyTlh9nbBssAcFSE6JuWh JAu4buP+ytjQNsRAKTwPNRTzA2qc2XMnZ7liwpwlI5k4riZ4DONedE87wBqrrnUsyNrncj KSDG16jqtPW8WSFB9+wGPZjSKX+DPibccS3lKptBYy+pVZ/Q4nj5n/nXX5v7OBBJBqzASw GRMPTu/QwDFmZBzD7+4DYXLrK9Wc4/txMo83mgLukN+Map7Addz98aMUYfpabYgqxecB1C amr1JBWGcRJW0wiHumMbhn/5wKMja1858/Ac9lus94iUrfk+/X15RroZMO4VOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=UicR0GRq; 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: 2.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=UicR0GRq; 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: E06B115F4E X-Spam-Score: 2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9uB/1xDfgS8Y * gnu/packages/chez.scm (chez-scheme-for-system): New procedure. (chez-srfi, chez-web, chez-sockets, chez-matchable, chez-irregex, chez-fmt, chez-mit, chez-scmutils): Use 'chez-scheme-for-system'. * gnu/packages/loko.scm (loko-scheme): Likewise. * gnu/packages/emacs-xyz.scm (emacs-geiser-chez): Likewise --- gnu/packages/chez.scm | 33 ++++++++++++++++++++++++--------- gnu/packages/emacs-xyz.scm | 2 +- gnu/packages/loko.scm | 2 +- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index e7ddab0d1f..b3aadf3a78 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -47,7 +47,8 @@ (define-module (gnu packages chez) #:use-module (ice-9 match) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26) - #:export (nix-system->chez-machine + #:export (chez-scheme-for-system + nix-system->chez-machine chez-machine->nonthreaded chez-machine->threaded unpack-nanopass+stex)) @@ -67,6 +68,20 @@ (define-module (gnu packages chez) ;; ;; Code: +(define* (chez-scheme-for-system #:optional + (system (or (%current-target-system) + (%current-system)))) + "Return 'chez-scheme' unless only 'chez-scheme-for-racket' supports SYSTEM, +including support for native threads." + (if (or + ;; full support upstream + (and=> (chez-upstream-features-for-system system) + (cut memq 'threads <>)) + ;; no support anywhere + (not (nix-system->chez-machine system))) + chez-scheme + chez-scheme-for-racket)) + (define (chez-machine->nonthreaded machine) "Given a string MACHINE naming a Chez Scheme machine type, returns a string naming the nonthreaded machine type for the same architecture and OS as @@ -751,7 +766,7 @@ (define-public chez-srfi (file-name (git-file-name name version)))) (build-system gnu-build-system) (native-inputs - (list chez-scheme)) + (list (chez-scheme-for-system))) (arguments (list #:make-flags (chez-make-flags name version) #:test-target "test" @@ -782,7 +797,7 @@ (define-public chez-web (base32 "1dq25qygyncbfq4kwwqqgyyakfqjwhp5q23vrf3bff1p66nyfl3b")))) (build-system gnu-build-system) (native-inputs - (list chez-scheme + (list (chez-scheme-for-system) ghostscript ;; FIXME: This package fails to build with the error: ;; mktexpk: don't know how to create bitmap font for bchr8r @@ -847,7 +862,7 @@ (define-public chez-sockets (base32 "1n5fbwwz51fdzvjackgmnsgh363g9inyxv7kmzi0469cwavwcx5m")))) (build-system gnu-build-system) (native-inputs - (list chez-scheme + (list (chez-scheme-for-system) chez-web (texlive-updmap.cfg (list texlive-pdftex)))) (arguments @@ -933,7 +948,7 @@ (define-public chez-matchable (inputs (list chez-srfi)) ; for tests (native-inputs - (list chez-scheme)) + (list (chez-scheme-for-system))) (arguments (list #:make-flags (chez-make-flags name version) #:test-target "test" @@ -965,7 +980,7 @@ (define-public chez-irregex (propagated-inputs (list chez-srfi)) ; for irregex-utils (native-inputs - (list chez-scheme)) + (list (chez-scheme-for-system))) (arguments (list #:make-flags (chez-make-flags name version) #:test-target "test" @@ -996,7 +1011,7 @@ (define-public chez-fmt (propagated-inputs (list chez-srfi)) ; for irregex-utils (native-inputs - (list chez-scheme)) + (list (chez-scheme-for-system))) (arguments (list #:make-flags (chez-make-flags name version) #:test-target "chez-check" @@ -1059,7 +1074,7 @@ (define string->uninterned-symbol (inputs (list chez-srfi)) ; for tests (native-inputs - (list chez-scheme)) + (list (chez-scheme-for-system))) (arguments (list #:make-flags (chez-make-flags name version) #:test-target "test" @@ -1090,7 +1105,7 @@ (define-public chez-scmutils (inputs (list chez-srfi)) ; for tests (native-inputs - (list chez-scheme)) + (list (chez-scheme-for-system))) (propagated-inputs (list chez-mit chez-srfi)) (arguments diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index ef98088100..df53df61c7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -451,7 +451,7 @@ (define-public emacs-geiser-chez (string-append "(eval-after-load 'geiser-impl '" all ")")))))))) (inputs - (list chez-scheme)) + (list (chez-scheme-for-system))) (propagated-inputs (list emacs-geiser)) (home-page "https://nongnu.org/geiser/") diff --git a/gnu/packages/loko.scm b/gnu/packages/loko.scm index ef9312afe3..449c62f1f0 100644 --- a/gnu/packages/loko.scm +++ b/gnu/packages/loko.scm @@ -71,7 +71,7 @@ (define-public loko-scheme #t))))) (native-inputs `(("akku" ,akku) - ("chez-scheme" ,chez-scheme) + ("chez-scheme" ,(chez-scheme-for-system)) ("struct" ,guile-struct-pack) ("laesare" ,guile-laesare) ("pfds" ,guile-pfds) -- 2.32.0