[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/35: gnu: mit-krb5: Fix cross-compilation.
From: |
guix-commits |
Subject: |
12/35: gnu: mit-krb5: Fix cross-compilation. |
Date: |
Thu, 10 Oct 2019 11:33:17 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates
in repository guix.
commit b5ebab80238dfaea3acb0bd2c6b29fa5fb2bb45e
Author: Mathieu Othacehe <address@hidden>
Date: Fri Jul 5 09:34:28 2019 +0200
gnu: mit-krb5: Fix cross-compilation.
* gnu/packages/kerberos.scm (mit-krb5)[arguments]: Disable tests when
cross-compiling. Add cross-compilation specific configure-flags and
make-flags. Search for perl in native-inputs or inputs.
---
gnu/packages/kerberos.scm | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/kerberos.scm b/gnu/packages/kerberos.scm
index 1253a58..bf344ce 100644
--- a/gnu/packages/kerberos.scm
+++ b/gnu/packages/kerberos.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2017 Ricardo Wurmus <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2017 Alex Vong <address@hidden>
+;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -68,9 +69,21 @@
("perl" ,perl)))
(arguments
`(;; XXX: On 32-bit systems, 'kdb5_util' hangs on an fcntl/F_SETLKW call
- ;; while running the tests in 'src/tests'.
- #:tests? ,(string=? (%current-system) "x86_64-linux")
+ ;; while running the tests in 'src/tests'. Also disable tests when
+ ;; cross-compiling.
+ #:tests? ,(and (not (%current-target-system))
+ (string=? (%current-system) "x86_64-linux"))
+ ,@(if (%current-target-system)
+ '(#:configure-flags
+ (list "krb5_cv_attr_constructor_destructor=yes"
+ "ac_cv_func_regcomp=yes"
+ "ac_cv_printf_positional=yes"
+ "ac_cv_file__etc_environment=yes"
+ "ac_cv_file__etc_TIMEZONE=no")
+ #:make-flags
+ (list "CFLAGS+=-DDESTRUCTOR_ATTR_WORKS=1"))
+ '())
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'enter-source-directory
@@ -78,8 +91,8 @@
(chdir "src")
#t))
(add-before 'check 'pre-check
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((perl (assoc-ref inputs "perl")))
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((perl (assoc-ref (or native-inputs inputs) "perl")))
(substitute* "plugins/kdb/db2/libdb2/test/run.test"
(("/bin/cat") (string-append perl "/bin/perl"))
(("D/bin/sh") (string-append "D" (which "sh")))
- 03/35: gnu: python: Fix cross compilation., (continued)
- 03/35: gnu: python: Fix cross compilation., guix-commits, 2019/10/10
- 10/35: gnu: libgit2: Fix cross compilation., guix-commits, 2019/10/10
- 17/35: gnu: pkg-config: Fix cross-compilation., guix-commits, 2019/10/10
- 11/35: gnu: ath9k-htc-firmware: Fix cross compilation., guix-commits, 2019/10/10
- 19/35: gnu: texinfo: Fix cross-compilation., guix-commits, 2019/10/10
- 15/35: gnu: libarchive: Fix cross-compilation., guix-commits, 2019/10/10
- 32/35: gnu: mdadm: Fix cross-compilation., guix-commits, 2019/10/10
- 28/35: gnu: lvm2: Fix cross-compilation., guix-commits, 2019/10/10
- 27/35: gnu: mkfontdir: Fix aarch64 cross-compilation., guix-commits, 2019/10/10
- 26/35: gnu: libsamplerate: Fix aarch64 cross-compilation., guix-commits, 2019/10/10
- 12/35: gnu: mit-krb5: Fix cross-compilation.,
guix-commits <=
- 13/35: gnu: help2man: Fix cross-compilation., guix-commits, 2019/10/10
- 25/35: gnu: indent: Fix aarch64 cross-compilation., guix-commits, 2019/10/10
- 21/35: gnu: texinfo-4: Fix cross compilation, guix-commits, 2019/10/10
- 18/35: gnu: alsa-utils: Fix cross-compilation., guix-commits, 2019/10/10
- 20/35: gnu: texinfo-5: Fix cross-compilation., guix-commits, 2019/10/10
- 14/35: gnu: xmlto: Fix cross-compilation., guix-commits, 2019/10/10
- 22/35: gnu: guile-xcb: Fix cross-compilation., guix-commits, 2019/10/10
- 24/35: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/10/10
- 23/35: gnu: libgpg-error: Fix cross compilation., guix-commits, 2019/10/10
- 31/35: gnu: console-setup: Fix cross-compilation., guix-commits, 2019/10/10