aboutsummaryrefslogtreecommitdiff
path: root/guix/packages.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2019-08-01 08:46:13 -0400
committerDavid Thompson <dthompson2@worcester.edu>2019-08-26 09:40:17 -0400
commit6cef554be8926b026226b4bfd0bb2f37bd24aeae (patch)
treef8fcce1ee1cc75b45995de93aea53401f085f321 /guix/packages.scm
parente85bb00c553f96257f9733d814b9bcac992d43dc (diff)
downloadguix-6cef554be8926b026226b4bfd0bb2f37bd24aeae.tar
guix-6cef554be8926b026226b4bfd0bb2f37bd24aeae.tar.gz
packages: Apply target triplet in bag-transitive-host-inputs.
Fixes a bug where propagated inputs that should be cross-compiled are instead compiled for the host system. * guix/packages.scm (bag-transitive-host-inputs): Call transitive-inputs in the context of the bag's target system triplet.
Diffstat (limited to 'guix/packages.scm')
-rw-r--r--guix/packages.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index c94a651f27..143417b861 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -796,7 +796,8 @@ dependencies are known to build on SYSTEM."
(define (bag-transitive-host-inputs bag)
"Same as 'package-transitive-target-inputs', but applied to a bag."
- (transitive-inputs (bag-host-inputs bag)))
+ (parameterize ((%current-target-system (bag-target bag)))
+ (transitive-inputs (bag-host-inputs bag))))
(define (bag-transitive-target-inputs bag)
"Return the \"target inputs\" of BAG, recursively."