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 iNqgBtYlGmKlTAAAgWs5BA (envelope-from ) for ; Sat, 26 Feb 2022 14:06:30 +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 KLsoA9YlGmLZxQAAauVa8A (envelope-from ) for ; Sat, 26 Feb 2022 14:06:30 +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 AC65A2A048 for ; Sat, 26 Feb 2022 14:06:29 +0100 (CET) Received: from localhost ([::1]:55286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNwmK-0001za-Ku for larch@yhetil.org; Sat, 26 Feb 2022 08:06:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNwkz-0000MK-Td for guix-patches@gnu.org; Sat, 26 Feb 2022 08:05:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNwkz-0003ZK-Jf for guix-patches@gnu.org; Sat, 26 Feb 2022 08:05:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNwkz-0005cm-Do; Sat, 26 Feb 2022 08:05:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v5 19/22] gnu: chez-mit: Support chez-scheme-for-racket. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, guix-patches@gnu.org Resent-Date: Sat, 26 Feb 2022 13:05:05 +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.164588068421520 (code B ref 53878); Sat, 26 Feb 2022 13:05:05 +0000 Received: (at 53878) by debbugs.gnu.org; 26 Feb 2022 13:04:44 +0000 Received: from localhost ([127.0.0.1]:54503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNwke-0005av-3h for submit@debbugs.gnu.org; Sat, 26 Feb 2022 08:04:44 -0500 Received: from mail-qk1-f171.google.com ([209.85.222.171]:40457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNwkG-0005ZO-Mx for 53878@debbugs.gnu.org; Sat, 26 Feb 2022 08:04:21 -0500 Received: by mail-qk1-f171.google.com with SMTP id c7so6795166qka.7 for <53878@debbugs.gnu.org>; Sat, 26 Feb 2022 05:04:20 -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=BgU2hyGGjB/CJxFAU4QxdKNvS+uNqyA0HU4oahBzgCU=; b=VZrHHMDB6ugT5OIcCx+9CUza/QBEXf2cH9JAbw01jF7fBlcKOs6ebEYhIrPa5Rb7s/ YNsdXM/R507HH/kquBEj8mddC+LN3joHYLwj7/8T3HVK/uP846g2Y8SahgqjBkumV5kW OeB0kH3g/Mf79uXeLmg8xcvvoYYKkgqL4Enkq4nVbEvsWp0iVSmD/fhhx2iS/h96zW4k PsbsZ/gCUyfj3zyi6crlynitGNsZZxxO67ezmWMviFi8bb5GA8hA1kaJjBwfFo8UUYdK qiTdHeukeic0nQpP0HHNPK84S41GcT1gO49a9A7uIIyFIZ5xV3OL3YHlHXcGwmQjsHHt sHbg== 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=BgU2hyGGjB/CJxFAU4QxdKNvS+uNqyA0HU4oahBzgCU=; b=xtd48dFxdEDZ72reUcxHUUhuBpdqeAlU5G5t21hPNkGNGVT6RVlXDpU7yFNuaeR2RY FnR/Zsc+hqfrBpwuP9kED1lT7WWZKtmVxysnHbt5TT4Pxuc2j8t5+e2esazVfvDf9mJV BSDJx0hAN4RJuOuAT5zLjIUnCvb5CnU1cH1Rfeu3oi1P6MQy7cJjtYMQzx3PZCFJA1yL PnHhfBLnQ511dhBmCW7uxZ4ypEgdUknYUkMLJ2/i4z+G/uj7EXFcA6OBvjRUn4Q1i2+3 KeF4loXZFiHicU0w2vck1OVKWTWgx/f691AUm0BQEZrvuxrJtcp2LZf33hEXBhmcXfTn mfJQ== X-Gm-Message-State: AOAM531LL3JJzl7Tld9QqZ6diXYQFaaizDFSXcyqwKwIKDVGwr4LRcIH q/wpb0frcpMM+ZcMULh2vmBBlkExKCGnvLlCa6I= X-Google-Smtp-Source: ABdhPJwY77J1H2bXyuE7FCEGzabuSTczna7F829uuRi06Z8EyGMwGtdp5FU+RRpCw0xLiNt2a6bdQw== X-Received: by 2002:a37:e312:0:b0:5e9:57ac:76f5 with SMTP id y18-20020a37e312000000b005e957ac76f5mr7095965qki.204.1645880655223; Sat, 26 Feb 2022 05:04:15 -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 x12-20020ac85f0c000000b002de8931d4d6sm3328260qta.77.2022.02.26.05.04.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 05:04:14 -0800 (PST) From: Philip McGrath Date: Sat, 26 Feb 2022 08:02:51 -0500 Message-Id: <20220226130254.1301333-20-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=1645880789; 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=BgU2hyGGjB/CJxFAU4QxdKNvS+uNqyA0HU4oahBzgCU=; b=Lbphf1Pbe8OA9ouFQDoF/Plc+BI8pJ1g3WmRZPfMjTbproC38BEFAUyZiTuDn0UYajjkb4 z3+B9uJufSHraU+kGhw2Pl8tkPP7vtRwgYlEOd7kXv6nH6PyWLi5P/981OYJ/JMnDt65sL OpYuxI0um0oU065rasGKfJUZ5dJhV4Ft73bZ6sTMlFziBdH1811Jk+P2138UQpnMQjj61v /pd/TtIypgEOzRN7R9RdGFG4Ac4QriGcHh+t6qn0YVPwv4k8Yn7Wb3KjZBJyPlQK5QckQ7 E+jNn3AmQXwtX+d/mX4lbXU/bnh/698jWzd8zRR/f9hcZrZ0BG9UxC3C1Tp/9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645880789; a=rsa-sha256; cv=none; b=hljjzq57BFK9jOyPARsNgHks2X1vtcwhECHB+kX87pTvRRTaHBrmw67N0q6nT+TkMg5AHe 6uOQtuFBOSmP3CnP1GoITuXtnWhuXVlhpcdii9YCYYr200ehN55SKybby7e1CzzEAwTF7X SmRqtNJiZBhSyb5dxLOt6WdyOZw6zMUgc/MlFzN64iflIpCuPwSVC/tpgWirbCjq65ba8M tSFnPASFSl9cm2pcDcZUr/dNM5Lhod9JIqt/HWmA1uSGR1Wpb4Ru2J3zQVZu+KUhWUHTkr FAiioQF3PH9Pj3gab8LAifVlUXh0axcZCwMMhgHfbBWqDiSjki4tRrDaw22aeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=VZrHHMDB; 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.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=VZrHHMDB; 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: AC65A2A048 X-Spam-Score: 2.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: uaTZE74X2PAX 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 4818e59837..f258732baf 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