[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36026] [PATCH 1/4] gnu: libarchive: Add zstd support.
From: |
Pierre Neidhardt |
Subject: |
[bug#36026] [PATCH 1/4] gnu: libarchive: Add zstd support. |
Date: |
Fri, 31 May 2019 16:04:41 +0200 |
* gnu/packages/backup.scm (libarchive)[inputs]: Include zstd.
[arguments]: Build against zstd.
---
gnu/packages/backup.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index b15c15ad46..da128a0901 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -216,7 +216,8 @@ backups (called chunks) to allow easy burning to CD/DVD.")
("lzo" ,lzo)
("bzip2" ,bzip2)
("libxml2" ,libxml2)
- ("xz" ,xz)))
+ ("xz" ,xz)
+ ("zstd" ,zstd)))
(arguments
`(#:phases
(modify-phases %standard-phases
@@ -245,7 +246,8 @@ 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"))
- (bzip2 (assoc-ref inputs "bzip2")))
+ (bzip2 (assoc-ref inputs "bzip2"))
+ (zstd (assoc-ref inputs "zstd")))
(substitute* (string-append lib "/pkgconfig/libarchive.pc")
(("-lnettle")
(string-append "-L" nettle "/lib -lnettle"))
@@ -256,7 +258,9 @@ backups (called chunks) to allow easy burning to CD/DVD.")
(("-lz")
(string-append "-L" zlib "/lib -lz"))
(("-lbz2")
- (string-append "-L" bzip2 "/lib -lbz2")))
+ (string-append "-L" bzip2 "/lib -lbz2"))
+ (("-lzstd")
+ (string-append "-L" zstd "/lib -lzstd")))
#t))))
;; libarchive/test/test_write_format_gnutar_filenames.c needs to be
--
2.21.0