From patchwork Sun Apr 23 15:30:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristian Lein-Mathisen X-Patchwork-Id: 12452 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 6EB5727BBEA; Sun, 23 Apr 2023 16:30:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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 36A0F27BBE2 for ; Sun, 23 Apr 2023 16:30:33 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqbfA-00069t-HO; Sun, 23 Apr 2023 11:30:04 -0400 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 1pqbf9-00069l-Af for guix-patches@gnu.org; Sun, 23 Apr 2023 11:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqbf9-00056T-2A for guix-patches@gnu.org; Sun, 23 Apr 2023 11:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pqbf8-0003aI-KZ for guix-patches@gnu.org; Sun, 23 Apr 2023 11:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63037] [PATCH] gnu: chicken: chicken-srfi-18 with dependencies Resent-From: Kristian Lein-Mathisen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 23 Apr 2023 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63037 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63037@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168226378413728 (code B ref -1); Sun, 23 Apr 2023 15:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2023 15:29:44 +0000 Received: from localhost ([127.0.0.1]:46764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqbeq-0003ZM-6B for submit@debbugs.gnu.org; Sun, 23 Apr 2023 11:29:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:38906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqbep-0003ZE-1c for submit@debbugs.gnu.org; Sun, 23 Apr 2023 11:29:43 -0400 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 1pqbeo-00066V-Ly for guix-patches@gnu.org; Sun, 23 Apr 2023 11:29:42 -0400 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqbem-00050e-Pj for guix-patches@gnu.org; Sun, 23 Apr 2023 11:29:42 -0400 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1840ad6769fso555214fac.0 for ; Sun, 23 Apr 2023 08:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682263779; x=1684855779; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=JfVugFimnt9SUR1x67OMLnYrjPjod2Qh+KDicFWnO7w=; b=itFRCVfxFv/2fmco0LKE4b9CV1mwW5BBZctvUxjgXjmuZmqpDz/Fs1yvO7Hu+L9uUl Xhk2BYhrfGf7xYuJKYOhYadmZXv0IbrczsHeKa52O2oRACfEwEcwkBb7QW7st41/grcU 7Gq/hI6KZLADdu4HI9oCOZxCJM6DvBIZfg9+7hhOj7WuF9k4fk5WJLIv/1t8ut+jlbX1 V4qJu8+iw+S3SQMAbyTiC5BlkF7pBhkuyFfk5EiZPyhfXQf3zw91k0Pp79rW3kysN7Pp NBvJbV1sEmZgc39+KL4eLWyHAdcmiTMsfvKDh35EjeohYa7JnoLw04ot6AgRJp4ksBA3 3QQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682263779; x=1684855779; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JfVugFimnt9SUR1x67OMLnYrjPjod2Qh+KDicFWnO7w=; b=Xzd8O7w6e/VqR3PNYnN18cvuPJyeng4smFfe19c9jKyEPcqgTEuVxFyGi20Hn4zfSM +lAKsBilCAB3i4VEFH8ZWduCvbjN4zbG1nsPlPAqXxOpHb3CPCfWFqAd8XW/zTg+JUOE lXNxDSxCzI/7Qckf2Hv9oUftr7OaBcC+dGimmAAc9sQoamV5qGlXDIrqLmyoQU22njkj rxK/pjhnuEKQMTP6mgIytkG1X/SVxysDPnT/K/jEADfb5kJm4WL3Z0v1eqj2FS50amel qkkFdTQnQNWxQC86Qt4k8bWCPUkVOBk+41sdlwJwzhROziwh+1Kg3RIcw1JTN1SfArGm s/Pw== X-Gm-Message-State: AAQBX9cqoIK5zYxje3FMihjodzxiLbXscOf349UTBYGg3KOl75CEbXxC GeS+UmrY14mH5jA7YTZQO/8V6woOV4fMVL/xWLrj8RYDTow= X-Google-Smtp-Source: AKy350aAPh+JR/nJbFe/O2gF0dcMkyLhmcJBl12lavV35r2VTmd4EHcgd2W9edkyU6TA+K5b8pOkhuB3PfWjOS/l/Ac= X-Received: by 2002:aca:d845:0:b0:38e:b9ad:cd0f with SMTP id p66-20020acad845000000b0038eb9adcd0fmr1563515oig.0.1682263778969; Sun, 23 Apr 2023 08:29:38 -0700 (PDT) MIME-Version: 1.0 From: Kristian Lein-Mathisen Date: Sun, 23 Apr 2023 17:30:36 +0200 Message-ID: Received-SPF: pass client-ip=2001:4860:4864:20::35; envelope-from=kristianlein@gmail.com; helo=mail-oa1-x35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, Here is a small patch that adds the quite common "srfi-18" egg [1]. It adds multithreading support for CHICKEN Scheme. Please consider it for inclusion. Thanks, Kristian [1]: https://srfi.schemers.org/srfi-18/srfi-18.html From 4043b4a67ef65577ee5de73e831007f6140e569f Mon Sep 17 00:00:00 2001 From: Kristian Lein-Mathisen Date: Sun, 23 Apr 2023 17:16:38 +0200 Subject: [PATCH] gnu: chicken: add 2 eggs The srfi-18 egg is a quite common dependency in the CHICKCEN ecosystem. Here it is, along with its chicken-compile-file dependency. * gnu/packages/chicken.scm (chicken-srfi-18): add variables --- gnu/packages/chicken.scm | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/chicken.scm b/gnu/packages/chicken.scm index b87b8118f1..fe067fe687 100644 --- a/gnu/packages/chicken.scm +++ b/gnu/packages/chicken.scm @@ -77,6 +77,24 @@ (define-public chicken language standard, and includes many enhancements and extensions.") (license license:bsd-3))) +(define-public chicken-compile-file + (package + (name "chicken-compile-file") + (version "1.3") + (source (origin + (method url-fetch) + (uri (egg-uri "compile-file" version)) + (sha256 + (base32 + "1029i5ifr48vb3clvl8n50iq23rzc42szdcsl9320qmj1ksg9y93")))) + (build-system chicken-build-system) + (arguments `(#:egg-name "compile-file")) + (home-page "https://wiki.call-cc.org/egg/compile-file") + (synopsis "Programmatic compiler invocation") + (description "This egg provides a way to do on-the-fly compilation of +source code and load it into the running process.") + (license license:bsd-3))) + (define-public chicken-srfi-1 (package (name "chicken-srfi-1") @@ -156,6 +174,30 @@ (define-public chicken-srfi-14 (license (license:non-copyleft "http://wiki.call-cc.org/eggref/5/srfi-14#license")))) +(define-public chicken-srfi-18 + (package + (name "chicken-srfi-18") + (version "0.1.6") + (source (origin + (method url-fetch) + (uri (egg-uri "srfi-18" version)) + (sha256 + (base32 + "0v2pkdck0ji1wiqgg8sg4z6rbkj2qw4vy4b9lx0w0pmhlxqpg1xd")))) + (build-system chicken-build-system) + (arguments + `(#:egg-name "srfi-18")) + (native-inputs (list chicken-compile-file)) + (home-page "https://wiki.call-cc.org/egg/srfi-18") + (synopsis "A multithreading package, largely following SRFI-18") + (description "The threads implemented in CHICKEN are so called \"green\" +threads, based on first-class continuations. Native threads that map directly +to the threads provided by the operating system are not supported. The +advantage of this is that threads are very lightweight and somewhat larger +degree of determinism. The disadvantage is that execution of Scheme code on +multiple processor cores is not available.") + (license license:bsd-3))) + (define-public chicken-srfi-69 (package (name "chicken-srfi-69") base-commit: 5885e671646549d895ad26669deb3ac268cf9577 -- 2.39.2