Maxim Cournoyer 375d5d03c9
pack: Fix the system value passed to build-docker-image.
Before this change, the system value would be passed as x86_64 when using a
i686-linux emulated system, e.g.:

  $ guix environment --system=i686-linux --ad-hoc  guile -- \
      guile -c '(display (utsname:machine (uname))) (newline)'
  x86_64

This change uses the Guile builtin %host-type variable, which doesn't have
this problem:

  $ guix environment --system=i686-linux --ad-hoc guile -- \
      guile -c '(display %host-type) (newline)'
  i686-unknown-linux-gnu

* guix/scripts/pack.scm (docker-image)[#:system] Use %host-type as a fall-back
when target is not defined.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2021-06-16 21:44:33 -04:00
..
2021-06-13 23:57:45 +02:00
2021-06-05 09:12:39 +02:00
2021-03-06 11:41:48 +01:00
2019-12-15 00:34:05 +01:00
2020-07-05 03:15:08 +05:30
2021-01-04 23:54:16 +01:00
2020-07-05 16:07:59 +05:30
2020-12-09 22:25:17 +01:00
2020-04-17 23:36:47 +02:00
2021-01-04 23:54:16 +01:00
2021-01-04 23:54:16 +01:00
2017-11-08 22:31:58 +01:00
2021-04-12 18:42:22 +02:00
2020-12-19 23:25:01 +01:00
2018-09-04 17:25:11 +02:00
2021-05-11 12:49:53 +02:00
2021-06-14 18:35:18 +02:00