gnu: bash: Do not autoload (gcrypt hash).

Fixes <https://bugs.gnu.org/41457>.
Reported by Matias Jose Seco Baccanelli <matias_jose_seco@autoproduzioni.net>.

* gnu/packages/bash.scm: Avoid #:autoload for (gcrypt hash).  On Guile 2.2,
autoloading would bring it not only the 'port-sha256' binding (as on
3.0) but also the 'sha256' binding.  As a result, use of 'sha256' in the
'origin' form wouldn't match.
This commit is contained in:
Ludovic Courtès 2020-05-22 18:34:22 +02:00
parent 21051eb79e
commit 50ea3135e0
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -38,8 +38,11 @@ (define-module (gnu packages bash)
#:use-module (guix store) #:use-module (guix store)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:autoload (guix gnupg) (gnupg-verify*) #:autoload (guix gnupg) (gnupg-verify*)
#:autoload (gcrypt hash) (port-sha256)
#:autoload (guix base32) (bytevector->nix-base32-string) #:autoload (guix base32) (bytevector->nix-base32-string)
;; See <https://bugs.gnu.org/41457> for why not #:autoload here.
#:use-module ((gcrypt hash) #:select (port-sha256))
#:use-module (srfi srfi-1) #:use-module (srfi srfi-1)
#:use-module (srfi srfi-26) #:use-module (srfi srfi-26)
#:use-module (ice-9 format)) #:use-module (ice-9 format))