From unknown Mon Jun 16 23:48:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55876] [PATCH] gnu: Add remserial Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Jun 2022 18:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55876 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55876@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16548008291631 (code B ref -1); Thu, 09 Jun 2022 18:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jun 2022 18:53:49 +0000 Received: from localhost ([127.0.0.1]:47753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNHr-0000Q9-UT for submit@debbugs.gnu.org; Thu, 09 Jun 2022 14:53:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:57592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNHq-0000Q1-33 for submit@debbugs.gnu.org; Thu, 09 Jun 2022 14:53:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzNHp-0002oH-RC for guix-patches@gnu.org; Thu, 09 Jun 2022 14:53:41 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:34523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzNHm-0000oI-Ic for guix-patches@gnu.org; Thu, 09 Jun 2022 14:53:41 -0400 Received: by mail-lj1-x22f.google.com with SMTP id e4so11254224ljl.1 for ; Thu, 09 Jun 2022 11:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=r6Nsk+QuabfioPGcWcMmoeZZD5xt35LbA7tq+b4D71A=; b=etF6PVTfi0xVqGy1lWFSvSjl/NatKS+fG12DHmRdEYbqOgDhbBQiokBEPGL24q/JEM anvCLtNmqrnLm9v8iQnUW/K/bdGyftEz4mGVeMnEtgO1X3/GM9QCc5DQZu7x70DpXkh1 BvoWqR/+MRHsrrME8TKkmVcFrhdsqEAgk2ywryKB8DPOvYvKut39w0VmG7aTCrhdG9FE 56qVCn2i5e7c2rhrUnC2vQQ68mi0Qx1CLNORLOyi4k8uygavtQlM6UiWUwmsRHUM9MKr V9namHCmBXFZJ1wF8lzNUUAfw925niF0etMB8MlhkTmVI6h8ogUTxHAa0a2umzTL105v HZvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=r6Nsk+QuabfioPGcWcMmoeZZD5xt35LbA7tq+b4D71A=; b=gNbEgJHQsXJ/e31OQv/niIbCykZLtEwHS8ZoyB2ZJ7a/QpEQYr0wcB1mvvPtgJL6r4 gr9oj1MtocX3EovIWy19quLX9oE+0zgHXdJPicXDgJ6XAzOWzF3DUqhlFrGwW7YhrISx CoKIIWNGHao0pykM7JKacJQ7o1VB4msI2T/8HUIQHHCdHJP8/t4259Woi9LUnc5A0+qk 106RFOVAtA3/Fwd0odjrvHNoZlC0edlYVDdQiLpi84q/mXb/wyeFcUrhKGQhTKSOgnx1 7SmMEFPBDMQGJmlk7rw/tNTEUklUNjSB+3iwtlH9+MBryDRupo+DQ4E3f9XZo1G2h5SL AVjQ== X-Gm-Message-State: AOAM530K7D3QfvHPFnikY1YT+hnB4XjbaBm/N851psIqePVGsdqAkfag r4wWm4vBWkjlzG/Z6O2CLxrfidWdQnE= X-Google-Smtp-Source: ABdhPJzGdZ454Vu/XW2mbs8D0RsebxhpK+jRdSHaxGzju1CSFGQuqqqJT2YvFHX/8i8n5uG/glHVkg== X-Received: by 2002:a2e:b0c6:0:b0:255:7c46:16b7 with SMTP id g6-20020a2eb0c6000000b002557c4616b7mr18915056ljl.383.1654800816056; Thu, 09 Jun 2022 11:53:36 -0700 (PDT) Received: from elephant ([5.164.222.47]) by smtp.gmail.com with ESMTPSA id 7-20020a2eb947000000b00255abe7600esm1232029ljs.61.2022.06.09.11.53.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 11:53:35 -0700 (PDT) From: "Artyom V. Poptsov" Date: Thu, 09 Jun 2022 21:53:30 +0300 Message-ID: <87y1y5y8gl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x22f.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, 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-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 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, this patch adds 'remserial'. [1] - Artyom References: 1. "Communications bridge between TCP/IP and a serial port" http://lpccomp.bc.ca/remserial/ --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-remserial.patch Content-Transfer-Encoding: quoted-printable From=200f1b94b57eda653176429b183f3f30de9c0d38d3 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 9 Jun 2022 21:50:25 +0300 Subject: [PATCH] gnu: Add remserial * gnu/packages/linux.scm (remserial): New variable. =2D-- gnu/packages/linux.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index dacb29a6ac..006848aabd 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9263,3 +9263,64 @@ libraries are found or why they cannot be located.") gestures you make on your touchpad or touchscreen into visible actions in = your desktop.") (license license:gpl3+))) + +(define-public remserial + (package + (name "remserial") + (version "1.4") + (source (origin + (method url-fetch) + (uri (list (string-append + "http://lpccomp.bc.ca/remserial/remserial-" vers= ion + ".tar.gz") + ;; XXX: 'guix build' returns 405 "Method Not Allo= wed" + ;; for the official URL although 'guix download' + ;; fetches the file without any problems. Let's = use + ;; the version from the Internet Archive for now. + (string-append + "https://web.archive.org/web/20220406152331/" + "http://lpccomp.bc.ca/remserial/remserial-" vers= ion + ".tar.gz"))) + (sha256 + (base32 + "0jhi73pcnmvrg5zvhwc60gynp0c3r5z3fvi50vpv37smyibn55fn")))) + (build-system gnu-build-system) + (native-inputs (list linux-libre-headers)) + (arguments + (list #:make-flags + #~(list (string-append "CC=3D" #$(cc-for-target)) + "CFLAGS=3D-D_XOPEN_SOURCE=3D500") + #:tests? + #f ;no tests. + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-dir (string-append out "/bin"))) + (install-file "remserial" bin-dir)) #t))))) + (home-page "http://lpccomp.bc.ca/remserial/") + (synopsis "Communications bridge between TCP/IP and a serial port") + (description + "The remserial program acts as a communications bridge +between a TCP/IP network port and a Linux device such as a serial port. A= ny +character-oriented Linux @file{/dev} device will work. + +The program can also use pseudo-ttys as the device. A pseudo-tty is like a +serial port in that it has a @file{/dev} entry that can be opened by a pro= gram +that expects a serial port device, except that instead of belonging to a +physical serial device, the data can be intercepted by another program. T= he +remserial program uses this to connect a network port to the +\"master\" (programming) side of the pseudo-tty allowing the device +driver (slave) side to be used by some program expecting a serial port. + +The program can operate as a server accepting network connections from oth= er +machines, or as a client, connecting to remote machine that is running the +remserial program or some other program that accepts a raw network connect= ion. +The network connection passes data as-is, there is no control protocol over +the network socket. + +Multiple copies of the program can run on the same computer at the same ti= me +assuming each is using a different network port and device.") + (license license:gpl2+))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmKiQasACgkQ6cWi2QiY oC/djwf/XkndqnAL3fXoxu97mF3/WyqG045Ou1ccSGk59Z4AUcxhCINQau08SZdw 7qo0atxOzxZ7e3RuiYUv0txbEYzPbE9m0QMkarHhv6QnaoekJLHnTMVDIPmqj/tV HQt12MPMhDmKh3MbFJSshjjwqQ6J3U/vz9lr5IJcHe7eGPt3M4L9K4CPMEBqjm9H O1bVyIh29jz3vWoNRMTRFsQodPk68tLGcvphA5A+W91Z8QX7BTYPORhUFxWLiEXP FIe+870UWRENuOhFCja1+LP6IRzAR/pRsSMA9MZ5Dhuxl1/qgs5FV2AzMBdDoIji kG5uXeFmBwMIub8ePsUXzvlFLX45AA== =1IZc -----END PGP SIGNATURE----- --==-=-=--