emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55951: closed (Lowering an <operating-system> is sensitive to (%curr


From: GNU bug Tracking System
Subject: bug#55951: closed (Lowering an <operating-system> is sensitive to (%current-system))
Date: Tue, 14 Jun 2022 22:34:01 +0000

Your message dated Wed, 15 Jun 2022 00:32:54 +0200
with message-id <87sfo6vpt5.fsf@gnu.org>
and subject line Re: bug#55951: Lowering an <operating-system> is sensitive to 
(%current-system)
has caused the debbugs.gnu.org bug report #55951,
regarding Lowering an <operating-system> is sensitive to (%current-system)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
55951: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55951
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Lowering an <operating-system> is sensitive to (%current-system) Date: Mon, 13 Jun 2022 23:23:14 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
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’.



--- End Message ---
--- Begin Message --- Subject: Re: bug#55951: Lowering an <operating-system> is sensitive to (%current-system) Date: Wed, 15 Jun 2022 00:32:54 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
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’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]