build-system/gnu: Cross builds properly handle #:allowed-references & co.
authorLudovic Courtès <ludo@gnu.org>
Sat, 20 Jun 2020 20:56:08 +0000 (22:56 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 20 Jun 2020 21:35:58 +0000 (23:35 +0200)
Fixes <https://bugs.gnu.org/41775>.

* guix/build-system/gnu.scm (gnu-cross-build)[canonicalize-reference]:
Pass TARGET and SYSTEM to 'package-cross-derivation'.

guix/build-system/gnu.scm

index 60851c5..6b481ad 100644 (file)
@@ -513,9 +513,11 @@ platform."
   (define canonicalize-reference
     (match-lambda
      ((? package? p)
-      (derivation->output-path (package-cross-derivation store p system)))
+      (derivation->output-path (package-cross-derivation store p
+                                                         target system)))
      (((? package? p) output)
-      (derivation->output-path (package-cross-derivation store p system)
+      (derivation->output-path (package-cross-derivation store p
+                                                         target system)
                                output))
      ((? string? output)
       output)))