guix_mirror_bot pushed a commit to branch crypto-team
in repository guix.

commit 68dd813a218785d9d33eb3147f742565d53809e0
Author: Cayetano Santos <[email protected]>
AuthorDate: Sun Jun 7 19:05:49 2026 +0200

    gnu: libgcrypt: Use git repository.
    
    * gnu/packages/gnupg.scm (libgcrypt)[source]: Switch to git-fetch.
    [native-inputs]: Add autoconf and automake.
    [arguments]<#:configure-flags>: Disable doc; enable maintainer mode.
    [home-page]: Update.
    
    Change-Id: I68a36dacf30f7efcd04b9c127fc7652b5483dd20
---
 gnu/packages/gnupg.scm | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index f721fdd2a5..20a4647c3c 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -187,26 +187,32 @@ Daemon and possibly more in the future.")
   (package
     (name "libgcrypt")
     (version "1.11.0")
-    (source (origin
-             (method url-fetch)
-             (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
-                                 version ".tar.bz2"))
-             (sha256
-              (base32
-               "172vd1c1zn27mqd7cdb14hpjz35rhr9pg8dass0j0zyfcyc0q4h9"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://dev.gnupg.org/source/libgcrypt";)
+              (commit (string-append "libgcrypt-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0pmxp91sirqmsiy7asnjbz5ksglzbqhh11baz4v086i2j8j3rqvw"))))
     (build-system gnu-build-system)
     (propagated-inputs
      `(("libgpg-error-host" ,libgpg-error)))
     (native-inputs
      ;; Needed here for the 'gpg-error' program.
-     `(("libgpg-error-native" ,libgpg-error)))
+     `(("libgpg-error-native" ,libgpg-error)
+       ("autoconf" ,autoconf)
+       ("automake" ,automake)))
     (arguments
      ;; The '--with-gpg-error-prefix' argument is needed because otherwise
      ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
      ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
      (list
       #:configure-flags
-      #~(list (string-append "--with-libgpg-error-prefix="
+      #~(list "--enable-maintainer-mode" ;see README.GIT
+              (string-append "--with-libgpg-error-prefix="
                              (assoc-ref %build-inputs "libgpg-error-host"))
               ;; libgcrypt is transitioning from gpg-error-config to
               ;; gpgrt-config, and in the process the
@@ -217,6 +223,9 @@ Daemon and possibly more in the future.")
                              (assoc-ref %build-inputs
                                         "libgpg-error-host")
                              "/bin/gpgrt-config")
+              ;; TODO: There is a dependency cycle with fig2dev; remove when
+              ;; fixed.
+              "--disable-doc"
               #$@(if (%current-target-system)
                      ;; When cross-compiling, _gcry_mpih_lshift etc are
                      ;; undefined.
@@ -238,7 +247,7 @@ Daemon and possibly more in the future.")
                         (invoke "patch" "--force" "-p1" "-i" patch-file))))))
               (else #~())))))
     (outputs '("out" "debug"))
-    (home-page "https://gnupg.org/";)
+    (home-page "https://gnupg.org/software/libgcrypt";)
     (synopsis "Cryptographic function library")
     (description
      "Libgcrypt is a general-purpose cryptographic library.  It provides the

Reply via email to