unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39457] Fix baud-rate option in inputattach-service
       [not found] <87r1z7o93n.fsf.ref@yahoo.de>
@ 2020-02-06 18:37 ` Tim Gesthuizen via Guix-patches via
  2020-02-07  3:54   ` bug#39457: " 宋文武
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Gesthuizen via Guix-patches via @ 2020-02-06 18:37 UTC (permalink / raw)
  To: 39457; +Cc: Raghav Gururajan

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

Hi,

the "baud-rate" option for inputattach-service is broken, the
inputattach program expects the option to be named just "--baud".
The attached patch fixes the issue.

Just out of interest: Should we stick in Guix to the option used by the
program or stick with the old name?
I would like to keep the "baud-rate" name as it is the thing the
parameter configures: The baud-rate for the connection.

Tim.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-services-inputattach-Fix-broken-baud-rate-option.patch --]
[-- Type: text/x-patch, Size: 1037 bytes --]

From 223608191ba3587b1e9f1e1257d482dc89c59709 Mon Sep 17 00:00:00 2001
From: Tim Gesthuizen <tim.gesthuizen@yahoo.de>
Date: Thu, 6 Feb 2020 19:26:03 +0100
Subject: [PATCH] services: inputattach: Fix broken baud rate option

* gnu/services/desktop.scm (inputattach-shepherd-service): Use "--baud" for
  setting the baud-rate.
---
 gnu/services/desktop.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 9dcdf38be1..1294d748ac 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -1070,7 +1070,7 @@ as expected.")))
   (match-lambda
     (($ <inputattach-configuration> type device baud-rate log-file)
      (let ((args (append (if baud-rate
-                             (list "--baud-rate" (number->string baud-rate))
+                             (list "--baud" (number->string baud-rate))
                              '())
                          (list (string-append "--" type)
                                device))))
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#39457: Fix baud-rate option in inputattach-service
  2020-02-06 18:37 ` [bug#39457] Fix baud-rate option in inputattach-service Tim Gesthuizen via Guix-patches via
@ 2020-02-07  3:54   ` 宋文武
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 @ 2020-02-07  3:54 UTC (permalink / raw)
  To: Tim Gesthuizen; +Cc: Raghav Gururajan, 39457-done

Tim Gesthuizen <tim.gesthuizen@yahoo.de> writes:

> Hi,
>
> the "baud-rate" option for inputattach-service is broken, the
> inputattach program expects the option to be named just "--baud".
> The attached patch fixes the issue.

Pushed, thank you!

>
> Just out of interest: Should we stick in Guix to the option used by the
> program or stick with the old name?
> I would like to keep the "baud-rate" name as it is the thing the
> parameter configures: The baud-rate for the connection.
>

I think both are fine, as we document it in our info manual.

:)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-07  3:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87r1z7o93n.fsf.ref@yahoo.de>
2020-02-06 18:37 ` [bug#39457] Fix baud-rate option in inputattach-service Tim Gesthuizen via Guix-patches via
2020-02-07  3:54   ` bug#39457: " 宋文武

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).