[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/19: gnu: RHash: Move custom configure logic to #:configure-flags.
From: |
guix-commits |
Subject: |
06/19: gnu: RHash: Move custom configure logic to #:configure-flags. |
Date: |
Mon, 3 Feb 2020 09:30:24 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit d2a4020a012e305b425c9bd48e9585c24a606aa7
Author: Marius Bakke <address@hidden>
AuthorDate: Fri Jan 31 09:47:41 2020 +0100
gnu: RHash: Move custom configure logic to #:configure-flags.
* gnu/packages/crypto.scm (rhash)[arguments]: Add #:configure-flags. Adjust
the 'configure' phase accordingly.
---
gnu/packages/crypto.scm | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 7947284..852a262 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -720,7 +720,16 @@ BLAKE.")
"1xn9fqa6rlnhsbgami45g82dlw9i1skg2sri3ydiinwak5ph1ca2"))))
(build-system gnu-build-system)
(arguments
- `(#:make-flags
+ `(#:configure-flags
+ (list (string-append "--prefix=" (assoc-ref %outputs "out"))
+ ,@(let ((target (%current-target-system)))
+ (if target
+ `((string-append "--target=" ,target)
+ (string-append "--cc="
+ (assoc-ref %build-inputs "cross-gcc")
+ "/bin/" ,target "-gcc"))
+ '())))
+ #:make-flags
;; The binaries in /bin need some help finding librhash.so.0.
(list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
#:test-target "test" ; ‘make check’ just checks the sources
@@ -729,16 +738,8 @@ BLAKE.")
(replace 'configure
;; ./configure is not GNU autotools' and doesn't gracefully handle
;; unrecognized options, so we must call it manually.
- (lambda* (#:key native-inputs outputs #:allow-other-keys)
- (invoke "./configure"
- (string-append "--prefix=" (assoc-ref outputs "out"))
- ,@(let ((target (%current-target-system)))
- (if target
- `((string-append "--target=" ,target)
- (string-append "--cc="
- (assoc-ref native-inputs
"cross-gcc")
- "/bin/" ,target "-gcc"))
- '())))))
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (apply invoke "./configure" configure-flags)))
(add-before 'check 'patch-/bin/sh
(lambda _
(substitute* "Makefile"
- branch core-updates updated (0684a2f -> 584d08c), guix-commits, 2020/02/03
- 05/19: gnu: checkpolicy: Fix cross-compilation., guix-commits, 2020/02/03
- 02/19: gnu: llvm@3: Do not inherit 'install-opt-viewer' phase., guix-commits, 2020/02/03
- 03/19: gnu: libaio: Fix cross-compilation., guix-commits, 2020/02/03
- 06/19: gnu: RHash: Move custom configure logic to #:configure-flags.,
guix-commits <=
- 08/19: gnu: ninja: Update to 1.10.0., guix-commits, 2020/02/03
- 09/19: gnu: OpenLDAP: Update to 2.4.49., guix-commits, 2020/02/03
- 10/19: gnu: SQLite: Update to 3.31.1., guix-commits, 2020/02/03
- 14/19: gnu: pciutils: Update to 3.6.4., guix-commits, 2020/02/03
- 04/19: gnu: libsepol: Fix cross-compilation., guix-commits, 2020/02/03
- 15/19: gnu: python-pytest: Update to 5.3.5., guix-commits, 2020/02/03
- 18/19: gnu: libtasn1: Update to 4.16.0., guix-commits, 2020/02/03
- 01/19: gnu: python2-importlib-metadata: Fix circular dependency., guix-commits, 2020/02/03
- 07/19: gnu: ninja: Do not use unstable tarball., guix-commits, 2020/02/03
- 11/19: gnu: poppler: Update to 0.85.0., guix-commits, 2020/02/03