From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EJfCIpjyC2HFzwAAgWs5BA (envelope-from ) for ; Thu, 05 Aug 2021 16:15:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MIOXHpjyC2GfKwAA1q6Kng (envelope-from ) for ; Thu, 05 Aug 2021 14:15:52 +0000 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 A9B552F72 for ; Thu, 5 Aug 2021 16:15:51 +0200 (CEST) Received: from localhost ([::1]:51296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBeA2-0007bK-JJ for larch@yhetil.org; Thu, 05 Aug 2021 10:15:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBe4Q-0002IY-Lg for guix-patches@gnu.org; Thu, 05 Aug 2021 10:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBe4Q-0008WA-Ej for guix-patches@gnu.org; Thu, 05 Aug 2021 10:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBe4Q-000752-7h for guix-patches@gnu.org; Thu, 05 Aug 2021 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49889] [PATCH 1/5] gnu: gerbil: Move to (gnu packages gerbil). Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Aug 2021 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49889 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49889@debbugs.gnu.org Received: via spool by 49889-submit@debbugs.gnu.org id=B49889.162817259627195 (code B ref 49889); Thu, 05 Aug 2021 14:10:02 +0000 Received: (at 49889) by debbugs.gnu.org; 5 Aug 2021 14:09:56 +0000 Received: from localhost ([127.0.0.1]:47983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBe4A-00074J-Sd for submit@debbugs.gnu.org; Thu, 05 Aug 2021 10:09:56 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:32844 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBe48-000742-8f for 49889@debbugs.gnu.org; Thu, 05 Aug 2021 10:09:45 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1628172574; bh=ox8vgKmYXve4r/rKMivcjH79PE9SfcmBotz+GIpz0A4=; h=From:To:Subject:In-Reply-To:References:Date; b=SZ3RyyJpVkmrkDwHcvBf8YAlO8m8iQOQJX3bAjLncwA1jWE+wCrGwNSuNKJstk0QT yVf3y/VUPhmt1imhhSOXzmtqYPTCAU22jss33V/xsqLDgQnzfSmnh143I45Ju1k6Bw sqoLLgtjhG5PfAfbqjTsde9uDRKsG1LMAlHwzJiM= In-Reply-To: References: Message-Id: <983c3e3a6b0b63c75044e33ed4b2dad87583158f.1628172101.git.public@yoctocell.xyz> Date: Thu, 05 Aug 2021 16:09:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628172951; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=6ti7QLlBlovHBhQrVDS//XyD1zHo38nghuLo0hWXPVs=; b=pb6s8rkdnR4rh5uWVvk1fiMRNoLDE6OyoEMDwIoEVn+AzpMdlcZX7wM5FNJxH1K6pB1KxF Dd1sRl+YkOmBrEHWbASjJoWQfX46HIVI+5UEDFkvXTKaOOgp6ahWORxMd9j581bmYTasnk ETbqhrjdm4Nb8Sh5ghKXP+D8fs59/ue4VOEskyr19+9v7NRMKt9ERf3aBydyKr2J82hXPR /5SA+B+ZJ192iv3WSVvVIrHvJanUOZuEZ/uZJUuF3z1SJxm6Da12tQHZE6T793zsjREAiW ou1PIsnN01n/Wx9U/BGsEH9i1B9KGW+1dXYCSo/PsMzX6tcq0r1LX9s5e1vTQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628172951; a=rsa-sha256; cv=none; b=rxAszi/WtoLIYOljV6YT4d08RGV+ccbwZxY8+80AjroXyCl8YOQsYO14cSDggllL5U+uHd UeaTMDhWjGUTvYOVONKrENOztf6Nd8Mris2N7qViY75nt8IovqPzF+uvYy53b4r2QZxUq3 RjeH7bnAPg0Mj+WHq0s6ca5jZA5qwwMacmjrUMN6bdr2UrjChiw8CejlufQfRblLw7PjpW 2/2ji3JpQsSA/F6xymdt+oTWnVLyuhmNoILVP853aiWJr5oQj5hlXc2q/AQ+StcXBYhDd5 +EhllfR9UK5ImRp9q45mX5F/GU2MCqWtSyXSDlhKclE5F2h4Px9d6IfKU/1IoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=SZ3RyyJp; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=SZ3RyyJp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A9B552F72 X-Spam-Score: -0.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: jLhx5jFpoMno * gnu/packages/scheme.scm (gerbil): Move from here... * gnu/packages/gerbil.scm: New module. (gerbil): ...to here * gnu/local.mk (GNU_SYSTEM_MODULES): Register gnu/packages/gerbil.scm. --- gnu/local.mk | 2 + gnu/packages/gerbil.scm | 137 ++++++++++++++++++++++++++++++++++++++++ gnu/packages/scheme.scm | 105 +----------------------------- 3 files changed, 140 insertions(+), 104 deletions(-) create mode 100644 gnu/packages/gerbil.scm diff --git a/gnu/local.mk b/gnu/local.mk index 51a76e3638..ddbc057dc7 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -44,6 +44,7 @@ # Copyright =C2=A9 2021 Arun Isaac # Copyright =C2=A9 2021 Sharlatan Hellseher # Copyright =C2=A9 2021 Dmitry Polyakov +# Copyright =C2=A9 2021 Xinglu Chen # # This file is part of GNU Guix. # @@ -239,6 +240,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/genealogy.scm \ %D%/packages/genimage.scm \ %D%/packages/geo.scm \ + %D%/packages/gerbil.scm \ %D%/packages/gettext.scm \ %D%/packages/ghostscript.scm \ %D%/packages/gimp.scm \ diff --git a/gnu/packages/gerbil.scm b/gnu/packages/gerbil.scm new file mode 100644 index 0000000000..69e7ae76a8 --- /dev/null +++ b/gnu/packages/gerbil.scm @@ -0,0 +1,137 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2020 Edouard Klein +;;; Copyright =C2=A9 2021 Xinglu Chen +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages gerbil) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages base) + #:use-module (gnu packages compression) + #:use-module (gnu packages linux) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages scheme) + #:use-module (gnu packages sqlite) + #:use-module (gnu packages tls) + #:use-module (gnu packages) + #:use-module (guix build-system gerbil) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (ice-9 match) + #:use-module (srfi srfi-1)) + +(define-public gerbil + (package + (name "gerbil") + (version "0.16") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vyzo/gerbil") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vng0kxpnwsg8jbjdpyn4sdww36jz7zfpfbzayg9sdpz6bjxjy0f")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'bootstrap) + (add-before 'configure 'chdir + (lambda _ + (chdir "src"))) + (replace 'configure + (lambda* (#:key outputs inputs #:allow-other-keys) + (invoke "chmod" "755" "-R" ".") + ;; Otherwise fails when editing an r--r--r-- file. + (invoke "gsi-script" "configure" + "--prefix" (assoc-ref outputs "out") + "--with-gambit" (assoc-ref inputs "gambit-c")))) + (add-before 'patch-generated-file-shebangs 'fix-gxi-shebangs + (lambda _ + ;; Some .ss files refer to gxi using /usr/bin/env gxi + ;; and 'patch-generated-file-shebangs can't fix that + ;; because gxi has not been compiled yet. + ;; We know where gxi is going to end up so we + ;; Doctor Who our fix here before the problem + ;; happens towards the end of the build.sh script. + (let ((abs-srcdir (getcwd))) + (for-each + (lambda (f) + (substitute* f + (("#!/usr/bin/env gxi") + (string-append "#!" abs-srcdir "/../bin/gxi")))) + '("./gerbil/gxc" + "./lang/build.ss" + "./misc/http-perf/build.ss" + "./misc/rpc-perf/build.ss" + "./misc/scripts/docsnarf.ss" + "./misc/scripts/docstub.ss" + "./misc/scripts/docsyms.ss" + "./r7rs-large/build.ss" + "./release.ss" + "./std/build.ss" + "./std/run-tests.ss" + "./std/web/fastcgi-test.ss" + "./std/web/rack-test.ss" + "./tools/build.ss" + "./tutorial/httpd/build.ss" + "./tutorial/kvstore/build.ss" + "./tutorial/lang/build.ss" + "./tutorial/proxy/build-static.ss" + "./tutorial/proxy/build.ss"))))) + (replace + 'build + (lambda* + (#:key inputs #:allow-other-keys) + (setenv "HOME" (getcwd)) + (invoke + ;; The build script needs a tty or it'll crash on an ioctl + ;; trying to find the width of the terminal it's running on. + ;; Calling in script prevents that. + "script" + "-qefc" + "./build.sh"))) + (delete 'check) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (lib (string-append out "/lib"))) + (mkdir-p bin) + (mkdir-p lib) + (copy-recursively "../bin" bin) + (copy-recursively "../lib" lib))))))) + (native-inputs + `(("coreutils" ,coreutils) + ("util-linux" ,util-linux))) + (propagated-inputs + `(("gambit-c" ,gambit-c) + ("zlib" ,zlib) + ("openssl" ,openssl) + ("sqlite" ,sqlite))) + (synopsis "Meta-dialect of Scheme with post-modern features") + (description "Gerbil is an opinionated dialect of Scheme designed for = Systems +Programming, with a state of the art macro and module system on top of the= Gambit +runtime. The macro system is based on quote-syntax, and provides the full= meta-syntactic +tower with a native implementation of syntax-case. It also provides a ful= l-blown module +system, similar to PLT Scheme's (sorry, Racket) modules. The main differe= nce from Racket +is that Gerbil modules are single instantiation, supporting high performan= ce ahead of +time compilation and compiled macros.") + (home-page "https://cons.io") + (license (list license:lgpl2.1 license:asl2.0)))) diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index c43d17219e..1ab4c329f8 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -13,7 +13,6 @@ ;;; Copyright =C2=A9 2018 Gabriel Hondet ;;; Copyright =C2=A9 2020 Pierre Neidhardt ;;; Copyright =C2=A9 2020 Brett Gilio -;;; Copyright =C2=A9 2020 Edouard Klein ;;; Copyright =C2=A9 2021 Philip McGrath ;;; Copyright =C2=A9 2021 Guillaume Le Vaillant ;;; @@ -919,106 +918,4 @@ manager/installer @code{gauche-package} which can dow= nload, compile, install and list gauche extension packages.") (license bsd-3))) =20 -(define-public gerbil - (package - (name "gerbil") - (version "0.16") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/vyzo/gerbil") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0vng0kxpnwsg8jbjdpyn4sdww36jz7zfpfbzayg9sdpz6bjxjy0f")))) - (arguments - `(#:phases - (modify-phases %standard-phases - (delete 'bootstrap) - (add-before 'configure 'chdir - (lambda _ - (chdir "src") - #t)) - (replace 'configure - (lambda* (#:key outputs inputs #:allow-other-keys) - (invoke "chmod" "755" "-R" ".") - ;; Otherwise fails when editing an r--r--r-- file. - (invoke "gsi-script" "configure" - "--prefix" (assoc-ref outputs "out") - "--with-gambit" (assoc-ref inputs "gambit-c")))) - (add-before 'patch-generated-file-shebangs 'fix-gxi-shebangs - (lambda _ - ;; Some .ss files refer to gxi using /usr/bin/env gxi - ;; and 'patch-generated-file-shebangs can't fix that - ;; because gxi has not been compiled yet. - ;; We know where gxi is going to end up so we - ;; Doctor Who our fix here before the problem - ;; happens towards the end of the build.sh script. - (let ((abs-srcdir (getcwd))) - (for-each - (lambda (f) - (substitute* f - (("#!/usr/bin/env gxi") - (string-append "#!" abs-srcdir "/../bin/gxi")))) - '("./gerbil/gxc" - "./lang/build.ss" - "./misc/http-perf/build.ss" - "./misc/rpc-perf/build.ss" - "./misc/scripts/docsnarf.ss" - "./misc/scripts/docstub.ss" - "./misc/scripts/docsyms.ss" - "./r7rs-large/build.ss" - "./release.ss" - "./std/build.ss" - "./std/run-tests.ss" - "./std/web/fastcgi-test.ss" - "./std/web/rack-test.ss" - "./tools/build.ss" - "./tutorial/httpd/build.ss" - "./tutorial/kvstore/build.ss" - "./tutorial/lang/build.ss" - "./tutorial/proxy/build-static.ss" - "./tutorial/proxy/build.ss"))) - #t)) - (replace - 'build - (lambda* - (#:key inputs #:allow-other-keys) - (setenv "HOME" (getcwd)) - (invoke - ;; The build script needs a tty or it'll crash on an ioctl - ;; trying to find the width of the terminal it's running on. - ;; Calling in script prevents that. - "script" - "-qefc" - "./build.sh"))) - (delete 'check) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin")) - (lib (string-append out "/lib"))) - (mkdir-p bin) - (mkdir-p lib) - (copy-recursively "../bin" bin) - (copy-recursively "../lib" lib))))))) - (native-inputs - `(("coreutils" ,coreutils) - ("util-linux" ,util-linux))) - (propagated-inputs - `(("gambit-c" ,gambit-c) - ("zlib" ,zlib) - ("openssl" ,openssl) - ("sqlite" ,sqlite))) - (build-system gnu-build-system) - (synopsis "Meta-dialect of Scheme with post-modern features") - (description "Gerbil is an opinionated dialect of Scheme designed for = Systems -Programming, with a state of the art macro and module system on top of the= Gambit -runtime. The macro system is based on quote-syntax, and provides the full= meta-syntactic -tower with a native implementation of syntax-case. It also provides a ful= l-blown module -system, similar to PLT Scheme's (sorry, Racket) modules. The main differe= nce from Racket -is that Gerbil modules are single instantiation, supporting high performan= ce ahead of -time compilation and compiled macros.") - (home-page "https://cons.io") - (license `(,lgpl2.1 ,asl2.0)))) + --=20 2.32.0