From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YK+nDL/o9GJKJwEAbAwnHQ (envelope-from ) for ; Thu, 11 Aug 2022 13:32:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eI6XDL/o9GKgVwAAauVa8A (envelope-from ) for ; Thu, 11 Aug 2022 13:32:15 +0200 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 C278829732 for ; Thu, 11 Aug 2022 13:32:14 +0200 (CEST) Received: from localhost ([::1]:33118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM6Q9-0006Aq-U7 for larch@yhetil.org; Thu, 11 Aug 2022 07:32:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM6Py-0006Ae-AG for guix-patches@gnu.org; Thu, 11 Aug 2022 07:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM6Py-0001a0-1J for guix-patches@gnu.org; Thu, 11 Aug 2022 07:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oM6Px-0000qW-Rj for guix-patches@gnu.org; Thu, 11 Aug 2022 07:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57050] [PATCH v2 04/13] gnu: Add Zuo. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Aug 2022 11:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57050 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath , 57050@debbugs.gnu.org Cc: Liliana Marie Prikler , Thiago Jung Bauermann Received: via spool by 57050-submit@debbugs.gnu.org id=B57050.16602174813196 (code B ref 57050); Thu, 11 Aug 2022 11:32:01 +0000 Received: (at 57050) by debbugs.gnu.org; 11 Aug 2022 11:31:21 +0000 Received: from localhost ([127.0.0.1]:51901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM6PJ-0000pU-0a for submit@debbugs.gnu.org; Thu, 11 Aug 2022 07:31:21 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:60529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM6PG-0000pJ-4q for 57050@debbugs.gnu.org; Thu, 11 Aug 2022 07:31:19 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4M3Pl62tYXz1LZXw; Thu, 11 Aug 2022 13:31:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4M3Pl62tYXz1LZXw DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1660217474; bh=poI5JKW/o1NN/b3YoBwD4sPHmn6fwOH6d9m977Nd2QI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=a/JbyiTFBPMcafgvGPwmzCRxeGH781PDbAFPBA1eIgKKbTqaZVKu4yCAwyRZAPKLD dvvcEX9YAc/odDrhsLCixwXk0JebPbrjt0PLvM2RHwo8IL0cL38adVfIazB/v/rMQs Rsbl16JXpUDu7Xo7MKPT40h9shdbikp8k3YFO6jY= Message-ID: From: Liliana Marie Prikler Date: Thu, 11 Aug 2022 13:31:12 +0200 In-Reply-To: <285372112d70bcb4011d6c085592787df4f57d44.1660215295.git.philip@philipmcgrath.com> References: <285372112d70bcb4011d6c085592787df4f57d44.1660215295.git.philip@philipmcgrath.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660217535; 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=poI5JKW/o1NN/b3YoBwD4sPHmn6fwOH6d9m977Nd2QI=; b=cJPc7clYt/p73bidVsRETCvZRZjY/h3rASdLsrsYICLvGLHsMhQbM7I1/kaK/uQY+3hrN8 0ddvw3/mQYh5t4k37P0uUlzsUdtBImHGvbkQG/ExXMIRlakOoOdc1O/1QSfK1cosQRIZxU 9/RIP2xfA11sAOxEfeIgLEiOzT8JxQ/qS0IffJ0uHHCgzMEAMry9eFPnIqK31TU3Go7vaj D39f0fWOGNy5qtfWtk38FUoG5BZXooVSCnZHDrhHHC3EWmlR6OBTA11Ko1Xw1nXALTnjgT mW7NQsDJz7DNnyvMuRFMrsxXyln6Jo2at83W9hxa6KwCjf4P1q8wj/7Twnz5PA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660217535; a=rsa-sha256; cv=none; b=Obq4teV3v9tNZZkXe60b7u/0+WFglSnq85GiamwW90KjZrMlklWvGte1X296IVkOqktPZ9 n58Na5LLDRoSDBm98P3YBcjNpe2+dd9vtio5Uz3dImTq9oEsOmIb5cQopVfGycmIdgQHLf oaCjTu17MiuCYWZq2nqsfFtpRXToP5aLREvdle4DlWbP8/Pt2LwmqpYFfDVv/HFUQyOtzo hbVBQc6Ei37mjciRduchO6RqdPErnxVOkWW2NN8ryTfaRThEjRJZafFzOcQx8lkqzmX0xu eeq+qSuOL6QsOqn/akhFas9WhnJQ67SJKAxUxhTtPUjJy2o5G9/WYFhYsD9qTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="a/JbyiTF"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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: 8.92 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="a/JbyiTF"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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: C278829732 X-Spam-Score: 8.92 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: 7Xt4ykBVocE+ Am Donnerstag, dem 11.08.2022 um 07:08 -0400 schrieb Philip McGrath: > [...] >   >  (define %racket-version "8.5") ; Remember to update chez-scheme-for- > racket! > +(define %zuo-version "1.0") ; defined in racket/src/zuo/zuo.c Is that publicly visible? >  (define %racket-commit >    (string-append "v" %racket-version)) >  (define %racket-origin > @@ -233,6 +234,69 @@ (define %racket-origin >           ;; Unbundle libffi. >           (delete-file-recursively > "racket/src/bc/foreign/libffi"))))) >   > + > +(define-public zuo > +  (let ((revision #f)) > +    (package > +      (name "zuo") > +      (version (string-append %zuo-version > +                              "-racket" > +                              "8.6" > +                              (if revision "-guix" "") > +                              (or revision ""))) Is this really needed? If we expect to maintain zuo split from racket, I'd rather go with https://github.com/racket/zuo and git-version. > +      (source > +       (origin > +         (inherit %racket-origin) > +         (uri (git-reference > +               (url "https://github.com/racket/racket") > +               (commit "v8.6"))) > +         (sha256 > +          (base32 > "1yi36nr7zrdwrnvpmliirxxjz4pyfyhkar6yvk3rapvmg4q2vmnk")) > +         (patches (append (origin-patches %racket-origin) > +                          (search-patches "racket-backport-8.6- > zuo.patch" > +                                          "racket-zuo-bin- > sh.patch"))) > +         (file-name (git-file-name "racket" "8.6")))) > +      (outputs '("out" "debug")) > +      (build-system gnu-build-system) > +      (inputs (list bash-minimal)) > +      (native-inputs (list bash-minimal)) > +      (arguments > +       (list > +        #:configure-flags > +        #~`(,(string-append "CPPFLAGS=-DGUIX_RKTIO_BIN_SH=" > +                            #$(file-append (this-package-input > "bash-minimal") > +                                           "/bin/sh")) As with chez-scheme, I do think using a Racket-agnostic macro name is helpful here. > +            #+@(if (%current-target-system) > +                   (list #~,(string-append > +                             "CPPFLAGS_FOR_BUILD=- > DGUIX_RKTIO_BIN_SH=" > +                             #+(file-append > +                                (this-package-native-input "bash- > minimal") > +                                "/bin/sh"))) > +                   '())) > +        #:out-of-source? #t > +        #:phases > +        #~(modify-phases %standard-phases > +            (add-after 'unpack 'chdir > +              (lambda args > +                (chdir "racket/src/zuo")))))) > +      (home-page "https://github.com/racket/zuo") > +      ;; ^ This is downstream of https://github.com/racket/racket, > +      ;; but it's designed to be a friendly landing place > +      (synopsis "Tiny Racket for build scripts") > +      (description "You should use Racket to write scripts. Sorry, but I prefer Guile. >   But what if you > +need something much smaller than Racket for some reason—or what if > you're > +trying to script a build of Racket itself?  Zuo is a tiny Racket > with > +primitives for dealing with files and running processes, and it > comes with a > +@command{make}-like embedded DSL. > + > +Zuo (作) is a Racket variant in the sense that program files start > with > +@code{#lang}, and the module path after @code{#lang} determines the > parsing > +and expansion of the file content.  That's how the @command{make}- > like DSL is > +defined, and even the base Zuo language is defined by layers of > @code{#lang}s. > +One of the early layers implements macros.") > +      (license (list license:asl2.0 license:expat))))) Rarely have I read a description this long, yet uninformative. Let me shorten that a little: "Zuo is a tiny Racket variant that can be used to bootstrap Racket. It comes with primitives for dealing with files and processes, as well as a @command{make}-like DSL." Cheers