gnu: ldb: Fix build on 32-bit systems.
* gnu/packages/samba.scm (ldb)[inputs]: Only add LMDB on 64-bit systems. [arguments]: Make #:tests? conditional on LMDB availability.
This commit is contained in:
parent
4a21d1765d
commit
3d53869e30
|
@ -365,7 +365,10 @@ many event types, including timers, signals, and the classic file descriptor eve
|
||||||
#t))))
|
#t))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(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
|
(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
;; ldb use a custom configuration script that runs waf.
|
;; ldb use a custom configuration script that runs waf.
|
||||||
|
@ -385,7 +388,9 @@ many event types, including timers, signals, and the classic file descriptor eve
|
||||||
`(("talloc" ,talloc)
|
`(("talloc" ,talloc)
|
||||||
("tdb" ,tdb)))
|
("tdb" ,tdb)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("lmdb" ,lmdb)
|
`(,@(if (target-64bit?)
|
||||||
|
`(("lmdb" ,lmdb))
|
||||||
|
'())
|
||||||
("popt" ,popt)
|
("popt" ,popt)
|
||||||
("tevent" ,tevent)))
|
("tevent" ,tevent)))
|
||||||
(synopsis "LDAP-like embedded database")
|
(synopsis "LDAP-like embedded database")
|
||||||
|
|
Loading…
Reference in New Issue