gnu: onedrive: Update to 2.5.9.

* gnu/packages/sync.scm (onedrive): Update to 2.5.9.
[arguments]: Add configure-flag for bash completion directory.  Remove
'adjust-makefile phase.
[inputs]: Add dbus.

Change-Id: I2da9c20f121a44c1095be5cab9cb32602ced6987
This commit is contained in:
Efraim Flashner 2026-01-04 12:12:10 +02:00
parent 47711ec8b1
commit 7169d247bf
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015-2020, 2022-2023 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2015-2020, 2022-2023, 2026 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2021 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2018, 2021 Ludovic Courtès <ludo@gnu.org>
@ -342,23 +342,24 @@ See also: megacmd, the official tool set by MEGA.")
(define-public onedrive (define-public onedrive
(package (package
(name "onedrive") (name "onedrive")
;; Move ahead of 2.5.3 for OpenSSL version check error and other fixes (version "2.5.9")
(version "2.5.3-1.71a71da")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/abraunegg/onedrive") (url "https://github.com/abraunegg/onedrive")
(commit "71a71da1e0c981969900fa690c93905e0cc4b9b5"))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1rr3aw363gln4i8j3b43mih1acqj5way7ybs0mndxkhsayw67vb0")))) (base32 "05ygicsfw7g5jmlymiwpv097223qglx5324ycy47yc1j3qlzpfjn"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list (list
#:configure-flags #:configure-flags
#~(list "--enable-completions" #~(list "--enable-completions"
"--enable-notifications" "--enable-notifications"
(string-append "--with-bash-completion-dir="
#$output "/share/bash-completion/completions")
(string-append "--with-zsh-completion-dir=" (string-append "--with-zsh-completion-dir="
#$output "/share/zsh/site-functions") #$output "/share/zsh/site-functions")
(string-append "--with-fish-completion-dir=" (string-append "--with-fish-completion-dir="
@ -367,10 +368,6 @@ See also: megacmd, the official tool set by MEGA.")
#~(list (string-append "CC=" #$(cc-for-target))) #~(list (string-append "CC=" #$(cc-for-target)))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'configure 'adjust-makefile
(lambda _
(substitute* "Makefile"
(("-O ") "-O2 "))))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
@ -380,6 +377,7 @@ See also: megacmd, the official tool set by MEGA.")
(inputs (inputs
(list bash-minimal (list bash-minimal
curl curl
dbus
ldc ldc
libnotify libnotify
sqlite)) sqlite))
@ -606,7 +604,7 @@ Feature:
(snippet (snippet
#~(begin #~(begin
;; XXX: This test fails to compile: `undefined: testscript.Main' ;; XXX: This test fails to compile: `undefined: testscript.Main'
(delete-file "fs/logger/logger_test.go"))))) (delete-file "fs/logger/logger_test.go")))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
(list (list