gnu: onedrive: Update to 2.4.22.

* gnu/packages/sync.scm (onedrive): Update to 2.4.22.
[arguments]: Adjust 'link-to-external-libraries phase to not clear the
linker. Adjust 'adjust-makefile phase to not force adding libraries to
the rpath.
This commit is contained in:
Efraim Flashner 2023-01-02 12:28:30 +02:00
parent ebe7fbdc69
commit 9a19d85f1e
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 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2015-2020, 2022-2023 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>
@ -366,7 +366,7 @@ (define-public owncloud-client
(define-public onedrive (define-public onedrive
(package (package
(name "onedrive") (name "onedrive")
(version "2.4.21") (version "2.4.22")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -375,7 +375,7 @@ (define-public onedrive
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "04rnkc6ap9mkghvlj102f2gvnjqg3bs4vw9q3wm869fsflnm3599")))) (base32 "1lh915rs3zjfgdjhn35bhnn6zfknj4xd86s5jj3wznifj4f5kn7w"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list (list
@ -391,16 +391,12 @@ (define-public onedrive
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'link-to-external-libraries (add-after 'unpack 'link-to-external-libraries
(lambda* (#:key inputs #:allow-other-keys) (lambda _
(setenv "DCFLAGS" (string-append ;; Only link necessary libraries.
;; The default linker is ld.gold. (setenv "DCFLAGS" "-L--as-needed")))
"--linker=\"\" "
;; Only link necessary libraries.
"-L--as-needed "))))
(add-after 'configure 'adjust-makefile (add-after 'configure 'adjust-makefile
(lambda _ (lambda _
(substitute* "Makefile" (substitute* "Makefile"
(("-L/gnu") "-Wl,-rpath=/gnu")
(("-O ") "-O2 ")))) (("-O ") "-O2 "))))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)