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 AKeAKPbaEWJ3CwEAgWs5BA (envelope-from ) for ; Sun, 20 Feb 2022 07:08:54 +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 OIWkJfbaEWIg/AAA9RJhRA (envelope-from ) for ; Sun, 20 Feb 2022 07:08:54 +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 415131C43E for ; Sun, 20 Feb 2022 07:08:54 +0100 (CET) Received: from localhost ([::1]:60648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLfOv-00074l-7m for larch@yhetil.org; Sun, 20 Feb 2022 01:08:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLfOA-00063R-Id for guix-patches@gnu.org; Sun, 20 Feb 2022 01:08:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLfO8-00048y-90 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-0005Xe-4l; Sun, 20 Feb 2022 01:08:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v4 13/15] 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: 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.164533724421195 (code B ref 53878); Sun, 20 Feb 2022 06:08:04 +0000 Received: (at 53878) by debbugs.gnu.org; 20 Feb 2022 06:07:24 +0000 Received: from localhost ([127.0.0.1]:59209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLfNU-0005Vg-Cr for submit@debbugs.gnu.org; Sun, 20 Feb 2022 01:07:24 -0500 Received: from mail-qv1-f49.google.com ([209.85.219.49]:45025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLfNJ-0005Pj-6e for 53878@debbugs.gnu.org; Sun, 20 Feb 2022 01:07:13 -0500 Received: by mail-qv1-f49.google.com with SMTP id p7so23807399qvk.11 for <53878@debbugs.gnu.org>; Sat, 19 Feb 2022 22:07:13 -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=itywXS9Ow5cRGkD0RviRlBSSoSKp9SguDwfQ00zCZ0t2utL8sZjLMwKVmuopHvJS5M 1NTsR7p6oT6cz97mDlLwgLDUUf027ZkCLyRm8f/8cA+MIIt+doMBD+ddtnmInTSe6fIj K/XOu05+bMWUDr6Vz5HogSX/NqP+E4Pqezaj244SScscdXzozUGPXWQucNRbfWAU/kiU y/E+YoYChuOFAtBAJnQBnh+eI405LkVxJpawGZV+r24ijVbes/vdbLQKtnnfLniCj3y8 Fx0Q0TYYiy4mS/tGHAm3klwFBPgHy1BTboJxDp3n57T56nL8nGioWIyToimORXkfTg38 tFag== 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=NTuVBk4y7/rqlXLR2LHNa964yLnItFX6qM59XXKtoiXW6GJaApmSwiOqPOws5Kj5k4 16RkWtFsr4t1FhMDaMhw7HSJXKqzxBR/sOe8PTjolJDncYrSMHikIirVoTvnoSnEfhwa 431qcU468PXsiTuG1Dn9jJ6asCbUDzmc4YfCfCDxpLsVxgRCZKTCcCI1xgCUhwykMUiP 2oLLWtY9S3BqEQpy1DTNpLxt8xCl67hZAcyQA5p0RpDKCh6Ovtt76cw0AxMldXcEcM1w 9hw7EIkkmdbweX39X1dvqV8xkrXSwYwtjaPiNw24Wv4HLzn7rjQzz75z5j9gkbhsk4rK D5yA== X-Gm-Message-State: AOAM531K/9uZe2G2VmPu4s9ehob1kfx6+ynMzqjTsLNJ42yjWmZkVZ4y /m0Dvp5UYVAvREawvAEs3n5BbhMRw5qDXu9nZ4M= X-Google-Smtp-Source: ABdhPJyU96az28xFasO+de1sAE//ikPmvBLeJqsiAiSPR5n+wob92jIA1bRmie8fIiNVqOgLm1QouA== X-Received: by 2002:a05:6214:23c9:b0:413:b627:13d5 with SMTP id hr9-20020a05621423c900b00413b62713d5mr11235669qvb.16.1645337227772; Sat, 19 Feb 2022 22:07:07 -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 bk23sm24639145qkb.3.2022.02.19.22.07.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Feb 2022 22:07:07 -0800 (PST) From: Philip McGrath Date: Sun, 20 Feb 2022 01:06:08 -0500 Message-Id: <20220220060610.178131-14-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=1645337334; 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=qLvOnb//5VHUW4fgVLiVDw5+s26UtGfLQMTUCrTnzP15PdSolfcwEZMJcBW+2bCs1aFLgs WqSNl1w2PGqA4lmUdWkp6pQCJXUDUKdKog+4IARLvqe9kpBhugS5zgUAK1YVMrNT9O9bsU 0i989v46Ts+tB3HKTcPR2r+vOakbCyrFDX4M34aztiE8OQ68MN2JLHlHLHGjJWgBAVgY77 Drb3WWFQYgJssjuRMgoJD+ERQFfd+GQneQBP2wdtEYHQg0DmmWVkaTpDGBaqZfWSnYWBjw MP/xvc6ttAw+CsxmNmZoHPhP1Ne/NbU1bWowMD0JG9frmsRzFTCzqsSsvYh9/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645337334; a=rsa-sha256; cv=none; b=dSk0TIB8fkGJKeu5K6an73Xq0ghxl4yUidNdQCticU5JkFYchjqaLEGSdfR+6+UPATEXwU Ay3/iz0XyZoLhPIIUzxWJxMIJzBaOmyl864bnWgGbGKOfIAcREuDuz0BPL+/6ofpxpBu1K u4dJMslJ9ghQheIm5+s56w9W6uEDQsjOkb6YcU6ngMDiVjk7ArEXJjSz9fX7bQDjXRcTmL 4elqRw1wh5jj7xs0ke4BG5QTMdA8Wndsdl8LKCAXnzKF0xvHirDsHYdf7ygMRyRJq3Fqwf bO8jTWLF5Go6N/JpmERaYcNhvxDaohHFrazAZ3eBE1Rupj3M9r0RxMXg2OGOYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=itywXS9O; 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=itywXS9O; 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: 415131C43E X-Spam-Score: 0.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9tjF084QAQ2t 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