unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55951: Lowering an <operating-system> is sensitive to (%current-system)
@ 2022-06-13 21:23 Ludovic Courtès
  2022-06-14 22:32 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2022-06-13 21:23 UTC (permalink / raw)
  To: 55951

Consider this file:

--8<---------------cut here---------------start------------->8---
(use-modules (guix))

(lambda ()
  (lower-object (load "overdrive1.scm") "aarch64-linux"))
--8<---------------cut here---------------end--------------->8---

When ran on x86_64-linux, these two commands return different
derivations, contrary to what one might expect:

  guix build -f that-file.scm -d --no-grafts -s aarch64-linux
  guix build -f that-file.scm -d --no-grafts

That demonstrates that the result depends on (%current-system), even
though it shouldn’t because we’re explicitly specifying the system.

This has implications on ‘guix deploy’: if you try to deploy
aarch64-linux boxes from x86_64-linux (say), some of the derivations are
going to be for x86_64-linux instead of aarch64-linux, which can lead to
unbootable systems, as Ricardo reported a while back.

In particular, /gnu/store/…-activate.scm.drv (a direct dependency
/gnu/store/…-system.drv) is one of those derivations sensitive to
(%current-system).

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#55951: Lowering an <operating-system> is sensitive to (%current-system)
  2022-06-13 21:23 bug#55951: Lowering an <operating-system> is sensitive to (%current-system) Ludovic Courtès
@ 2022-06-14 22:32 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-06-14 22:32 UTC (permalink / raw)
  To: 55951-done

Ludovic Courtès <ludo@gnu.org> skribis:

> Consider this file:
>
> (use-modules (guix))
>
> (lambda ()
>   (lower-object (load "overdrive1.scm") "aarch64-linux"))
>
> When ran on x86_64-linux, these two commands return different
> derivations, contrary to what one might expect:
>
>   guix build -f that-file.scm -d --no-grafts -s aarch64-linux
>   guix build -f that-file.scm -d --no-grafts

Fixed in 7046e777212233b89df68379c270b448c45195ce.

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-14 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 21:23 bug#55951: Lowering an <operating-system> is sensitive to (%current-system) Ludovic Courtès
2022-06-14 22:32 ` Ludovic Courtès

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).