diff mbox series

[bug#65109] services: syncthing: Use the new command line syntax.

Message ID YQBPR0101MB515126FA0A061DDEDFFC811C820EA@YQBPR0101MB5151.CANPRD01.PROD.OUTLOOK.COM
State New
Headers show
Series [bug#65109] services: syncthing: Use the new command line syntax. | expand

Commit Message

Justin Veilleux Aug. 5, 2023, 11:22 p.m. UTC
Syncthing updated its command line interface to use --flag instead of -flag.

Comments

Justin Veilleux Aug. 8, 2023, 2:42 p.m. UTC | #1
Please note that syncthing-service-type is currently broken because of this.
Ludovic Courtès Aug. 10, 2023, 10:50 p.m. UTC | #2
Hi,

Justin Veilleux <justin.veilleux@umontreal.ca> skribis:

> From 07f90bb908b173f726309d8256f061a6fdad4710 Mon Sep 17 00:00:00 2001
> From: terramorpha <terramorpha@cock.li>
> Date: Thu, 13 Jul 2023 16:16:51 -0400
> Subject: [PATCH] services: syncthing: Use the new command line syntax.
>
> * gnu/services/syncthing.scm (syncthing-shepherd-service): Use the new command line syntax.

Applied, thanks!

Ludo’.
diff mbox series

Patch

From 07f90bb908b173f726309d8256f061a6fdad4710 Mon Sep 17 00:00:00 2001
From: terramorpha <terramorpha@cock.li>
Date: Thu, 13 Jul 2023 16:16:51 -0400
Subject: [PATCH] services: syncthing: Use the new command line syntax.

* gnu/services/syncthing.scm (syncthing-shepherd-service): Use the new command line syntax.
---
 gnu/services/syncthing.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/services/syncthing.scm b/gnu/services/syncthing.scm
index 7c3d5b027d..c1a0cdd81f 100644
--- a/gnu/services/syncthing.scm
+++ b/gnu/services/syncthing.scm
@@ -1,5 +1,6 @@ 
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2021 Oleg Pykhalov <go.wigust@gmail.com>
+;;; Copyright © 2023 Justin Veilleux <terramorpha@cock.li>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -60,9 +61,9 @@  (define syncthing-shepherd-service
        (requirement '(loopback))
        (start #~(make-forkexec-constructor
                  (append (list (string-append #$syncthing "/bin/syncthing")
-                               "-no-browser"
-                               "-no-restart"
-                               (string-append "-logflags=" (number->string #$logflags)))
+                               "--no-browser"
+                               "--no-restart"
+                               (string-append "--logflags=" (number->string #$logflags)))
                          '#$arguments)
                  #:user #$user
                  #:group #$group
-- 
2.39.2