[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
53/62: gnu: libarchive: Use G-expressions.
From: |
guix-commits |
Subject: |
53/62: gnu: libarchive: Use G-expressions. |
Date: |
Sun, 26 Jun 2022 06:09:11 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 1d221b7fea1985a02e6b5d2f23894f663acfadd3
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Jun 26 11:25:28 2022 +0200
gnu: libarchive: Use G-expressions.
* gnu/packages/backup.scm (libarchive)[arguments]: Convert to gexps.
---
gnu/packages/backup.scm | 107 ++++++++++++++++++++++++------------------------
1 file changed, 53 insertions(+), 54 deletions(-)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index aedb7277c4..38f5c24ba3 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -13,7 +13,7 @@
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2019 Alex Vong <alexvong1995@gmail.com>
-;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2019, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
@@ -260,60 +260,59 @@ backups (called chunks) to allow easy burning to CD/DVD.")
zlib
`(,zstd "lib")))
(arguments
- `(#:configure-flags '("--disable-static")
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'patch-pwd
- (lambda _
- (substitute* "Makefile"
- (("/bin/pwd") (which "pwd")))
- #t))
- (replace 'check
- (lambda* (#:key (tests? #t) #:allow-other-keys)
- (if tests?
- ;; XXX: The test_owner_parse, test_read_disk, and
- ;; test_write_disk_lookup tests expect user 'root' to
- ;; exist, but the chroot's /etc/passwd doesn't have
- ;; it. Turn off those tests.
- (begin
- ;; The tests allow one to disable tests matching a globbing
pattern.
- (invoke "make"
- "libarchive_test"
- "bsdcpio_test"
- "bsdtar_test")
+ (list
+ #:configure-flags #~'("--disable-static")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'patch-pwd
+ (lambda _
+ (substitute* "Makefile"
+ (("/bin/pwd") (which "pwd")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ ;; XXX: The test_owner_parse, test_read_disk, and
+ ;; test_write_disk_lookup tests expect user 'root' to
+ ;; exist, but the chroot's /etc/passwd doesn't have
+ ;; it. Turn off those tests.
+ (begin
+ ;; 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.
- (invoke "./libarchive_test" "^test_*_disk*")
- (invoke "./bsdcpio_test" "^test_owner_parse")
- (invoke "./bsdtar_test"))
- ;; Tests may be disabled if cross-compiling.
- (format #t "Test suite not run.~%"))))
- (add-after 'install 'add--L-in-libarchive-pc
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (lib (string-append out "/lib"))
- (nettle (assoc-ref inputs "nettle"))
- (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")))
- ;; Embed absolute references to these inputs to avoid
propagation.
- (substitute* (list (string-append lib
"/pkgconfig/libarchive.pc")
- (string-append lib "/libarchive.la"))
- (("-lnettle")
- (string-append "-L" nettle "/lib -lnettle"))
- (("-lxml2")
- (string-append "-L" libxml2 "/lib -lxml2"))
- (("-llzma")
- (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))))))
+ ;; XXX: This glob disables too much.
+ (invoke "./libarchive_test" "^test_*_disk*")
+ (invoke "./bsdcpio_test" "^test_owner_parse")
+ (invoke "./bsdtar_test"))
+ ;; Tests may be disabled if cross-compiling.
+ (format #t "Test suite not run.~%"))))
+ (add-after 'install 'add--L-in-libarchive-pc
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out #$output)
+ (lib (string-append out "/lib"))
+ (nettle (assoc-ref inputs "nettle"))
+ (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")))
+ ;; Embed absolute references to these inputs to avoid
propagation.
+ (substitute* (list (string-append lib
"/pkgconfig/libarchive.pc")
+ (string-append lib "/libarchive.la"))
+ (("-lnettle")
+ (string-append "-L" nettle "/lib -lnettle"))
+ (("-lxml2")
+ (string-append "-L" libxml2 "/lib -lxml2"))
+ (("-llzma")
+ (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")))))))))
(home-page "https://libarchive.org/")
(synopsis "Multi-format archive and compression library")
(description
- 28/62: gnu: libxvmc: Update to 1.0.13., (continued)
- 28/62: gnu: libxvmc: Update to 1.0.13., guix-commits, 2022/06/26
- 37/62: gnu: libevent: Remove input label., guix-commits, 2022/06/26
- 39/62: gnu: libtasn1: Update to 4.18.0., guix-commits, 2022/06/26
- 42/62: gnu: jemalloc: Update to 5.3.0., guix-commits, 2022/06/26
- 43/62: gnu: Remove jemalloc@4.5.0., guix-commits, 2022/06/26
- 45/62: gnu: mit-krb5: Remove label usage., guix-commits, 2022/06/26
- 44/62: gnu: mit-krb5: Update to 1.20., guix-commits, 2022/06/26
- 47/62: gnu: nghttp2: Remove input labels., guix-commits, 2022/06/26
- 49/62: gnu: dejagnu: Update to 1.6.3., guix-commits, 2022/06/26
- 51/62: gnu: procps: Use G-expressions., guix-commits, 2022/06/26
- 53/62: gnu: libarchive: Use G-expressions.,
guix-commits <=
- 58/62: gnu: libjpeg-turbo: Update to 2.1.3., guix-commits, 2022/06/26
- 57/62: gnu: rhash: Update to 1.4.3., guix-commits, 2022/06/26
- 62/62: gnu: ninja: Remove input label., guix-commits, 2022/06/26
- 08/62: gnu: lzip: Update to 1.23., guix-commits, 2022/06/26
- 19/62: gnu: libxslt: Remove input labels., guix-commits, 2022/06/26
- 10/62: gnu: libcap: Update to 2.64., guix-commits, 2022/06/26
- 30/62: gnu: libidn: Update to 1.41., guix-commits, 2022/06/26
- 24/62: gnu: libxcb: Update to 1.15., guix-commits, 2022/06/26
- 41/62: gnu: c-ares: Update to 1.18.1., guix-commits, 2022/06/26
- 46/62: gnu: nghttp2: Update to 1.48.0., guix-commits, 2022/06/26