From patchwork Tue Sep 10 16:20:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 67855 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 E594527BBE2; Tue, 10 Sep 2024 17:22:49 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 F226827BBE9 for ; Tue, 10 Sep 2024 17:22:47 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so3cy-0002Wn-5B; Tue, 10 Sep 2024 12:22: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 1so3cr-0002QI-BZ for guix-patches@gnu.org; Tue, 10 Sep 2024 12:21:58 -0400 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 1so3cr-0004uv-1u for guix-patches@gnu.org; Tue, 10 Sep 2024 12:21:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=GsVxUFPVPvrBjyO0TMj0E41aiyKsVHSAqjTnedd8JOQ=; b=YmR+vragMeHtdelTbf5Woacy5+/ihdCRSitRlKQel9abgtc2z9HILZzH/qhH9lDiU8Sb2eqpeIBx62tey89/0OXS0Zv+LBYLrZkbk/7OBH08BbR9OrbJfvMIFxvLNRafGJbENNrBiXpcX8t8qT91Wm+XMzcNhJtivrNHk6TWqg75/UoSNd0w+DGQp1EnaJCW20WSVqmyfWP2c1hCGikL7uXll2diYC9wkBQC8e9CRdwn2CKiu5eR0q2pMxhYPolHdZlJYXkIvHXJsHGmYC1t8OXXfIZk0RZpHDSIhVYyk9+WoEoJOyZ/SQxaJ3OC4PxansX1bbmoJ1YyvPvHgM2zVA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1so3cv-0004yk-Su; Tue, 10 Sep 2024 12:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73170] [PATCH] gnu: Add cl-async-process. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: glv@posteo.net, cox.katherine.e+guix@gmail.com, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Tue, 10 Sep 2024 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73170 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73170@debbugs.gnu.org Cc: jgart , Guillaume Le Vaillant , Katherine Cox-Buday , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Guillaume Le Vaillant , Katherine Cox-Buday , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by submit@debbugs.gnu.org id=B.172598528319079 (code B ref -1); Tue, 10 Sep 2024 16:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2024 16:21:23 +0000 Received: from localhost ([127.0.0.1]:36881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so3cI-0004xe-M2 for submit@debbugs.gnu.org; Tue, 10 Sep 2024 12:21:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:43302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so3cG-0004xW-GT for submit@debbugs.gnu.org; Tue, 10 Sep 2024 12:21:21 -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 1so3cA-0001DB-HB for guix-patches@gnu.org; Tue, 10 Sep 2024 12:21:14 -0400 Received: from mx2.dismail.de ([159.69.191.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1so3c5-0004gU-Vb for guix-patches@gnu.org; Tue, 10 Sep 2024 12:21:13 -0400 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 59be9a58 for ; Tue, 10 Sep 2024 18:21:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=x661ykv+e3Mx9V3o6cG3w7Fx2fVCNbW1i0NTJ95CIuU=; b= SO98ybtwI4g8W9TfZ0ZReU2av5frN0uQPxtOj6LXV0dMXTQ6eoHzGHIzeIwCHTVO SOYVuNy1XoAxzMP67K7OG2x8QLLB0B+nfV763iNmy+7GQdTLjsrRZQUpE+CWEROK 57hMKV+dmD132HTbFVeTJ/1XBSu9xRvLUaPATAGAzzaQqe97EeSVTn9zLY0aBJz8 02awY83y/9eqPc2xYK47TgEBxLtdIFJrzeKwne344ZhDqMbXsuTExs/DK5JjibB5 A8qULy3SM6aIbXvPJ/PMsM7tzzfW3jdEQwt5BrZQdSEkSQSj0dlnb/ftdkuD7NOj HW6Wiq/W5sEd/d3+tUfVTQ== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id e49c5f76 for ; Tue, 10 Sep 2024 18:21:05 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id f05a83ab for ; Tue, 10 Sep 2024 18:21:04 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 4a99b68f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 10 Sep 2024 18:20:59 +0200 (CEST) Date: Tue, 10 Sep 2024 11:20:44 -0500 Message-ID: <21b927da240259b41c3ceee1a246019095509740.1725985244.git.jgart@dismail.de> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Received-SPF: pass client-ip=159.69.191.136; envelope-from=jgart@dismail.de; helo=mx2.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart 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/lisp-xyz.scm (cl-async-process, ecl-async-process, sbcl-async-process): New variables. Change-Id: I4e4707ffa30b6fcd1267e681f71a874c790746f4 --- gnu/packages/lisp-xyz.scm | 75 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) base-commit: f977cb2b609f7122db2cf026cac5ab9d6d44a206 diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 02eb3514ee..eaaaa17f99 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -81,6 +81,7 @@ (define-module (gnu packages lisp-xyz) #:use-module (guix build-system trivial) #:use-module (guix build-system emacs) #:use-module (gnu packages audio) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages c) #:use-module (gnu packages compression) @@ -2850,6 +2851,80 @@ (define-public cl-cells (define-public ecl-cells (sbcl-package->ecl-package sbcl-cells)) +(define (async-process-origin commit name version) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lem-project/async-process") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1m2sfgfg6c0gqqy1pqsahsiw3j25y473mfw7sx0akkqbhwhm7mjb")) + (modules '((guix build utils))) + (snippet + ;; Delete precompiled artifacts. + `(begin + (for-each delete-file-recursively + (list "static" + "static_old0001-819cbf6")))))) + +(define async-process-c-sources + (let ((commit "9690530fc92b59636d9f17d821afa7697e7c8ca4") + (revision "0")) + (package + (name "async-process-c-sources") + (version (git-version "0.0.1" revision commit)) + (source (async-process-origin commit name version)) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'bootstrap + (lambda _ + (invoke "libtoolize") + (invoke "aclocal") + (invoke "autoheader") + (invoke "automake" "-a") + (invoke "autoconf")))))) + (native-inputs (list autoconf automake libtool)) + (home-page "https://github.com/lem-project/async-process") + (synopsis "Asynchronous process execution for Common Lisp") + (description "This library provides an asynchronous process +execution mechanism for Common Lisp.") + (license license:expat)))) + +(define-public sbcl-async-process + (let ((commit "9690530fc92b59636d9f17d821afa7697e7c8ca4") + (revision "0")) + (package + (name "sbcl-async-process") + (version (git-version "0.0.1" revision commit)) + (source (async-process-origin commit name version)) + (build-system asdf-build-system/sbcl) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/async-process.lisp" + (("libasyncprocess\\.so") + (search-input-file inputs + "/lib/async-process/libasyncprocess.so")))))))) + (inputs (list async-process-c-sources sbcl-cffi)) + (home-page "https://github.com/lem-project/async-process") + (synopsis "Asynchronous process execution for Common Lisp") + (description "This library provides an asynchronous process +execution mechanism for Common Lisp.") + (license license:expat)))) + +(define-public cl-async-process + (sbcl-package->cl-source-package sbcl-async-process)) + +(define-public ecl-async-process + (sbcl-package->ecl-package sbcl-async-process)) + (define-public sbcl-cephes (let ((commit "d87146fa38c8425ffb5fe425eee5eb3e818bacd4") (revision "0"))