Subject: guix pull: wrong %system when using --system flag

From: Diego Nicola Barbato <[email-masked]>
Date: Wed, 13 Feb 2019 13:44:48 +0100

Hello Guix,

When running ‘guix pull’ with the --system flag the resulting guix is
configured for the host architecture instead of the target
architecture (i.e. the %system variable in ‘(guix config)’ is set to the
host architecture instead of the target architecture).

E.g. after running ‘guix pull -p test -s i686-linux’ on an x86_64 host
the file test/share/guile/site/2.2/guix/config.scm will contain the
declaration ‘(define-public %system "x86_64-linux")’.

I run what was formerly known as GuixSD (commit: 571a01d) on x86_64.

Regards,

Diego