gnu: Borg: Use bundled msgpack.

This is an old and customized version of msgpack-python.

* gnu/packages/backup.scm (borg)[source]: In the snippet, don't delete the
bundled 'msgpack' directory, and remove the related substition applied to
setup.py.
[arguments]: Remove the 'use-system-msgpack' phase.
[inputs]: Remove 'python-msgpack-transitional'.
This commit is contained in:
Leo Famulari 2021-08-04 01:21:00 -04:00
parent fdd2f57359
commit 5e71375361
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -659,12 +659,7 @@ (define-public borg
;; Remove bundled shared libraries.
(with-directory-excursion "src/borg/algorithms"
(for-each delete-file-recursively
(list "blake2" "lz4" "msgpack" "zstd")))
;; Purge some msgpack references from setup.py or the resulting
;; sources will be unbuildable.
(substitute* "setup.py"
((".*Extension\\('borg\\.algorithms\\.msgpack\\..*") "")
(("msgpack_packer_source, msgpack_unpacker_source") ""))
(list "blake2" "lz4" "zstd")))
#t))))
(build-system python-build-system)
(arguments
@ -688,12 +683,6 @@ (define-public borg
;; HOME=/homeless-shelter.
(setenv "HOME" "/tmp")
#t)))
(add-after 'unpack 'use-system-msgpack
(lambda _
(substitute* "src/borg/helpers.py"
(("prefer_system_msgpack = False")
"prefer_system_msgpack = True"))
#t))
;; The tests need to be run after Borg is installed.
(delete 'check)
(add-after 'install 'check
@ -757,10 +746,6 @@ (define-public borg
("lz4" ,lz4)
("openssl" ,openssl)
("python-llfuse" ,python-llfuse)
;; The Python msgpack library changed its name so Borg requires this
;; transitional package for now:
;; <https://bugs.gnu.org/30662>
("python-msgpack" ,python-msgpack-transitional)
("zstd" ,zstd "lib")))
(synopsis "Deduplicated, encrypted, authenticated and compressed backups")
(description "Borg is a deduplicating backup program. Optionally, it