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 2IHaIC0FEmJEmwAAgWs5BA (envelope-from ) for ; Sun, 20 Feb 2022 10:09:01 +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 OJ8pHS0FEmKRkgAAauVa8A (envelope-from ) for ; Sun, 20 Feb 2022 10:09:01 +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 DFCBE202CC for ; Sun, 20 Feb 2022 10:09:00 +0100 (CET) Received: from localhost ([::1]:53780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLiDD-0007SG-Ag for larch@yhetil.org; Sun, 20 Feb 2022 04:08:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLi8X-0003dT-Vd for guix-patches@gnu.org; Sun, 20 Feb 2022 04:04:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLi8P-0003pF-RT for guix-patches@gnu.org; Sun, 20 Feb 2022 04:04:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLi8P-0006Ft-Oc for guix-patches@gnu.org; Sun, 20 Feb 2022 04:04:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53878] [PATCH v3 09/15] gnu: Add racket-vm-cgc. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Feb 2022 09:04:01 +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: Philip McGrath Cc: 53878@debbugs.gnu.org Received: via spool by 53878-submit@debbugs.gnu.org id=B53878.164534781824017 (code B ref 53878); Sun, 20 Feb 2022 09:04:01 +0000 Received: (at 53878) by debbugs.gnu.org; 20 Feb 2022 09:03:38 +0000 Received: from localhost ([127.0.0.1]:59338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLi81-0006FJ-H2 for submit@debbugs.gnu.org; Sun, 20 Feb 2022 04:03:37 -0500 Received: from mail-ej1-f67.google.com ([209.85.218.67]:42817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLi7y-0006F1-G6 for 53878@debbugs.gnu.org; Sun, 20 Feb 2022 04:03:35 -0500 Received: by mail-ej1-f67.google.com with SMTP id hw13so25351360ejc.9 for <53878@debbugs.gnu.org>; Sun, 20 Feb 2022 01:03:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=V+DRCVhjZLHZ6eoXqfo1Cuu7Grqfo+3gkUCI1b0wpRU=; b=Xww/5KhEayyjIDSF10JJaTEgYtmYVhu2zyQCwcy1WRZXGn+9TaGlYu5fnjtVEcBRh6 EZwsHgCWtB0hpuGbx2uzBahw0xXi/zH3YhHuP9hiQM7ZfU/DOFgVZhXrsUgKuOfMKmVL 8lylMPWSYZqQxv7k93eyHMDbO5HpMN1EfZdYJPi/r3EKTEXLpfwmsmNO0BFdsM86rbSF LlvIn2h61XfP3OYI916HXVQb4w74qaXUjWC2MLvXge7TQSz3CvCoH1mW3Smj1LAWhiQd zxPLvgKCqjNxUTSYPVU/KW/9mdr6cNvfdl73VPkliuLWxh618iI43ltbUd9H1rHhpp2c j8Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=V+DRCVhjZLHZ6eoXqfo1Cuu7Grqfo+3gkUCI1b0wpRU=; b=0mSHpSeFR19rtpZJLgLBji3dvTj/UyyOrtYd8WuPQeUUckYZEqc2gaMIiwpgbPQC4h DBsEgbcnqxv1dbbHJFcrLuMWu9e7wNQ1gMm672mIEoEFHWB1iZzd1yndYVoeqUDH5s/0 GdYuqicfGF+DV5qPUHhLKIzmL+5qExsAf+Oa5544z2y3whU5yJrdAlqwyqLyOahBulYe 1nJb/cm6SfDboN0ASQvN9CVhpp2zqwL9TCWWOFBKQcxvtHSX5MbAX77q3PdTcMvyknXf JnVKBpjgzPYMrUF42WZ2e9zn5ok715AMz/vl7O6Y35sHpWXAJcPj7D3azOSgZXC/pCzj /ZJg== X-Gm-Message-State: AOAM531gGKE8DFOiGPDRYHX/Bsz7IbCObMiuAgk3+n/wjFxLGj0kufXa Oli0EGKHIwky29W+xgBYMCA= X-Google-Smtp-Source: ABdhPJx9HCI9oUODYOj5AEZpGlyCykbdTVkzo5mAahBjKdrjO5/J9IdHZNitaRLfQuUPwvM+UNcj4A== X-Received: by 2002:a17:907:6218:b0:6d1:c74:1507 with SMTP id ms24-20020a170907621800b006d10c741507mr4098612ejc.670.1645347808354; Sun, 20 Feb 2022 01:03:28 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id q12sm6745510edv.99.2022.02.20.01.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 01:03:27 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Sun, 20 Feb 2022 10:03:26 +0100 In-Reply-To: <2223439.vW7IG60toP@bastet> References: <20220208151316.1897345-1-philip@philipmcgrath.com> <20220219064228.246917-10-philip@philipmcgrath.com> <3eac7271a203816232ae5e298bfbed65f4942bf3.camel@gmail.com> <2223439.vW7IG60toP@bastet> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 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=1645348141; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=V+DRCVhjZLHZ6eoXqfo1Cuu7Grqfo+3gkUCI1b0wpRU=; b=ZWdsSRSr4CNkCWZDfinSvEr9lwX/bfMjuo5UMJkGEVurOeuuDvsl39jgReu17BMLutzSxO 1GHjKUj97nlEBxeAmtfVnvqupediapsQ9ri/IRfKqHats/3Hxu9xsCnaQC36gKKbpeagBb mbI3ZVdAUohsQWj0Oo1q3Xbv8SUFXLFXNgE4nzgi5NwQLD/BI91iAS1/nqt8+xqtaPK85q 0NmKdz1uqNfLqyw2sqEAMWibagE9BMKKQfJBVTTR7lu9ZbLSrGjQxVRY4E9OETSSUSXV/N mC645sD1vjoOJdTLGD3uOvAmZsvJW/lCGQk6k3n+WYhHaX8JbkqqAs4B6JIhbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645348141; a=rsa-sha256; cv=none; b=CfoaJbGSXxUXYsjiD2vkd6dz4aOuiTAxzU6eoY/URRBJLr2yTGoi8RG+ZCoXnJxdP0/l9m FNNbPvrgM5mFCgrnqrzsIzwh4e79cGvONmNQfuVwxA+eBSSyFvvuOGzlRwUJs7FzEzgu7R YYJ0HQDaEAKOCeKFwPExI/zW1ye1xolN462Jv5PuuXKzjluLteWDo5hoh+4OnKxc3H/ObC jgxOD85byFkEHw4JcOv3BPA8wqzoEV+CqaqKytk0WjhmUF1t7p6GHFp2tuzL60fbYBEqAd NrQnjWpOUT/pvfkBb536GhsNCdToXVhnWYiFgGb8r3gCDahOKP7kahTOXHynsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Xww/5KhE"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Xww/5KhE"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: DFCBE202CC X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: PgCDFgiu3VO1 Am Samstag, dem 19.02.2022 um 17:27 -0500 schrieb Philip McGrath: > Hi, > > On Saturday, February 19, 2022 3:46:47 PM EST you wrote: > > Am Samstag, dem 19.02.2022 um 01:42 -0500 schrieb Philip McGrath: > > > * gnu/packages/patches/racket-enable-scheme-backport.patch: New > > > patch. > > > * gnu/local.mk (dist_patch_DATA): Add it. > > > * gnu/packages/chez-and-racket-bootstrap.scm (unbundle-chez- > > > submodules, > > > %racket-version, %racket-origin, racket-vm-cgc): New variables. > > > (chez-scheme)[source]: Use 'unbundle-chez-submodules'. > > > > Something weird happened to me just now trying to build this > > series. While compiling emacs-xyz, an error was raised regarding > > %racket-version not existing and and import being missing.  > > Assuming that you didn't mess up an include somewhere, there could > > be a cycle meaning we'd have to pass the version and origin by > > function as I originally said in my reply to v2. > > > > I'll clean up my work tree and try to reapply it, but that will > > take some time.  Since you mentioned re-exports causing issues, I'd > > like to ask if you've made a similar experience, but the results > > got somehow hidden after the right incantations. > > I haven't seen errors from emacs-xyz, but I have gotten errors about > %racket-version not existing: at the time I thought it was just a > problem with incremental rebuilds while moving back and forward > through history, but, having just refreshed my memory on more details > of the cyclic issues, I think it may be related. I'll send another > email presently with details once I've gathered references. > > For now, I found that `rm gnu/packages/*.go` was enough to get `make` > to succeed again. As you said, the clean build succeeds, but I still think we should do something about incremental rebuilds. So here's my suggestion: Inside chez-and-racket-bootstrap, define (make-) functions for the following: - chez-bootstrap-bootfiles, chez-for-racket-bootstrap-bootfiles: Taking version and origin. - racket-vm-cgc: Taking version and origin. - racket-vm-bc: Taking racket-vm-cgc. - racket-vm-cs: Taking racket-vm-bc. Inside chez, define chez-scheme, as well as non-bootstrapped versions of stex et al. Also define make-chez-scheme-for-racket, taking version and origin as parameter. Finally, define chez-scheme-for-system, which uses (resolve-interface '(gnu packages racket)) to get racket's version and origin. Inside racket, define %racket-version, %racket-origin, racket-minimal and racket. It'd also be good if you made local definitions (define racket-vm-cgc (make-racket-vm-cgc %racket-version %racket- origin)) (define racket-vm-bc (make-racket-vm-bc racket-vm-cgc)) ... in this file. With this split, it should be possible to do incremental builds without stuff breaking. Cheers