From patchwork Mon Mar 4 19:32:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: TakeV X-Patchwork-Id: 61339 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 174DF27BBEA; Mon, 4 Mar 2024 21:04:41 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C87DA27BBE9 for ; Mon, 4 Mar 2024 21:04:39 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhFU0-0003aT-F2; Mon, 04 Mar 2024 16:04:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhE45-00031m-3l for guix-patches@gnu.org; Mon, 04 Mar 2024 14:33:33 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhE44-0005HN-Ra for guix-patches@gnu.org; Mon, 04 Mar 2024 14:33:32 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhE4Y-0007vW-Ie for guix-patches@gnu.org; Mon, 04 Mar 2024 14:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69552] [PATCH 1/2] gnu: Add cyclone-bootstrap. Resent-From: TakeV Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Mar 2024 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69552 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69552@debbugs.gnu.org Cc: TakeV Received: via spool by 69552-submit@debbugs.gnu.org id=B69552.170958083030436 (code B ref 69552); Mon, 04 Mar 2024 19:34:02 +0000 Received: (at 69552) by debbugs.gnu.org; 4 Mar 2024 19:33:50 +0000 Received: from localhost ([127.0.0.1]:44916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhE4M-0007up-5I for submit@debbugs.gnu.org; Mon, 04 Mar 2024 14:33:50 -0500 Received: from layka.disroot.org ([178.21.23.139]:54896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhE4J-0007uh-MH for 69552@debbugs.gnu.org; Mon, 04 Mar 2024 14:33:48 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6D22240D80; Mon, 4 Mar 2024 20:33:17 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lmvdGWUlkVmo; Mon, 4 Mar 2024 20:33:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1709580796; bh=Mr/SnxRMYGBeyhaA+NG732GtOJ3c0s3pfXIShx1XPrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=eyvWJd0pmTVeB4rAf73sqQsL8lQTZPGubo713vT4BXptz02NwZ8ZXfi0WzPF+RVSP cwyiEQ2mKVyuBj3RXW5Y7I8csFf28pU90/a5ipyQdnrjAMWwsmW9PAYI7H8YFZUCGJ ftbpH/HXZErA/BepKLmTR3sM9rVgjeH3MRcYLQjLbcG11uXksDG6CPyVQSf2rCtB/K lJ6XfLtaFcsIWTxDUhM+MPjbiSXYIKdK0wHNYT417juMT+dVGerLDI1l9+27kLEP2Z A4tysL817HN6/CYu5urkymlaUElxSjujBdwgAU+6BH1NzGnuP0QNre6+3+x/gMSi/2 uyZ2acZ5EXkVA== Date: Mon, 4 Mar 2024 14:32:56 -0500 Message-ID: <2d510059d5d61a3cde755399cfc79b494090d25f.1709580311.git.takev@disroot.org> In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 04 Mar 2024 16:04:21 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: TakeV X-ACL-Warn: , TakeV via Guix-patches X-Patchwork-Original-From: TakeV via Guix-patches via From: TakeV Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/scheme.scm (cyclone-bootstrap): New variable. Change-Id: I85d37ebc48882d4b830ef34851ae6d37ecf2e6e5 --- gnu/packages/scheme.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index ad06d7db06..7931ac1cc1 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2023 Andrew Whatson ;;; Copyright © 2023 Juliana Sims ;;; Copyright © 2023 Maxim Cournoyer +;;; Copyright © 2024 TakeV ;;; ;;; This file is part of GNU Guix. ;;; @@ -59,6 +60,7 @@ (define-module (gnu packages scheme) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages c) #:use-module (gnu packages compression) #:use-module (gnu packages databases) #:use-module (gnu packages emacs) @@ -1276,3 +1278,35 @@ (define-public stklos Machine. STklos can also be compiled as a library and embedded in an application.") (license gpl2+))) + +;; cyclone is self-hosted. To build it, we require the bootstrapped compiler. +(define cyclone-bootstrap + (package + (name "cyclone-bootstrap") + (version "0.36.0") + ;; TODO Use system's libtommath after + ;; https://github.com/justinethier/cyclone/issues/458 is resolved + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/justinethier/cyclone-bootstrap.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fv0mnrn5shbx77383f4mbkvc4i9yyj1bjm3dfyhipnaqapbhqpi")))) + (inputs (list ck)) + (build-system gnu-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (delete 'configure)) + #:test-target "test" + #:make-flags #~(list "CC=gcc" + (string-append "PREFIX=" + #$output)))) + (home-page "https://github.com/justinethier/cyclone-bootstrap") + (synopsis "Install Cyclone Scheme on your machine.") + (description "Bootstrap the generate the cyclone scheme compiler") + (license expat))) +