gnu: 389-ds-base: Fix build.

* gnu/packages/openldap.scm (389-ds-base)[source]: Add snippet.
[inputs]: Add libxcrypt.

Change-Id: I5ddb30e8a0ae23e7795a0a9a9e3f00b48379e3e8
This commit is contained in:
宋文武 2024-06-19 21:42:34 +08:00 committed by Ludovic Courtès
parent 98b4fb8dab
commit fe88550267
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -31,6 +31,7 @@ (define-module (gnu packages openldap)
#:use-module (gnu packages bash) #:use-module (gnu packages bash)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages cyrus-sasl)
#:use-module (gnu packages databases) #:use-module (gnu packages databases)
#:use-module (gnu packages dbm) #:use-module (gnu packages dbm)
@ -223,7 +224,15 @@ (define-public 389-ds-base
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1sdvfbjfg0091f47562gw3gdc2vgvvhyhdi21lrpwnw9lqc8xdxk")))) "1sdvfbjfg0091f47562gw3gdc2vgvvhyhdi21lrpwnw9lqc8xdxk"))
(modules '((guix build utils)))
(snippet
;; Put '#define f_type' after '#include <sys/statvfs.h>' to
;; avoid name conflict.
'(substitute* "ldap/servers/slapd/slap.h"
(("#include <sys/types\\.h>")
"#include <sys/types.h>
#include <sys/statvfs.h>")))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list (list
@ -331,6 +340,7 @@ (define-public 389-ds-base
libevent libevent
libselinux libselinux
linux-pam linux-pam
libxcrypt
lmdb lmdb
mit-krb5 mit-krb5
net-snmp net-snmp