[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/18: gnu: libarchive: Enable zstd support.
From: |
guix-commits |
Subject: |
06/18: gnu: libarchive: Enable zstd support. |
Date: |
Wed, 31 Jul 2019 08:58:40 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 80ba43b5f8c70cd823cf0821ae32491e7b3edd3d
Author: Marius Bakke <address@hidden>
Date: Sun Jul 21 17:18:22 2019 +0200
gnu: libarchive: Enable zstd support.
CMake 3.15 has a test that expects zstd to be enabled. It adds ~1 MiB to
the
closure size.
* gnu/packages/backup.scm (libarchive)[inputs]: Add ZSTD:LIB. Sort
alphabetically.
[arguments]: Adjust one of the zstd tests. Adjust libarchive.pc.
---
gnu/packages/backup.scm | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 1bb05d9..abb8eed 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -13,6 +13,7 @@
;;; Copyright © 2018 Oleg Pykhalov <address@hidden>
;;; Copyright © 2018, 2019 Ricardo Wurmus <address@hidden>
;;; Copyright © 2019 Alex Vong <address@hidden>
+;;; Copyright © 2019 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -212,12 +213,13 @@ backups (called chunks) to allow easy burning to CD/DVD.")
"0pl25mmz1b1cnwf35kxmygyy9g7z7hslxbx329a9yx8csh7dahw6"))))
(build-system gnu-build-system)
(inputs
- `(("zlib" ,zlib)
- ("nettle" ,nettle)
- ("lzo" ,lzo)
- ("bzip2" ,bzip2)
+ `(("bzip2" ,bzip2)
("libxml2" ,libxml2)
- ("xz" ,xz)))
+ ("lzo" ,lzo)
+ ("nettle" ,nettle)
+ ("xz" ,xz)
+ ("zlib" ,zlib)
+ ("zstd" ,zstd "lib")))
(arguments
`(#:phases
(modify-phases %standard-phases
@@ -232,6 +234,13 @@ backups (called chunks) to allow easy burning to CD/DVD.")
;; test_write_disk_lookup tests expect user 'root' to exist, but
;; the chroot's /etc/passwd doesn't have it. Turn off those
tests.
;;
+ ;; XXX: Adjust test that fails with zstd 1.4.1 because the default
+ ;; options compresses two bytes better than this test expects.
+ ;; https://github.com/libarchive/libarchive/issues/1226
+ (substitute* "libarchive/test/test_write_filter_zstd.c"
+ (("compression-level\", \"6\"")
+ "compression-level\", \"7\""))
+
;; The tests allow one to disable tests matching a globbing
pattern.
(invoke "make" "libarchive_test" "bsdcpio_test" "bsdtar_test")
;; XXX: This glob disables too much.
@@ -246,6 +255,7 @@ backups (called chunks) to allow easy burning to CD/DVD.")
(libxml2 (assoc-ref inputs "libxml2"))
(xz (assoc-ref inputs "xz"))
(zlib (assoc-ref inputs "zlib"))
+ (zstd (assoc-ref inputs "zstd"))
(bzip2 (assoc-ref inputs "bzip2")))
(substitute* (string-append lib "/pkgconfig/libarchive.pc")
(("-lnettle")
@@ -256,6 +266,8 @@ backups (called chunks) to allow easy burning to CD/DVD.")
(string-append "-L" xz "/lib -llzma"))
(("-lz")
(string-append "-L" zlib "/lib -lz"))
+ (("-lzstd")
+ (string-append "-L" zstd "/lib -lzstd"))
(("-lbz2")
(string-append "-L" bzip2 "/lib -lbz2")))
#t))))))
- 01/18: gnu: ftgl: Update to 2.4.0., (continued)
- 01/18: gnu: ftgl: Update to 2.4.0., guix-commits, 2019/07/31
- 05/18: gnu: icu4c: Make 'libicudata.so' behave the same on all architectures., guix-commits, 2019/07/31
- 07/18: gnu: libarchive: Do not build 'libarchive.a'., guix-commits, 2019/07/31
- 15/18: gnu: gnutls: Update to 3.6.9., guix-commits, 2019/07/31
- 03/18: gnu: gpsbabel: Remove GCC 5 workaround., guix-commits, 2019/07/31
- 16/18: gnu: libice: Update to 1.0.10., guix-commits, 2019/07/31
- 13/18: gnu: poppler: Update to 0.79.0., guix-commits, 2019/07/31
- 09/18: gnu: Remove workarounds for missing libarchive nettle propagation., guix-commits, 2019/07/31
- 17/18: gnu: glib: Update to 2.60.6., guix-commits, 2019/07/31
- 08/18: gnu: libarchive: Embed absolute references to required libraries in .la file., guix-commits, 2019/07/31
- 06/18: gnu: libarchive: Enable zstd support.,
guix-commits <=
- 18/18: gnu: Remove workarounds for <https://bugs.gnu.org/36721>., guix-commits, 2019/07/31
- 10/18: gnu: CMake: Update to 3.15.1., guix-commits, 2019/07/31
- 04/18: gnu: icu4c: Add upstream patches., guix-commits, 2019/07/31
- 11/18: gnu: boost: Do not install CMake files., guix-commits, 2019/07/31
- 14/18: gnu: libtasn1: Update to 4.14., guix-commits, 2019/07/31
- 12/18: gnu: curl: Update to 7.65.3., guix-commits, 2019/07/31