guix_mirror_bot pushed a commit to branch crypto-team
in repository guix.
commit 72ef3bb7dc704d25c7647c8add73ddc2448aab37
Author: Cayetano Santos <[email protected]>
AuthorDate: Sat May 30 16:31:53 2026 +0200
gnu: libgpg-error: Use git repository.
* gnu/packages/gnupg.scm (libgpg-error)[source]: Switch to git-fetch.
[native-inputs]: Add autoconf, automake, and texinfo.
[arguments]<#:configure-flags>: Enable maintainer mode.
<#phases>: Add ’create-version.
[home-page]: Update.
Change-Id: Ia94f35b16767a33d22515cba3224d767bb20df81
---
gnu/packages/gnupg.scm | 32 +++++++++++++++++++++++---------
1 file changed, 23 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index ca43c5e763..b34abf35c4 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -105,18 +105,32 @@
(version "1.61")
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
- version ".tar.bz2"))
- (sha256
- (base32
- "14sw73317735xq991sz0x5jqkr12y6572aw3mbwg8m635czl31bs"))))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://dev.gnupg.org/source/libgpg-error")
+ (commit (string-append "libgpg-error-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "00nhhyfhljx60xzjmp0lhz7b1zx7psx6hfs138y5q7r2jj2z8h1g"))))
(build-system gnu-build-system)
(arguments
(list
- #:configure-flags #~(list "--enable-install-gpg-error-config")
+ #:configure-flags #~(list "--enable-install-gpg-error-config"
+ ;; See README.GIT.
+ "--enable-maintainer-mode")
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'create-version
+ (lambda _
+ (call-with-output-file "doc/version.texi"
+ (lambda (port)
+ (format port "\
+@set UPDATED
+@set EDITION ~a
+@set VERSION ~a"
+ #$version
+ #$version)))))
#$@(cond
((%current-target-system)
;; If this is left out, some generated header
@@ -159,8 +173,8 @@
(("(^| )main *\\(.*" all)
(string-append all "{\n exit (77);//")))))))
(else #~())))))
- (native-inputs (list gettext-minimal))
- (home-page "https://gnupg.org")
+ (native-inputs (list autoconf automake gettext-minimal texinfo))
+ (home-page "https://gnupg.org/software/libgpg-error")
(synopsis "Library of error values for GnuPG components")
(description
"Libgpg-error is a small library that defines common error values