* [bug#65066] [PATCH 0/2] Update syncthing
@ 2023-08-05 8:17 Timotej Lazar
2023-08-05 8:20 ` [bug#65066] [PATCH 1/2] gnu: syncthing: Update to 1.23.6 Timotej Lazar
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Timotej Lazar @ 2023-08-05 8:17 UTC (permalink / raw)
To: 65066; +Cc: Timotej Lazar
Hi,
this updates syncthing to latest version and switches to new package
style. I was able to build and run the sole dependent syncthing-gtk.
Thanks!
Timotej Lazar (2):
gnu: syncthing: Update to 1.23.6.
gnu: syncthing: Use new package style.
gnu/packages/syncthing.scm | 113 +++++++++++++++++--------------------
1 file changed, 51 insertions(+), 62 deletions(-)
base-commit: 17fadbb5ea3b35f962ab1bcd5b8cf4e1d699eb7e
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#65066] [PATCH 1/2] gnu: syncthing: Update to 1.23.6.
2023-08-05 8:17 [bug#65066] [PATCH 0/2] Update syncthing Timotej Lazar
@ 2023-08-05 8:20 ` Timotej Lazar
2023-08-05 8:20 ` [bug#65066] [PATCH 2/2] gnu: syncthing: Use new package style Timotej Lazar
2023-08-21 21:17 ` bug#65066: [PATCH 0/2] Update syncthing Ludovic Courtès
2 siblings, 0 replies; 4+ messages in thread
From: Timotej Lazar @ 2023-08-05 8:20 UTC (permalink / raw)
To: 65066; +Cc: Timotej Lazar
* gnu/packages/syncthing.scm (syncthing): Update to 1.23.6.
---
gnu/packages/syncthing.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm
index dd54100ce6..6ae8016491 100644
--- a/gnu/packages/syncthing.scm
+++ b/gnu/packages/syncthing.scm
@@ -46,7 +46,7 @@ (define-module (gnu packages syncthing)
(define-public syncthing
(package
(name "syncthing")
- (version "1.23.4")
+ (version "1.23.6")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/syncthing/syncthing"
@@ -54,7 +54,7 @@ (define-public syncthing
"/syncthing-source-v" version ".tar.gz"))
(sha256
(base32
- "1yi9adlp30myizlmv7a118cwrm6w1qfv09b0z7x1b7n4i8pqi8h6"))))
+ "03myinspq61aiis29mq0xjigj5rh5jd8m0d9xakf43vi7pqgwjbc"))))
(build-system go-build-system)
;; The primary Syncthing executable goes to "out", while the auxiliary
;; server programs and utility tools go to "utils". This reduces the size
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#65066] [PATCH 2/2] gnu: syncthing: Use new package style.
2023-08-05 8:17 [bug#65066] [PATCH 0/2] Update syncthing Timotej Lazar
2023-08-05 8:20 ` [bug#65066] [PATCH 1/2] gnu: syncthing: Update to 1.23.6 Timotej Lazar
@ 2023-08-05 8:20 ` Timotej Lazar
2023-08-21 21:17 ` bug#65066: [PATCH 0/2] Update syncthing Ludovic Courtès
2 siblings, 0 replies; 4+ messages in thread
From: Timotej Lazar @ 2023-08-05 8:20 UTC (permalink / raw)
To: 65066; +Cc: Timotej Lazar
* gnu/packages/syncthing.scm (syncthing)[arguments]: Use gexps. Drop trailing
---
gnu/packages/syncthing.scm | 109 +++++++++++++++++--------------------
1 file changed, 49 insertions(+), 60 deletions(-)
diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm
index 6ae8016491..414395251b 100644
--- a/gnu/packages/syncthing.scm
+++ b/gnu/packages/syncthing.scm
@@ -61,76 +61,65 @@ (define-public syncthing
;; of "out" by ~144 MiB.
(outputs '("out" "utils"))
(arguments
- `(#:modules ((srfi srfi-26) ; for cut
- (guix build utils)
- (guix build go-build-system))
- #:go ,go-1.19
- #:import-path "github.com/syncthing/syncthing"
- ;; We don't need to install the source code for end-user applications.
- #:install-source? #f
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'increase-test-timeout
- (lambda _
- (substitute* "src/github.com/syncthing/syncthing/build.go"
- (("120s") "999s"))
- #t))
+ (list #:modules '((srfi srfi-26) ; for cut
+ (guix build utils)
+ (guix build go-build-system))
+ #:go go-1.19
+ #:import-path "github.com/syncthing/syncthing"
+ ;; We don't need to install the source code for end-user applications.
+ #:install-source? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'increase-test-timeout
+ (lambda _
+ (substitute* "src/github.com/syncthing/syncthing/build.go"
+ (("120s") "999s"))))
- (replace 'build
- (lambda _
- (with-directory-excursion "src/github.com/syncthing/syncthing"
- ;; XXX The only way to build Syncthing without its automatic
- ;; updater and to build the utilities is to "build all" and then
- ;; "build syncthing" again with -no-upgrade.
- ;; https://github.com/syncthing/syncthing/issues/6118
- (invoke "go" "run" "build.go")
- (delete-file "bin/syncthing")
- (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
+ (replace 'build
+ (lambda _
+ (with-directory-excursion "src/github.com/syncthing/syncthing"
+ ;; XXX The only way to build Syncthing without its automatic
+ ;; updater and to build the utilities is to "build all" and then
+ ;; "build syncthing" again with -no-upgrade.
+ ;; https://github.com/syncthing/syncthing/issues/6118
+ (invoke "go" "run" "build.go")
+ (delete-file "bin/syncthing")
+ (invoke "go" "run" "build.go" "-no-upgrade" "build" "syncthing"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (with-directory-excursion "src/github.com/syncthing/syncthing"
- (invoke "go" "run" "build.go" "test")))
- #t))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "src/github.com/syncthing/syncthing"
+ (invoke "go" "run" "build.go" "test")))))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (utils (assoc-ref outputs "utils")))
- (with-directory-excursion "src/github.com/syncthing/syncthing/bin"
- (install-file "../syncthing" (string-append out "/bin"))
- (for-each (cut install-file <> (string-append utils "/bin/"))
- '("stcompdirs" "stcrashreceiver"
- "stdisco" "stdiscosrv" "stevents" "stfileinfo"
- "stfinddevice" "stfindignored" "stgenfiles"
- "strelaypoolsrv" "strelaysrv" "stsigtool"
- "stvanity" "stwatchfile" "uraggregate" "ursrv"))
- #t))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "src/github.com/syncthing/syncthing/bin"
+ (install-file "../syncthing" (string-append #$output "/bin"))
+ (for-each (cut install-file <> (string-append #$output:utils "/bin/"))
+ '("stcompdirs" "stcrashreceiver"
+ "stdisco" "stdiscosrv" "stevents" "stfileinfo"
+ "stfinddevice" "stfindignored" "stgenfiles"
+ "strelaypoolsrv" "strelaysrv" "stsigtool"
+ "stvanity" "stwatchfile" "uraggregate" "ursrv")))))
(add-after 'install 'install-docs
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (utils (assoc-ref outputs "utils"))
- (man "/share/man")
- (man-section (string-append man "/man"))
- (src "src/github.com/syncthing/syncthing/man/"))
+ (lambda _
+ (let ((man (string-append #$output "/share/man"))
+ (man:utils (string-append #$output:utils "/share/man")))
;; Install all the man pages to "out".
(for-each
- (lambda (file)
- (install-file file
- (string-append out man-section
- (string-take-right file 1))))
- (find-files src "\\.[1-9]"))
+ (lambda (file)
+ (install-file file
+ (string-append man "/man" (string-take-right file 1))))
+ (find-files "src/github.com/syncthing/syncthing/man" "\\.[1-9]"))
;; Copy all the man pages to "utils"
- (copy-recursively (string-append out man)
- (string-append utils man))
+ (copy-recursively man man:utils)
;; Delete extraneous man pages from "out" and "utils",
;; respectively.
- (delete-file (string-append out man "/man1/stdiscosrv.1"))
- (delete-file (string-append out man "/man1/strelaysrv.1"))
- (delete-file (string-append utils man "/man1/syncthing.1"))
- #t))))))
+ (delete-file (string-append man "/man1/stdiscosrv.1"))
+ (delete-file (string-append man "/man1/strelaysrv.1"))
+ (delete-file (string-append man:utils "/man1/syncthing.1"))))))))
(synopsis "Decentralized continuous file system synchronization")
(description "Syncthing is a peer-to-peer file synchronization tool that
supports a wide variety of computing platforms. It uses the Block Exchange
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#65066: [PATCH 0/2] Update syncthing
2023-08-05 8:17 [bug#65066] [PATCH 0/2] Update syncthing Timotej Lazar
2023-08-05 8:20 ` [bug#65066] [PATCH 1/2] gnu: syncthing: Update to 1.23.6 Timotej Lazar
2023-08-05 8:20 ` [bug#65066] [PATCH 2/2] gnu: syncthing: Use new package style Timotej Lazar
@ 2023-08-21 21:17 ` Ludovic Courtès
2 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2023-08-21 21:17 UTC (permalink / raw)
To: Timotej Lazar; +Cc: 65066-done
Hi,
Timotej Lazar <timotej.lazar@araneo.si> skribis:
> gnu: syncthing: Update to 1.23.6.
> gnu: syncthing: Use new package style.
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-21 21:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-05 8:17 [bug#65066] [PATCH 0/2] Update syncthing Timotej Lazar
2023-08-05 8:20 ` [bug#65066] [PATCH 1/2] gnu: syncthing: Update to 1.23.6 Timotej Lazar
2023-08-05 8:20 ` [bug#65066] [PATCH 2/2] gnu: syncthing: Use new package style Timotej Lazar
2023-08-21 21:17 ` bug#65066: [PATCH 0/2] Update syncthing Ludovic Courtès
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).