import: elpa: Work around Guile 3.0.[5-7] compiler bug.

Fixes <https://issues.guix.gnu.org/49006>.
Reported by Xinglu Chen <public@yoctocell.xyz>.

* guix/import/elpa.scm (elpa-package->sexp)[melpa-recipe]: Add call to
'identity'.
This commit is contained in:
Ludovic Courtès 2021-11-06 16:42:32 +01:00
parent 86ed003990
commit d21353adea
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 3 deletions

View File

@ -337,9 +337,10 @@ the package named PACKAGE-NAME."
type '<elpa-package>'."
(define melpa-recipe
(if (eq? repo 'melpa)
(package-name->melpa-recipe (elpa-package-name pkg))
#f))
;; XXX: Call 'identity' to work around a Guile 3.0.[5-7] compiler bug:
;; <https://bugs.gnu.org/48368>.
(and (eq? (identity repo) 'melpa)
(package-name->melpa-recipe (elpa-package-name pkg))))
(define name (elpa-package-name pkg))