From unknown Tue Jun 17 01:38:32 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH] gnu: Add guile-termios. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Jun 2022 10:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16550282742542 (code B ref -1); Sun, 12 Jun 2022 10:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jun 2022 10:04:34 +0000 Received: from localhost ([127.0.0.1]:54773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KSQ-0000ew-1n for submit@debbugs.gnu.org; Sun, 12 Jun 2022 06:04:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:55174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KSK-0000em-GC for submit@debbugs.gnu.org; Sun, 12 Jun 2022 06:04:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0KSI-0000iP-OA for guix-patches@gnu.org; Sun, 12 Jun 2022 06:04:27 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:60280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o0KSD-00060E-74 for guix-patches@gnu.org; Sun, 12 Jun 2022 06:04:26 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4LLVfV1Xkzz9sSB for ; Sun, 12 Jun 2022 12:04:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655028258; h=from:from: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; bh=xlPDjWNAIrGoDROOTZ5wOQ98CarE8CetkG0CGrub0nc=; b=ucDWDp9M2HctYB5f/TqI+1FY5ezT/LAMmhRjnzoPDnfO0jlywGtf4J8UMqeInOx4owO5Hi ZfPQK/D0b8co0tByaNE5GbPUoHLG3Q9DDKOgvd3Zw7CXaPPQudqdGfjtAOl5C8Pu5OZw1s VX6jzP197ybs7lFrWWgxXtT44BhMeJZN4GLZ3WPc0cUhmoI2aHBwp04zHL+71Tt7plb6sC Jg2RvATgmlycSwhCvgmBvbvJbBUyjMH9JCFvo1gxCc4bPPF7VfGPrREoxakKmh/IZqgyfC Y8ymEQB6p+b3q9PKDTdsgMI3Xg9wB3tweBGxYNoj1kGqvL2HYj64oBKshz4wJQ== From: Antero Mejr Date: Sun, 12 Jun 2022 10:04:04 +0000 Message-Id: <20220612100404.3388-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: qbgrj5bp4nczhayhe4jasqasj7xnczwf X-MBO-RS-ID: 8d5b8be8be01523ae74 Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=antero@mailbox.org; helo=mout-p-102.mailbox.org 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, 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/guile-xyz.scm (guile-termios): New variable. --- gnu/packages/guile-xyz.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c6f73a38e9..373a5b13f1 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -41,6 +41,7 @@ ;;; Copyright © 2021, 2022 Artyom V. Poptsov ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022 Zhu Zihao +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -5019,3 +5020,52 @@ (define-public lokke in two different guises.") ;; Dual license: LGPLv2.1+ or EPLv1.0+ at the user's option. (license (list license:lgpl2.1+ license:epl1.0))))) + +(define-public guile-termios + (package + (name "guile-termios") + (version "0.6.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-termios") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020p3c84z09wyyb6gfzj2x6q2rfmvas7c92fcm2hhg8z1q60sqkg")))) + (build-system gnu-build-system) + (arguments + (list #:tests? + #f + #:make-flags + #~(list (string-append "CC=" + #$(cc-for-target)) + (string-append "PREFIX=" + #$output)) + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "compile")))))) + (native-inputs (list guile-3.0)) + (home-page "https://github.com/ft/guile-termios") + (synopsis "POSIX termios interface for GNU Guile") + (description + "To query and change settings of serial devices on POSIX systems, the +termios API is used. GNU Guile doesn't have an interface for that built in. +This module implements this interface by use of Guile's dynamic FFI.") + (license license:bsd-2))) + +(define-public guile2.0-termios + (package + (inherit guile-termios) + (name "guile2.0-termios") + (native-inputs (list guile-2.0)))) + +(define-public guile2.2-termios + (package + (inherit guile-termios) + (name "guile2.2-termios") + (native-inputs (list guile-2.2)))) -- 2.36.1 From unknown Tue Jun 17 01:38:32 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH] gnu: Add guile-termios. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Jun 2022 15:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Antero Mejr , 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165504882915108 (code B ref 55922); Sun, 12 Jun 2022 15:48:02 +0000 Received: (at 55922) by debbugs.gnu.org; 12 Jun 2022 15:47:09 +0000 Received: from localhost ([127.0.0.1]:56370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Pnx-0003vb-Aa for submit@debbugs.gnu.org; Sun, 12 Jun 2022 11:47:09 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:37420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Pnr-0003vO-Mc for 55922@debbugs.gnu.org; Sun, 12 Jun 2022 11:47:07 -0400 Received: from [172.20.10.5] ([188.188.255.8]) by albert.telenet-ops.be with bizsmtp id iFn12700c0BeyFQ06Fn26Y; Sun, 12 Jun 2022 17:47:02 +0200 Message-ID: From: Maxime Devos Date: Sun, 12 Jun 2022 17:47:01 +0200 In-Reply-To: <20220612100404.3388-1-antero@mailbox.org> References: <20220612100404.3388-1-antero@mailbox.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-6wkTKsupxQdNA1UJgIH8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1655048822; bh=2agXhxLbV+6n2UXR59+H1h6/KBdMlgXO2yQB9lwO7EE=; h=Subject:From:To:Date:In-Reply-To:References; b=eQBsu0V7FIGekhbStT5sdzMQhi3szkd3UUz5mx/xIkX0ZlioVBbA7N7oue+8hkDLJ 6fj6TJfVCT3zdEB6Dxn8kBQ/AnyrHma3/DzCVG9+E01z589P6hAFDe5w6AFCfB9Bm5 nZr5RnX6VbAAnnZCjwg88n8i0sHRVrbGjf3WrWqrd9zwaxMTvQz4ASafGeZ45Bhhgs gO9RyiA6srFVv3wEYKI7QPQe1Q4qu0SpXnQ8bSQbYXRsl9dYzyszL+OOmPs5kTQi4z 3oC3RQ2II+xI9mymlAjHHkE0Oxx/mqSCdsE31Z3n0WCgNvMe4SGivuUP7EimP0dxMB pjlXSmc/AhKlA== X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-6wkTKsupxQdNA1UJgIH8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Antero Mejr via Guix-patches via schreef op zo 12-06-2022 om 10:04 [+0000]: > +=C2=A0=C2=A0=C2=A0=C2=A0 (list #:tests? > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #f When disabling tests, always document the reason. Also, no need for a separate line. Likewise for #:make-flags. Greetings, Maxime. --=-6wkTKsupxQdNA1UJgIH8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYqYKdRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vV6AP9LtfB3zPG6ijd64zAyLlgAyNRF WHh3TmCOpwfW5Em/twD+IGIphyW2DbPsU+j4OkOIaNTntcXxf7HubH0Zi79dLgM= =wcZe -----END PGP SIGNATURE----- --=-6wkTKsupxQdNA1UJgIH8-- From unknown Tue Jun 17 01:38:32 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH] gnu: Add guile-termios. References: <20220612100404.3388-1-antero@mailbox.org> In-Reply-To: <20220612100404.3388-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Jun 2022 22:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165507248228892 (code B ref 55922); Sun, 12 Jun 2022 22:22:02 +0000 Received: (at 55922) by debbugs.gnu.org; 12 Jun 2022 22:21:22 +0000 Received: from localhost ([127.0.0.1]:56622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0VxS-0007Vv-Ez for submit@debbugs.gnu.org; Sun, 12 Jun 2022 18:21:22 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:35034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0VxQ-0007Vb-7l for 55922@debbugs.gnu.org; Sun, 12 Jun 2022 18:21:21 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4LLq0l5Ms5z9sVt for <55922@debbugs.gnu.org>; Mon, 13 Jun 2022 00:21:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655072471; h=from:from: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; bh=zHBju3LjVlcd8+3YDq2HfXoaf/0q0tJUzA0zizJ3Yek=; b=C5O669TMaMCa6wwVDhnkyOfpgfNs4OJj0ZfuhcUWYw6pG3pQh5uqCF7V1TqjdUJGnx5NY0 rQC5nxAawP59n+tJp3EboSBd7W1PDivHAg4NTtlazKcEXHKg4w8G7TbHFvzTzgYKQOTNbs kJg2HdMm9gFZRUMxMZNOfFG5IFiwKkSUR5GYMW3IluNQVDIW+/mHLbX99C6BXfx+52524i 6DR6KTeRMsRSYDQSNrngcJhMNE4TEDAzI7U8SwEh93yJH0Y8hZrQGcYyKJylwwA+bXErRU jttf6AFt9g0b9fObnpAQEtma/NgwcWBIbkOhwtQmR+dIXQP3cepzndJ4eE2tXQ== From: Antero Mejr Date: Sun, 12 Jun 2022 22:21:05 +0000 Message-Id: <20220612222105.7257-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: t58n7g4nki5srctwqwbiykbowf35fjic X-MBO-RS-ID: 65e29c173b044587263 X-Rspamd-Queue-Id: 4LLq0l5Ms5z9sVt X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Thanks for the review. This improved patch has tests, a new guile test library, and man pages. About the line breaks on the original patch - it was styled with guix style. This patch is written differently but still had guix style applied. * gnu/packages/guile-xyz.scm (guile-termios): New variable. --- gnu/packages/guile-xyz.scm | 108 +++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c6f73a38e9..e1bb18056e 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -41,6 +41,7 @@ ;;; Copyright © 2021, 2022 Artyom V. Poptsov ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022 Zhu Zihao +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -83,6 +84,7 @@ (define-module (gnu packages guile-xyz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages hurd) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) @@ -5019,3 +5021,109 @@ (define-public lokke in two different guises.") ;; Dual license: LGPLv2.1+ or EPLv1.0+ at the user's option. (license (list license:lgpl2.1+ license:epl1.0))))) + +(define-public guile-termios + (package + (name "guile-termios") + (version "0.6.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-termios") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020p3c84z09wyyb6gfzj2x6q2rfmvas7c92fcm2hhg8z1q60sqkg")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "Makefile" + (("CC = cc") (string-append "CC=" + #$(cc-for-target))) + (("PREFIX = /usr/local") (string-append "PREFIX=" + #$output))))) + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "-C" "doc" "man") + (invoke "make" "install"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list guile-3.0 guile-tap pandoc perl perl-io-tty)) + (home-page "https://github.com/ft/guile-termios") + (synopsis "POSIX termios interface for GNU Guile") + (description + "To query and change settings of serial devices on POSIX systems, the +termios API is used. GNU Guile doesn't have an interface for that built in. +This module implements this interface by use of Guile's dynamic FFI.") + (license license:bsd-2))) + +(define-public guile2.0-termios + (package + (inherit guile-termios) + (name "guile2.0-termios") + (native-inputs (list guile-2.0)))) + +(define-public guile2.2-termios + (package + (inherit guile-termios) + (name "guile2.2-termios") + (native-inputs (list guile-2.2)))) + +(define-public guile-tap + (package + (name "guile-tap") + (version "0.4.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-tap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04ip5cbvsjjcicsri813f4711yh7db6fvc2px4788rl8p1iqvi6x")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "Makefile" + (("PREFIX = /usr/local") (string-append "PREFIX=" + #$output))))) + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "-C" "doc" "man") + (invoke "make" "install"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list guile-3.0 pandoc)) + (home-page "https://github.com/ft/guile-tap") + (synopsis "Guile test framework that emits TAP output") + (description + "guile-tap is a library for GNU Guile that implements a framework for +specifying test cases that emit output that adheres to the Test Anything +Protocol (TAP). It comes with an experimental harness (tap-harness).") + (license license:bsd-2))) + +(define-public guile2.0-tap + (package + (inherit guile-tap) + (name "guile2.0-tap") + (native-inputs (list guile-2.0)))) + +(define-public guile2.2-tap + (package + (inherit guile-tap) + (name "guile2.2-tap") + (native-inputs (list guile-2.2)))) -- 2.36.1 From unknown Tue Jun 17 01:38:32 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH] gnu: Add guile-termios. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jun 2022 21:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Antero Mejr Cc: 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165541416817970 (code B ref 55922); Thu, 16 Jun 2022 21:17:01 +0000 Received: (at 55922) by debbugs.gnu.org; 16 Jun 2022 21:16:08 +0000 Received: from localhost ([127.0.0.1]:43223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1wqV-0004fk-Tw for submit@debbugs.gnu.org; Thu, 16 Jun 2022 17:16:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1wqQ-0004f5-6c for 55922@debbugs.gnu.org; Thu, 16 Jun 2022 17:16:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1wqL-00017B-0g; Thu, 16 Jun 2022 17:15:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=8RAHi11h0BtiBCkW5bOfHV39AcRtIJeVf/U5QEsxoLU=; b=a+5Hof4Vt2z9VDvNjMfj wNZoa40ooN6Py22/C7q6X1Iev4hQk962ARBy5REnu4/YeYkyC9GBT78ucO5aeeMSN5fKApTxxQIzl maz/L5tU0/jZ9G9CFsnf6Gj4Slf3bJt3rjV6HnnT6lJsgOfDwStNchew8c2OSlpDk8/otNUhn7l6O Tn2FVq6kRnKDe3HJhpxXhv5JqOy1OBblZ3bHh07niiYWr7Ztll7VUjgHJIGpzGUiW4sXRYGDP6IlH 5l9CIr6SKjzh//REY1BC2D2ce7Yq4VVNbhOd+NJRH+Occ48qzh1YvW8ohztMy4cXZXocHjoZFUs1O k9ocZ9RJRvYTUg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54697 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1wqK-0001og-JO; Thu, 16 Jun 2022 17:15:56 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220612100404.3388-1-antero@mailbox.org> <20220612222105.7257-1-antero@mailbox.org> Date: Thu, 16 Jun 2022 23:15:55 +0200 In-Reply-To: <20220612222105.7257-1-antero@mailbox.org> (Antero Mejr's message of "Sun, 12 Jun 2022 22:21:05 +0000") Message-ID: <87ilp0joms.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Antero, Looks like we=E2=80=99re almost done; some comments inline below. Antero Mejr skribis: > * gnu/packages/guile-xyz.scm (guile-termios): New variable. Note that all the relevant variables should be listed here. > +(define-public guile2.0-termios > + (package > + (inherit guile-termios) > + (name "guile2.0-termios") > + (native-inputs (list guile-2.0)))) > + > +(define-public guile2.2-termios > + (package Unless there really is a need for them, you can drop them. It=E2=80=99s reasonable to assume 3.0 as the default for new code. > +(define-public guile-tap > + (package > + (name "guile-tap") > + (version "0.4.6") Could you make it a separate patch, and also remove the 2.0/2.2 variants? By convention we usually add one package per patch: https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html Thanks in advance! Ludo=E2=80=99. From unknown Tue Jun 17 01:38:32 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH 2/2] gnu: Add guile-tap. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jun 2022 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165541645621742 (code B ref 55922); Thu, 16 Jun 2022 21:55:02 +0000 Received: (at 55922) by debbugs.gnu.org; 16 Jun 2022 21:54:16 +0000 Received: from localhost ([127.0.0.1]:43291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRQ-0005ec-81 for submit@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:16 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:47564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRO-0005eI-3l for 55922@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:15 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4LPGCf1Jdbz9sQD for <55922@debbugs.gnu.org>; Thu, 16 Jun 2022 23:54:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655416446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3V23YSVIZ2wXExUbbh/flaIJ8L7Wg8TUq4jybLi+fqw=; b=QdmGerZaZifSNEpxpRQ6xKf0bienDGGgSinN8dmH138VIkV07JlrYGugyMeTBpX5PE8z3I cabIQzxUlN27SO03i3uhcj0KK23K7r7C7CIrBAHoqttIuKPK8lDCUxaCubG2xHyIcjTLYE 2fas3t+2MFH6n/9+G5mSPgHjRexhw0I0kGM6QdAfmLW7lfIDbmHd75gR+r7S7hQSZkSZHq X/fAGzvqlKTQTJpwd11g/bKFR4LQ5M0UdQEvEfRnEUH1TaTkkupcLI82YKH7wFavdyzKEi VvmgBhrcbCOrLaD12vIWaKOt3MUIlPxIM4mdEqEFsWZn92wNGZ3vc01nmEJ89A== From: Antero Mejr Date: Thu, 16 Jun 2022 21:53:56 +0000 Message-Id: <20220616215356.2831-2-antero@mailbox.org> In-Reply-To: <20220616215356.2831-1-antero@mailbox.org> References: <20220616215356.2831-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-META: po68b3a6yp3gfrhmbwbkir5tpqxpaph1 X-MBO-RS-ID: 39432df1dfa9adb44e3 X-Rspamd-Queue-Id: 4LPGCf1Jdbz9sQD X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/guile-xyz.scm (guile-tap): New variable. --- gnu/packages/guile-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 10065ff1da..7afc429d00 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -5063,3 +5063,43 @@ (define-public guile-termios termios API is used. GNU Guile doesn't have an interface for that built in. This module implements this interface by use of Guile's dynamic FFI.") (license license:bsd-2))) + +(define-public guile-tap + (package + (name "guile-tap") + (version "0.4.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-tap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04ip5cbvsjjcicsri813f4711yh7db6fvc2px4788rl8p1iqvi6x")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "Makefile" + (("PREFIX = /usr/local") (string-append "PREFIX=" + #$output))))) + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "-C" "doc" "man") + (invoke "make" "install"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list guile-3.0 pandoc)) + (home-page "https://github.com/ft/guile-tap") + (synopsis "Guile test framework that emits TAP output") + (description + "guile-tap is a library for GNU Guile that implements a framework for +specifying test cases that emit output that adheres to the Test Anything +Protocol (TAP). It comes with an experimental harness (tap-harness).") + (license license:bsd-2))) -- 2.36.1 From unknown Tue Jun 17 01:38:32 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH 1/2] gnu: Add guile-termios. References: <20220612100404.3388-1-antero@mailbox.org> In-Reply-To: <20220612100404.3388-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jun 2022 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165541646021753 (code B ref 55922); Thu, 16 Jun 2022 21:55:02 +0000 Received: (at 55922) by debbugs.gnu.org; 16 Jun 2022 21:54:20 +0000 Received: from localhost ([127.0.0.1]:43293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRT-0005en-IU for submit@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:19 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:47502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRN-0005eG-IX for 55922@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:15 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4LPGCd1b4yz9sSh for <55922@debbugs.gnu.org>; Thu, 16 Jun 2022 23:54:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655416445; h=from:from: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; bh=G+cQmEARDFSr4V7Kh+UmpIocShcc3Ajn0fFy8MuQVJE=; b=oqJvJ7su2kxzkDd96j6DEcqrP/bG7MkAvlDjSgOiHskQkHKzG1yOGaVIiRtd7sNap5R08q La6M774q4SQmTrIXOHygKAqaMXM0mazziZFQIQdVcWsL/TU1FYIH7FJvcafOGHy+GMJJZp PvK6MxaFSkDKhhFjJICgMQlZS0OAJY9y+CJThncjrcEr/79HOrXe8Zg3iF3YlPtITyELlb /hbMB+dUI5hHKf5st+zdyQyWTlP8dG2SDdKmFTV3IR1ud0pbw44TaPmdErChZQrypmcpZm Fv3xWTrvubOslVu1WxTimHEn+xtH8xZ+QQbJcN8Y17zR3uuYlFCJnhxqGn4WnA== From: Antero Mejr Date: Thu, 16 Jun 2022 21:53:55 +0000 Message-Id: <20220616215356.2831-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 656998bd0bee533d058 X-MBO-RS-META: t6iu83s5p97zdcjhzg1zm8rngg7t7tju X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/guile-xyz.scm (guile-termios): New variable. --- gnu/packages/guile-xyz.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c6f73a38e9..10065ff1da 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -41,6 +41,7 @@ ;;; Copyright © 2021, 2022 Artyom V. Poptsov ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022 Zhu Zihao +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -83,6 +84,7 @@ (define-module (gnu packages guile-xyz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages hurd) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) @@ -5019,3 +5021,45 @@ (define-public lokke in two different guises.") ;; Dual license: LGPLv2.1+ or EPLv1.0+ at the user's option. (license (list license:lgpl2.1+ license:epl1.0))))) + +(define-public guile-termios + (package + (name "guile-termios") + (version "0.6.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-termios") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020p3c84z09wyyb6gfzj2x6q2rfmvas7c92fcm2hhg8z1q60sqkg")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "Makefile" + (("CC = cc") (string-append "CC=" + #$(cc-for-target))) + (("PREFIX = /usr/local") (string-append "PREFIX=" + #$output))))) + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "-C" "doc" "man") + (invoke "make" "install"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list guile-3.0 guile-tap pandoc perl perl-io-tty)) + (home-page "https://github.com/ft/guile-termios") + (synopsis "POSIX termios interface for GNU Guile") + (description + "To query and change settings of serial devices on POSIX systems, the +termios API is used. GNU Guile doesn't have an interface for that built in. +This module implements this interface by use of Guile's dynamic FFI.") + (license license:bsd-2))) -- 2.36.1 From unknown Tue Jun 17 01:38:32 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Antero Mejr Subject: bug#55922: closed (Re: bug#55922: [PATCH] gnu: Add guile-termios.) Message-ID: References: <87v8szc8r1.fsf_-_@gnu.org> <20220612100404.3388-1-antero@mailbox.org> X-Gnu-PR-Message: they-closed 55922 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 55922@debbugs.gnu.org Date: Fri, 17 Jun 2022 20:54:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1655499243-3061-1" This is a multi-part message in MIME format... ------------=_1655499243-3061-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #55922: [PATCH] gnu: Add guile-termios. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 55922@debbugs.gnu.org. --=20 55922: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D55922 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1655499243-3061-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 55922-done) by debbugs.gnu.org; 17 Jun 2022 20:53:18 +0000 Received: from localhost ([127.0.0.1]:47071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2Ixx-0000lk-Kz for submit@debbugs.gnu.org; Fri, 17 Jun 2022 16:53:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2Ixv-0000lV-H5 for 55922-done@debbugs.gnu.org; Fri, 17 Jun 2022 16:53:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2Ixp-00026N-RJ; Fri, 17 Jun 2022 16:53:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=2RH9K/lm/+2Xd6bSolVCxX6fm8PVpnrq5aNsJ8ygeVo=; b=HiR+1L6fwwhMV06hRv2a 0tNSpfYuUWpyJ9PivYYp0za2LsavLQ1eyQPbx6+g5y72Nxcmi8WVHO0C+EWo6xOn4MABJlgAWHifR FaB/h5eKbob/U2KvbXPZwybv02ZjauNK66Z4WJHIWgKybfofEpyWKgLNzttJY/V8GcUTxAPxRUX1M sWP8YcZkuOxdVe/MTguZFWOMbXJQVWL0B3BzsIcF1VCAzKJPQiaDhx0qOY92xHtkHzxFYC2jujZf5 kCBZ5Nq9m+ig2vQ9zB5atKLkmlMZxeO5NAwz2PQvrbr++N5XfZS1r1s1Fpx8Ke6okzYA4rze/ohiN M2Oz9n1ZDY0QQw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:51808 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2Ixp-0007pz-F3; Fri, 17 Jun 2022 16:53:09 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Antero Mejr Subject: Re: bug#55922: [PATCH] gnu: Add guile-termios. References: <20220612100404.3388-1-antero@mailbox.org> <20220616215356.2831-1-antero@mailbox.org> Date: Fri, 17 Jun 2022 22:53:06 +0200 In-Reply-To: <20220616215356.2831-1-antero@mailbox.org> (Antero Mejr's message of "Thu, 16 Jun 2022 21:53:55 +0000") Message-ID: <87v8szc8r1.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55922-done Cc: 55922-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Antero Mejr skribis: > * gnu/packages/guile-xyz.scm (guile-termios): New variable. [...] > * gnu/packages/guile-xyz.scm (guile-tap): New variable. Applied both, but in reverse order (guile-tap first, since guile-termios depends on it.) Thanks! Ludo=E2=80=99. ------------=_1655499243-3061-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Jun 2022 10:04:34 +0000 Received: from localhost ([127.0.0.1]:54773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KSQ-0000ew-1n for submit@debbugs.gnu.org; Sun, 12 Jun 2022 06:04:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:55174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KSK-0000em-GC for submit@debbugs.gnu.org; Sun, 12 Jun 2022 06:04:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0KSI-0000iP-OA for guix-patches@gnu.org; Sun, 12 Jun 2022 06:04:27 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:60280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o0KSD-00060E-74 for guix-patches@gnu.org; Sun, 12 Jun 2022 06:04:26 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4LLVfV1Xkzz9sSB for ; Sun, 12 Jun 2022 12:04:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655028258; h=from:from: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; bh=xlPDjWNAIrGoDROOTZ5wOQ98CarE8CetkG0CGrub0nc=; b=ucDWDp9M2HctYB5f/TqI+1FY5ezT/LAMmhRjnzoPDnfO0jlywGtf4J8UMqeInOx4owO5Hi ZfPQK/D0b8co0tByaNE5GbPUoHLG3Q9DDKOgvd3Zw7CXaPPQudqdGfjtAOl5C8Pu5OZw1s VX6jzP197ybs7lFrWWgxXtT44BhMeJZN4GLZ3WPc0cUhmoI2aHBwp04zHL+71Tt7plb6sC Jg2RvATgmlycSwhCvgmBvbvJbBUyjMH9JCFvo1gxCc4bPPF7VfGPrREoxakKmh/IZqgyfC Y8ymEQB6p+b3q9PKDTdsgMI3Xg9wB3tweBGxYNoj1kGqvL2HYj64oBKshz4wJQ== From: Antero Mejr To: guix-patches@gnu.org Subject: [PATCH] gnu: Add guile-termios. Date: Sun, 12 Jun 2022 10:04:04 +0000 Message-Id: <20220612100404.3388-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: qbgrj5bp4nczhayhe4jasqasj7xnczwf X-MBO-RS-ID: 8d5b8be8be01523ae74 Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=antero@mailbox.org; helo=mout-p-102.mailbox.org 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, 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/guile-xyz.scm (guile-termios): New variable. --- gnu/packages/guile-xyz.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c6f73a38e9..373a5b13f1 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -41,6 +41,7 @@ ;;; Copyright © 2021, 2022 Artyom V. Poptsov ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022 Zhu Zihao +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -5019,3 +5020,52 @@ (define-public lokke in two different guises.") ;; Dual license: LGPLv2.1+ or EPLv1.0+ at the user's option. (license (list license:lgpl2.1+ license:epl1.0))))) + +(define-public guile-termios + (package + (name "guile-termios") + (version "0.6.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-termios") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020p3c84z09wyyb6gfzj2x6q2rfmvas7c92fcm2hhg8z1q60sqkg")))) + (build-system gnu-build-system) + (arguments + (list #:tests? + #f + #:make-flags + #~(list (string-append "CC=" + #$(cc-for-target)) + (string-append "PREFIX=" + #$output)) + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "compile")))))) + (native-inputs (list guile-3.0)) + (home-page "https://github.com/ft/guile-termios") + (synopsis "POSIX termios interface for GNU Guile") + (description + "To query and change settings of serial devices on POSIX systems, the +termios API is used. GNU Guile doesn't have an interface for that built in. +This module implements this interface by use of Guile's dynamic FFI.") + (license license:bsd-2))) + +(define-public guile2.0-termios + (package + (inherit guile-termios) + (name "guile2.0-termios") + (native-inputs (list guile-2.0)))) + +(define-public guile2.2-termios + (package + (inherit guile-termios) + (name "guile2.2-termios") + (native-inputs (list guile-2.2)))) -- 2.36.1 ------------=_1655499243-3061-1--