From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 yO0SHuPaEWIGJgEAgWs5BA (envelope-from ) for ; Sun, 20 Feb 2022 07:08:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +AdJG+PaEWIFiAAA9RJhRA (envelope-from ) for ; Sun, 20 Feb 2022 07:08:35 +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 0FFBB1C4B9 for ; Sun, 20 Feb 2022 07:08:35 +0100 (CET) Received: from localhost ([::1]:60118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLfOc-0006iK-3o for larch@yhetil.org; Sun, 20 Feb 2022 01:08:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLfOA-00063V-Jb for guix-patches@gnu.org; Sun, 20 Feb 2022 01:08:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLfO8-000492-KQ 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 1nLfO8-0005Xm-HG; Sun, 20 Feb 2022 01:08:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v4 14/15] gnu: chez-and-racket-bootstrap: Add 'chez-scheme-for-system'. 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: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 , Ludovic =?UTF-8?Q?Court=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.164533724721209 (code B ref 53878); Sun, 20 Feb 2022 06:08:04 +0000 Received: (at 53878) by debbugs.gnu.org; 20 Feb 2022 06:07:27 +0000 Received: from localhost ([127.0.0.1]:59211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLfNU-0005Vo-No for submit@debbugs.gnu.org; Sun, 20 Feb 2022 01:07:27 -0500 Received: from mail-qv1-f41.google.com ([209.85.219.41]:38708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLfNN-0005RJ-C3 for 53878@debbugs.gnu.org; Sun, 20 Feb 2022 01:07:17 -0500 Received: by mail-qv1-f41.google.com with SMTP id d3so23810786qvb.5 for <53878@debbugs.gnu.org>; Sat, 19 Feb 2022 22:07:17 -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=/EGU9jE9WmDO51Jzx7vGF0emMKn80UmwgIXqYiXKULk=; b=DVarq+VhNZLVLsW1WSI8HCdqCT81vBGkw0bZZFzz+RLJeLUmEzDyYhKV3fFrw39WDe BzPrx4Kf1xkndZJ7XGDCOfoBw69NkfMa4MWZR31bEWIthqVKwbtCO0E0EHSYycGiK6eB 7ToIaRkxAludBOYoGVNGzmDQ/bc2pa5sJa9fOMaVKS28+QyG/fjwLXJeZ06ed/EoZ+u8 ejj2jfrdkaB9mojx1lmQ3UbANOhPOqVEBCom01kssAoV520LX5Jn1mGBdZzEMD+w5+YJ eiB199tkuvVIVSEDDb6EE8Qn+jMG5VMQ9AtuuG1Q1MAhBC2LGqFNwaUETXq3dPz5feVw NKDw== 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=/EGU9jE9WmDO51Jzx7vGF0emMKn80UmwgIXqYiXKULk=; b=7xK31u6b8BipOjKG9P9/CRSpmPWlIlDAswaCElZAW5iS0RbYeCIVwz2un0K7UpuQGw QiUK+qH3N4LIkYk9fQnbD3pEYzgAwzpOfJQoTJN0qu5zRlPPU6WeGB/TqJqpODkYkX4V dmWnr0IswV+XDZYuBYk5xp9KhAKARH4J+WTwsi8dOvLp2+FC2Y/DtgPx9BOZ+Oz7XsmY IQv0i49qXFRMdU8/FGTjOMJ4fxXxHOKZe3m1YY3Q7FlgGcGCIoKFdV/wSUcfDvOWSC8X Zbhr99O+lTFgbwTCj1G/rXNqmkBChClh5BXMUhdNXVQHs2BxkT56HQGrePFgvUfUOYcI w+pg== X-Gm-Message-State: AOAM531oUF7gVZk8yRNl/3FoVGz+EOPDcd/OrGfV7as5ir3gCT8O5v49 ombqvJTKkCIxfEBCOsvDQM+0NT/QIu8pE1jQe0k= X-Google-Smtp-Source: ABdhPJxPARJG8HsnYPHetidmFGfoRca0xXBF+1R7n2ohPCrS6v1/+SA8OXN/89e1MIriF21GcDeqMg== X-Received: by 2002:ac8:5a85:0:b0:2ca:e6ab:3972 with SMTP id c5-20020ac85a85000000b002cae6ab3972mr13061086qtc.584.1645337231880; Sat, 19 Feb 2022 22:07:11 -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 p70sm23982542qka.62.2022.02.19.22.07.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Feb 2022 22:07:11 -0800 (PST) From: Philip McGrath Date: Sun, 20 Feb 2022 01:06:09 -0500 Message-Id: <20220220060610.178131-15-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 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=1645337315; 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=/EGU9jE9WmDO51Jzx7vGF0emMKn80UmwgIXqYiXKULk=; b=BzGPIuRDX97Sk3CLY1ojF7AAKpANuk0GwmVe/wFt9qo+h1phmWW9NjjPjm13gv+3gepA/H lOQ5YE6Qo2yEEfVsqaUJ5fwjwKTNXIl7qA4illW1jggDXzylB9Z0INFpy2pxUfZBWDR+5M Y1d++1l5ZGkNb3QpPD+nHQrnNHtUHKv5VBNxS75uHerAwGcovxar6eH2L6znntvN52gcWZ hJCHzObAFIpnO3r3yF3iTNYyACt5l/HBasLdppHlFoLVbc6I0A9ztEeCwnMhOeOcJPEI+B G6SUaXy3aM5ztuNpu7iFMWxUCGG0nnGK+xzUMfOO47AmrFgCt1f72Yng3FH+Sw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645337315; a=rsa-sha256; cv=none; b=CtIENRKQq+4/QpVN8H8R2pvDCWflCWIEIC+m+lRBG8nuOkP/kQwlv+706SKlknwkr8Ejr3 LxRrtIm6lq6Jf2FsTSXEP708D7NT59vufchiMs92ERMC4WBrLhoIKYGENXfckTiTmGkr9+ igDXvVfBrdmaErjfxwwIkyQ7AGtoswGAUDFGtFNyqSYAEqdLgS3rvnQZegvQ2RbYd/STeX OqEGlNwgGSAqYBwrHyrtgZQx4v8VeZsGcaoZMnOJqsZ5ptAGStgJEpjodwqZYiISv4Q4wO TTgdHvacMWd3sTvW4gVO86T/9LS4rLDVf9pf4uyBbU4KNwP+HZZeImnV2gGWQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=DVarq+Vh; 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: 0.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=DVarq+Vh; 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: 0FFBB1C4B9 X-Spam-Score: 0.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: OZtvffKXpSX6 * gnu/packages/chez-and-racket-bootstrap.scm (chez-scheme-for-system): New procedure. * gnu/packages/loko.scm (loko-scheme): Use 'chez-scheme-for-system'. * gnu/packages/emacs-xyz.scm (emacs-geiser-chez): Likewise * gnu/packages/chez.scm (chez-srfi): (chez-web): (chez-sockets): (chez-matchable): (chez-irregex): (chez-fmt): (chez-mit): (chez-scmutils): Likewise. --- gnu/packages/chez-and-racket-bootstrap.scm | 17 ++++++++++++++++- gnu/packages/chez.scm | 16 ++++++++-------- gnu/packages/emacs-xyz.scm | 2 +- gnu/packages/loko.scm | 2 +- 4 files changed, 26 insertions(+), 11 deletions(-) diff --git a/gnu/packages/chez-and-racket-bootstrap.scm b/gnu/packages/chez-and-racket-bootstrap.scm index f8fc4c7ea1..e837d49c63 100644 --- a/gnu/packages/chez-and-racket-bootstrap.scm +++ b/gnu/packages/chez-and-racket-bootstrap.scm @@ -45,7 +45,8 @@ (define-module (gnu packages chez-and-racket-bootstrap) #:use-module (gnu packages tex) #:use-module (gnu packages xorg) #:use-module ((guix licenses) - #:prefix license:)) + #:prefix license:) + #:export (chez-scheme-for-system)) ;; Commentary: ;; @@ -197,6 +198,20 @@ (define-module (gnu packages chez-and-racket-bootstrap) ;; ;; 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 diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index be251798c3..d5007e0cfd 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -74,7 +74,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" @@ -105,7 +105,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 @@ -170,7 +170,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 @@ -256,7 +256,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" @@ -288,7 +288,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" @@ -319,7 +319,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" @@ -382,7 +382,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" @@ -413,7 +413,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 6430318ec5..ccd05130ca 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 74a649b8a1..a7ab12a0c4 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