GNU bug report logs -
#31802
[PATCH] gnu: ldb: Fix build on 32-bit systems.
Previous Next
Reported by: Marius Bakke <mbakke <at> fastmail.com>
Date: Tue, 12 Jun 2018 17:56:02 UTC
Severity: normal
Tags: patch
Done: Marius Bakke <mbakke <at> fastmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31802 in the body.
You can then email your comments to 31802 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#31802
; Package
guix-patches
.
(Tue, 12 Jun 2018 17:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Marius Bakke <mbakke <at> fastmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 12 Jun 2018 17:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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 | 5 +++++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index abbfdd83c..e10f00a83 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 e9efea586..81aee0bf8 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -77,6 +77,7 @@
package-name->name+version
target-mingw?
target-arm32?
+ target-64bit?
version-compare
version>?
version>=?
@@ -474,6 +475,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" "ppc64"))))
+
(define version-compare
(let ((strverscmp
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))
--
2.17.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#31802
; Package
guix-patches
.
(Thu, 14 Jun 2018 20:32:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 31802 <at> debbugs.gnu.org (full text, mbox):
Marius Bakke <mbakke <at> fastmail.com> skribis:
> * 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.
LGTM, thanks!
Ludo'.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#31802
; Package
guix-patches
.
(Sat, 16 Jun 2018 19:40:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 31802 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
ludo <at> gnu.org (Ludovic Courtès) writes:
> Marius Bakke <mbakke <at> fastmail.com> skribis:
>
>> * 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.
>
> LGTM, thanks!
Great, thanks for checking. Pushed!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#31802
; Package
guix-patches
.
(Sat, 16 Jun 2018 19:40:04 GMT)
Full text and
rfc822 format available.
Message #14 received at 31802 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
ludo <at> gnu.org (Ludovic Courtès) writes:
> Marius Bakke <mbakke <at> fastmail.com> skribis:
>
>> * 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.
>
> LGTM, thanks!
I also added mips64 as suggested by Efraim on IRC.
[signature.asc (application/pgp-signature, inline)]
bug closed, send any further explanations to
31802 <at> debbugs.gnu.org and Marius Bakke <mbakke <at> fastmail.com>
Request was from
Marius Bakke <mbakke <at> fastmail.com>
to
control <at> debbugs.gnu.org
.
(Sat, 16 Jun 2018 19:41:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 16 Jul 2018 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.