gnu: cryptsetup-static: Don't build veritysetup.
* gnu/packages/cryptsetup.scm (cryptsetup-static)[arguments]: Pass ‘--disable-veritysetup’ #:configure-flag. Adjust ‘remove-cruft’ phase.
This commit is contained in:
parent
d5e445e1d5
commit
b5c84b8a37
|
@ -1,6 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
|
||||||
|
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -81,6 +82,8 @@ files). This assumes LIBRARY uses Libtool."
|
||||||
'(#:configure-flags '("--disable-shared"
|
'(#:configure-flags '("--disable-shared"
|
||||||
"--enable-static-cryptsetup"
|
"--enable-static-cryptsetup"
|
||||||
|
|
||||||
|
"--disable-veritysetup"
|
||||||
|
|
||||||
;; 'libdevmapper.a' pulls in libpthread, libudev and libm.
|
;; 'libdevmapper.a' pulls in libpthread, libudev and libm.
|
||||||
"LIBS=-ludev -pthread -lm")
|
"LIBS=-ludev -pthread -lm")
|
||||||
|
|
||||||
|
@ -94,8 +97,7 @@ files). This assumes LIBRARY uses Libtool."
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-after 'install 'remove-cruft
|
(add-after 'install 'remove-cruft
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Remove everything except the 'cryptsetup' command and
|
;; Remove everything except the 'cryptsetup' command.
|
||||||
;; its friend.
|
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(with-directory-excursion out
|
(with-directory-excursion out
|
||||||
(let ((dirs (scandir "."
|
(let ((dirs (scandir "."
|
||||||
|
@ -109,7 +111,7 @@ files). This assumes LIBRARY uses Libtool."
|
||||||
".static")
|
".static")
|
||||||
file)
|
file)
|
||||||
(remove-store-references file))
|
(remove-store-references file))
|
||||||
'("sbin/cryptsetup" "sbin/veritysetup"))
|
'("sbin/cryptsetup"))
|
||||||
#t))))))))
|
#t))))))))
|
||||||
(inputs
|
(inputs
|
||||||
(let ((libgcrypt-static
|
(let ((libgcrypt-static
|
||||||
|
|
Loading…
Reference in New Issue