[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/10: gnu: ldb: Fix build on 32-bit systems.
From: |
Marius Bakke |
Subject: |
06/10: gnu: ldb: Fix build on 32-bit systems. |
Date: |
Sat, 16 Jun 2018 15:37:24 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 259341cf93de80533d212cb73e5e652aa4bc716c
Author: Marius Bakke <address@hidden>
Date: Tue Jun 12 19:51:23 2018 +0200
gnu: ldb: Fix build on 32-bit systems.
* guix/utils.scm (target-64bit?): New procedure.
* gnu/packages/samba.scm (ldb)[inputs]: Only add LMDB on 64-bit systems.
[arguments]: Make #:tests? conditional on LMDB availability.
---
gnu/packages/samba.scm | 9 +++++++--
guix/utils.scm | 6 ++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index abbfdd8..e10f00a 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -362,7 +362,10 @@ many event types, including timers, signals, and the
classic file descriptor eve
#t))))
(build-system gnu-build-system)
(arguments
- '(#:phases
+ '(;; LMDB is only supported on 64-bit systems, yet the test suite
+ ;; requires it.
+ #:tests? (assoc-ref %build-inputs "lmdb")
+ #:phases
(modify-phases %standard-phases
(replace 'configure
;; ldb use a custom configuration script that runs waf.
@@ -382,7 +385,9 @@ many event types, including timers, signals, and the
classic file descriptor eve
`(("talloc" ,talloc)
("tdb" ,tdb)))
(inputs
- `(("lmdb" ,lmdb)
+ `(,@(if (target-64bit?)
+ `(("lmdb" ,lmdb))
+ '())
("popt" ,popt)
("tevent" ,tevent)))
(synopsis "LDAP-like embedded database")
diff --git a/guix/utils.scm b/guix/utils.scm
index e9efea5..a5de960 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2015 David Thompson <address@hidden>
;;; Copyright © 2017 Efraim Flashner <address@hidden>
;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
+;;; Copyright © 2018 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -77,6 +78,7 @@
package-name->name+version
target-mingw?
target-arm32?
+ target-64bit?
version-compare
version>?
version>=?
@@ -474,6 +476,10 @@ a character other than '@'."
(define (target-arm32?)
(string-prefix? "arm" (or (%current-target-system) (%current-system))))
+(define (target-64bit?)
+ (let ((system (or (%current-target-system) (%current-system))))
+ (any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64"
"ppc64"))))
+
(define version-compare
(let ((strverscmp
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))
- branch master updated (f77886c -> ed2ae0d), Marius Bakke, 2018/06/16
- 01/10: doc: Clarify when branches are "frozen"., Marius Bakke, 2018/06/16
- 07/10: gnu: ffmpeg: Update to 4.0.1., Marius Bakke, 2018/06/16
- 04/10: gnu: libedit: Update to 20180525-3.1., Marius Bakke, 2018/06/16
- 03/10: gnu: openal: Update to 0.18.2., Marius Bakke, 2018/06/16
- 08/10: gnu: maim: Update to 5.5.2., Marius Bakke, 2018/06/16
- 06/10: gnu: ldb: Fix build on 32-bit systems.,
Marius Bakke <=
- 09/10: gnu: offlineimap: Update to 7.2.1., Marius Bakke, 2018/06/16
- 10/10: gnu: strace: Update to 4.23., Marius Bakke, 2018/06/16
- 02/10: gnu: linux-libre: Fix build on AArch64., Marius Bakke, 2018/06/16
- 05/10: gnu: perl: Fix CVE-2018-12015., Marius Bakke, 2018/06/16