From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 CH1sE6fuG2JbfwEAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 22:35: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 mp10.migadu.com with LMTPS id EK9IDKfuG2JHaAEAG6o9tA (envelope-from ) for ; Sun, 27 Feb 2022 22:35: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 C7FC83FA63 for ; Sun, 27 Feb 2022 22:35:34 +0100 (CET) Received: from localhost ([::1]:36608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nORCX-0004aZ-Sa for larch@yhetil.org; Sun, 27 Feb 2022 16:35:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nORB4-0002aG-R0 for guix-patches@gnu.org; Sun, 27 Feb 2022 16:34:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nORB4-00060b-IM for guix-patches@gnu.org; Sun, 27 Feb 2022 16:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nORB4-0008Mp-G5 for guix-patches@gnu.org; Sun, 27 Feb 2022 16:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v7 21/24] gnu: chez-mit: Support chez-scheme-for-racket. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Feb 2022 21:34:02 +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.164599760832098 (code B ref 53878); Sun, 27 Feb 2022 21:34:02 +0000 Received: (at 53878) by debbugs.gnu.org; 27 Feb 2022 21:33:28 +0000 Received: from localhost ([127.0.0.1]:59400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nORAV-0008Ld-MD for submit@debbugs.gnu.org; Sun, 27 Feb 2022 16:33:27 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:44914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nORAU-0008LS-UK for 53878@debbugs.gnu.org; Sun, 27 Feb 2022 16:33:27 -0500 Received: by mail-qt1-f181.google.com with SMTP id v3so7414139qta.11 for <53878@debbugs.gnu.org>; Sun, 27 Feb 2022 13:33:26 -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=rAwszW55AeDy3TSpuVQTOuAPtbNMETW3iT05z+FwR7k=; b=CL0+HS4MbXEKYQkWkAzi4thNxis2mRjtn0LBJnS3ph96bm+M4sIwrFuUKrq5RvPnlu 2BKwd0APswNW2fyTrgJhjG1T+Akk/xMbvJzz3AzX8PLar3giNeH98izZHIdf0ttVe7w1 zfg23sL23dPWytF7Nvjd5qZH4lLvr7LdOozEGKQfd107S6VbTazt3CbnnmNuW4hSzSx+ VEWJMHenThOx9llnkAGz5To7F5vzOGGW9Xe9/iyXNBP8oCPrxyewUZvFEIJMUozkr4xr H6ahYPFLTGtnLqkIYorDvnU7MsiP1unupYk1onkVFH9KAVbZjaKzS/FvYac3haAJsYYW +DEQ== 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=rAwszW55AeDy3TSpuVQTOuAPtbNMETW3iT05z+FwR7k=; b=BzXCj+ehlb7aEVfQWdeH3/+fcwX+whkuwZno+dKCN0rDSFoFgmoKRorFqgOse4GJT3 MFNAvOlYD9zcSdlpC7mXpStssXXF6b+0c9D7nGxjXtVpIZbPXOLNnFuJO65yD7cOJPAm uKp2yqF/BA/Bj8MgSZgZpclt3Cx4OQDEqodJIFIjJbt6fx0QU50+pcbMWh30kcMgKvNJ LSo6u6H/Xoiyejh0/FEeCu4LEH5NG7XUTriCyzEvUQbYznlVY9yXsb3zXpa7BxaC08Ns Tu1f3qAlNrTLLGtJpujYnG3f3Ma4spL42c86ukPNHsr98h37ENAechNGERX9OsBmRYp0 yKuw== X-Gm-Message-State: AOAM530U1KurdM7wxKRtM2/zWW1C6UCpKJLgIEy2pK6KA+pKso0zDykZ erJMHjoV9rAb2FE30A5yR0Q/d4NXfR5O78Wq7U8= X-Google-Smtp-Source: ABdhPJx/WpPPfjAYl8b8p5M8EfrMNa5bh5YRSVFwSs61CneAc/i+peLCGTiHRqSz2fVTeZ2c2l0eww== X-Received: by 2002:ac8:4e82:0:b0:2dd:e5a1:3b2a with SMTP id 2-20020ac84e82000000b002dde5a13b2amr14525935qtp.196.1645997599276; Sun, 27 Feb 2022 13:33:19 -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 h188-20020a376cc5000000b0064957b23a9csm4206954qkc.118.2022.02.27.13.33.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Feb 2022 13:33:19 -0800 (PST) From: Philip McGrath Date: Sun, 27 Feb 2022 16:29:17 -0500 Message-Id: <20220227212920.2009000-22-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=1645997734; 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=rAwszW55AeDy3TSpuVQTOuAPtbNMETW3iT05z+FwR7k=; b=imPTJ6lFcOvmwEZ5xuz8Xj86gW8LAUND108SIXjbhqLEUIqcJJaRd/W6LLHYBnGmHG31bm y6cA8Lr8XyA2KPG/q3yzdV8lQMxqWpETGqzz+AiU+y9PHnFa+XVRFpu/d2CZqO0wA9ATtD w0/ZkyoJk1DV+0tF3kEPt82MeUIXVcnW3oeTyjrI0ef04VUuR3tYSEwwClS8Q24lOL3eU8 P8qGQW2LdKuS/rMabMtOWyEcJcWMPlAtx8akfomZjq8Uov72QoMbSBN+bLWeGmIVtE/adt 9KNNvuNeMRci/VvIfMwt2XaRtIaFjp5O1bpAxStVzmGqV6WUDu7pjpCreUjB0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645997734; a=rsa-sha256; cv=none; b=YlJaLdwnCLgxZbdh0q0j0nTDa9QI+6TgtvLMsIFLaCCEgM4mCGqLSVyFVksxRcId5iQtBR zAEslMF+WhOkGI/OdfXsYcyK7zVF45Vbnj6LpE2aqilMpbntr3Cn/tSU1wsCiFqrF75D4i SiXyhf3TMHWTyax2vRo6tbuV8w2Yvm5IONaG+KZ54/B2y7O8wO23WXljb1LZALW1/pU8cr ehMTv73CkWHbaDruYFh8QiBBBb++XTY42SsfGelDW1X3TPUnlAGb9OpHeUqHyD4HsYqW/F JVuOMQpDviPorrce/OPW0SMQiMeA44s7Y4P0T4g7HeCVs6uvKnId3vRhfZA51w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=CL0+HS4M; 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=CL0+HS4M; 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: C7FC83FA63 X-Spam-Score: 2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: WefjabPpc6TH Racket's variant of Chez Scheme defines 'string->uninterned-symbol', which conflicts with the definition from '(chez mit)'. See discussion at . * gnu/packages/chez.scm (chez-mit)[origin]: Add workaround for chez-scheme-for-racket. --- gnu/packages/chez.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index da267d3616..5d5108a2b1 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -949,7 +949,29 @@ (define-public chez-mit (commit (string-append "v" version)))) (sha256 (base32 "0c7i3b6i90xk96nmxn1pc9272a4yal4v40dm1a4ybdi87x53zkk0")) - (file-name (git-file-name name version)))) + (file-name (git-file-name name version)) + (snippet + ;; Workaround for chez-scheme-for-racket. + ;; See: https://github.com/racket/racket/issues/4151 + #~(begin + (use-modules (guix build utils)) + (substitute* "mit/core.sls" + (("[(]import ") + "(import (only (chezscheme) import)\n") + (("[(]define string->uninterned-symbol gensym[)]") + (format #f "~s" + '(begin + (import (only (chezscheme) + meta-cond + library-exports)) + (meta-cond + ((memq 'string->uninterned-symbol + (library-exports '(chezscheme))) + (import (only (chezscheme) + string->uninterned-symbol))) + (else + (define string->uninterned-symbol + gensym))))))))))) (build-system gnu-build-system) (inputs (list chez-srfi)) ; for tests -- 2.32.0