raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 72e24718204a5206f2d09356c2a2e7b6cbfa0f2e
Author: Raghav Gururajan <[email protected]>
AuthorDate: Fri Apr 23 22:30:40 2021 -0400
gnu: gnutls: Enable PKCS#11 support.
PKCS#11 support in GnuTLS is required by Glib-Networking.
* gnu/packages/tls.scm (gnutls)[configure-flags](--without-p11-kit): Expose
flag
only if target-system is mips64el.
[propagated-inputs]: Add p11-kit.
---
gnu/packages/tls.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index d52a88f..a0d7c5e 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -214,7 +214,10 @@ living in the same process.")
;; FIXME: Temporarily disable p11-kit support since it is not
;; working on mips64el.
- "--without-p11-kit")
+ ,@(if (string-prefix? "mips64el" (or (%current-target-system)
+ (%current-system)))
+ '("--without-p11-kit")
+ '()))
#:phases (modify-phases %standard-phases
(add-after
@@ -250,6 +253,7 @@ living in the same process.")
;; These are all in the 'Requires.private' field of gnutls.pc.
`(("libtasn1" ,libtasn1)
("libidn2" ,libidn2)
+ ("p11-kit" ,p11-kit)
("nettle" ,nettle)
("zlib" ,zlib)))
(home-page "https://www.gnu.org/software/gnutls/")