gnu: sssd: Fix build with samba-4.15.3.

* gnu/packages/patches/sssd-fix-samba-4.15.3.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add this.
* gnu/packages/sssd.scm [source]: Add this.
[native-inputs]: Add AUTOCONF.
[arguments]: Add add-config-in phase.

Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
This commit is contained in:
Remco van 't Veer 2022-01-21 21:47:56 +01:00 committed by Oleg Pykhalov
parent bef0266be9
commit a7fb50b577
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C
3 changed files with 543 additions and 4 deletions

View file

@ -3,7 +3,7 @@
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2021 Remco van 't Veer <remco@remworks.net>
;;; Copyright © 2021, 2022 Remco van 't Veer <remco@remworks.net>
;;;
;;; This file is part of GNU Guix.
;;;
@ -152,7 +152,8 @@ fundamental object types for C.")
"1h6hwibaf3xa2w6qpzjiiywmfj6zkgbz4r2isf3gd0xm6vq7n6if"))
(patches (search-patches "sssd-fix-samba.patch"
"sssd-system-directories.patch"
"sssd-collision-with-external-nss-symbol.patch"))))
"sssd-collision-with-external-nss-symbol.patch"
"sssd-fix-samba-4.15.3.patch"))))
(build-system gnu-build-system)
(arguments
`(#:make-flags
@ -196,7 +197,19 @@ fundamental object types for C.")
(lambda _
(substitute* "src/tests/responder_socket_access-tests.c"
(("tcase_add_test\\(tc_utils, resp_str_to_array_test\\);") ""))
#t)))))
#t))
(add-after 'unpack 'add-config-in
(lambda _
(let ((config.h (open-file "config.h.in" "a")))
(display (string-append "
/* Missing in commits on original repo, dunno why but won't work without. */
#define SMB_HAS_NEW_NDR_PULL_STEAL_SWITCH 1
")
config.h)
(close config.h))))
(add-before 'configure 'autoconf
(lambda _
(invoke "autoconf"))))))
(inputs
(list augeas
`(,isc-bind "utils")
@ -225,7 +238,8 @@ fundamental object types for C.")
tdb
tevent))
(native-inputs
(list check-0.14
(list autoconf-2.69
check-0.14
docbook-xsl
docbook-xml
libxml2 ; for xmllint