From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 TIl5LQq2DmLfwQAAgWs5BA (envelope-from ) for ; Thu, 17 Feb 2022 21:54:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iKrQKQq2DmI02wAA9RJhRA (envelope-from ) for ; Thu, 17 Feb 2022 21:54:34 +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 5B9C13E43A for ; Thu, 17 Feb 2022 21:54:34 +0100 (CET) Received: from localhost ([::1]:37982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKnnN-0008Qw-JF for larch@yhetil.org; Thu, 17 Feb 2022 15:54:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKnlw-0006ou-V1 for guix-patches@gnu.org; Thu, 17 Feb 2022 15:53:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKnlw-0001dm-LT for guix-patches@gnu.org; Thu, 17 Feb 2022 15:53:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKnlw-0003aS-L2 for guix-patches@gnu.org; Thu, 17 Feb 2022 15:53:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v2 13/15] gnu: chez-mit: Support chez-scheme-for-racket. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Feb 2022 20:53: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 Cc: Philip McGrath , zimoun , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Liliana Marie Prikler , Attila Lendvai , Malte Gerdes Received: via spool by 53878-submit@debbugs.gnu.org id=B53878.164513115613679 (code B ref 53878); Thu, 17 Feb 2022 20:53:04 +0000 Received: (at 53878) by debbugs.gnu.org; 17 Feb 2022 20:52:36 +0000 Received: from localhost ([127.0.0.1]:52797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKnlU-0003YY-70 for submit@debbugs.gnu.org; Thu, 17 Feb 2022 15:52:36 -0500 Received: from mail-ua1-f44.google.com ([209.85.222.44]:46027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKnlK-0003XZ-5W for 53878@debbugs.gnu.org; Thu, 17 Feb 2022 15:52:26 -0500 Received: by mail-ua1-f44.google.com with SMTP id b37so3249229uad.12 for <53878@debbugs.gnu.org>; Thu, 17 Feb 2022 12:52: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=ZRi6asVXV+QTTkm+7nvM8RjAeYcMCR/ik7tKnX79K+k=; b=ZZ+DraLyNKYpVO3KxaYdtTEcwpp87/41jZx688cbVyD9VBYpeKvN6NWsm9M2xbopTk eTiGdZOrrLUZe0RDMrRaUFrNBKhitWHJOyd61tC3usTrg3UZp7ZGYpVQp16M8i+nl8nA mO6RyMQZ4F4vy0umiJFTUkgoChQHnXW7Ggd8pqvxJdvnlv5y3ZTeqMc75fHPTbQPvICY fJuEDC7M8u7yprZAiX0GjMxrieEUBRPbomXq3jlVHjuIH3zfSnN+Lvx4+3G69Wtc7M3g Q/lAfSw4NgvCeT1QzSnmekRIlGqQagc0uL5u3YS/tjlIqvYhEwwDRgKqh2VBFdiJ7yCc T/Ww== 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=ZRi6asVXV+QTTkm+7nvM8RjAeYcMCR/ik7tKnX79K+k=; b=pzNHXyiPztPtr54Nwg3J62Rx7MWGrj3fWKwvg6gh8DsCwM4KZ2mtHlc/1uhU4LDDPM GIHdVB6Fo3XPOLLwgLjfg4bGbm94d8aaVObUcSDLbl/oUJz5cMuvS0KVYS3k4hDf/ZTE Xwd+hwLU9JF5hcbu/eJHR+9BJvH2Qe3/GAR/2/F8alyJRmVydR4zMKASxNFY1jFJ1KFG n2qdj9l8VA6XIuXIlgYG+aKIlqLz9LFW0IF+QqXi7aDSVWEnm1ZGv9OPVGXYOJjHQdp8 G5AoOldNnqad8L/1Su5hM7j1PcCFARGZ4BgrRsyM6PwL5f+Uh1neULj846aZu7h4l2b0 /gvg== X-Gm-Message-State: AOAM531DP1wuB7QFnED7R/Ob8b3WgDQno4TexDXXr3yOrcpCp4KyevP0 s+3gpMOW+k0uFY6bCa06mWmVuw1fqZXShj3UUa4= X-Google-Smtp-Source: ABdhPJwU0/3uWOm1rUYmCd9yh8DY4y8/aYmMFf/PeipgkIOW4FgpLETn0gEoTMHYK6X2fJLIKyMsgQ== X-Received: by 2002:a9f:2008:0:b0:33d:b3:a3de with SMTP id 8-20020a9f2008000000b0033d00b3a3demr2051366uam.71.1645131140690; Thu, 17 Feb 2022 12:52:20 -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 k45sm3674562uae.14.2022.02.17.12.52.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Feb 2022 12:52:20 -0800 (PST) From: Philip McGrath Date: Thu, 17 Feb 2022 15:50:46 -0500 Message-Id: <20220217205048.967383-14-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220217205048.967383-1-philip@philipmcgrath.com> References: <97f8916ae5bd8d8459bdfd507864f2f55cc217a1.camel@ist.tugraz.at> <20220217205048.967383-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=1645131274; 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=ZRi6asVXV+QTTkm+7nvM8RjAeYcMCR/ik7tKnX79K+k=; b=ir+w8dBTarinnci/GOhXQlYtJHR0uH6WZ6hr3exOriDCo3gi17utWqhOEvNMww1I+YWNjQ CnBK24kc/78dIFGYHwar7I+hfl4q41UgbKzWe+PpzGlVZkx0E1R+YiMdb3mvJvJdbz9PyB aYOHpGXqSVVDWR/nPH/82S3F8Fep6fxcjBXmLX1wfOoZ/3N/aHoRCbvLWZ7xcOt2vMOobc WbCjv3TaS2Ig9oU04qF6jSWLd+dpTLHniAhLj8eVyzZkis/DciWiNx3IlRMJcri7awtO3S ahLdc3sJdVjVZO1V+Di/gi+Y89aBB3dbFnWtVsfneDdKRruSiGns08N9zjFIVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645131274; a=rsa-sha256; cv=none; b=FlMwQRCcMq1Fu4TciusCugq9kHv3fWnRqpQF/ZX599C3fSkWjvzoBlOF1AyshHk31+tks6 dYo/N6wQbSW8thsY102Hr3NeN/DBaFlpCXGQdQBbsnc8MZlcrVCotgoyZ3OBXImSHK1Zjx kavx5RfM2V5fpDHjZ4JCY6Ypy3dSVPmv3/ilN02cd0qK34sR83GQK2B1y2SuM1IHGrgWKT SqiQsuHLJa2xg+EBC+XKzE93HYdYNDMw9lRsXaSUTXHtVsv+ttDyx9Wnt6qS7DEulYcGm2 2S5s2Sl/8Q+hbH+Vc0llvidFqvoOULIRBeS2Y52rukfRSfNoTQsYS9H5XOl4rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=ZZ+DraLy; 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.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=ZZ+DraLy; 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: 5B9C13E43A X-Spam-Score: 0.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8FZatYSuq50P 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 54bbee7923..be251798c3 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -355,7 +355,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