raghavgururajan pushed a commit to branch wip-gnome
in repository guix.

commit d334be2a98452acc320a8f8e06aab815c36cb83c
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 1a4e3dc..f6f1abc 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -209,7 +209,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
@@ -245,6 +248,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/";)

Reply via email to