From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YEi/OACrp2JLBQEAbAwnHQ (envelope-from ) for ; Mon, 13 Jun 2022 23:24:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CKuqOACrp2KTUgEA9RJhRA (envelope-from ) for ; Mon, 13 Jun 2022 23:24:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B97230C65 for ; Mon, 13 Jun 2022 23:24:16 +0200 (CEST) Received: from localhost ([::1]:58076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0rXj-0001T2-MV for larch@yhetil.org; Mon, 13 Jun 2022 17:24:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0rXW-0001Sp-SN for bug-guix@gnu.org; Mon, 13 Jun 2022 17:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0rXW-0000rj-KA for bug-guix@gnu.org; Mon, 13 Jun 2022 17:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0rXW-0006a3-EU for bug-guix@gnu.org; Mon, 13 Jun 2022 17:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55951: Lowering an is sensitive to (%current-system) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 13 Jun 2022 21:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55951 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 55951@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165515540325238 (code B ref -1); Mon, 13 Jun 2022 21:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jun 2022 21:23:23 +0000 Received: from localhost ([127.0.0.1]:60627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0rWt-0006Z0-9Q for submit@debbugs.gnu.org; Mon, 13 Jun 2022 17:23:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:36686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0rWr-0006Ys-HC for submit@debbugs.gnu.org; Mon, 13 Jun 2022 17:23:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0rWq-00011O-E2 for bug-guix@gnu.org; Mon, 13 Jun 2022 17:23:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0rWm-0000qm-Kc for bug-guix@gnu.org; Mon, 13 Jun 2022 17:23:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=RwWqWu13XphSph+4djbFTGp7lXcciIXAVTRz28LeaPk=; b=LZyLjaCEwhbDqM ek1jxvw5Y6T9O10n1BMxAovRAHPpe6nO3cAR2Beek09XDp5vFyk1awDi1o4BjS2usQJUYwZoHW+1l iQeDqKykXebiAkVr+Eiwj8NViNDmZ0bbDw5Vof6BIuJ5WHPRez0WCRCf8VlBGbSjRZ1PKIubk3RvV qQlxUiFsoBxo1JuGGqyzQl12WPsmuiPkeDIaRstRQkM0+wOpBLP8veIxVY+Vrj8UWQfMTyHd2zvwM tdWH0Pkycw8e5J3DNLkAqwBSykilnEI5kn7RKR0b9D0QsQPMqGi8vVWC2LYHhozJLz9WC3RnZzaGR OYgIpr33jHagI7GkmdGA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:64737 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0rWm-0007Ih-83 for bug-guix@gnu.org; Mon, 13 Jun 2022 17:23:16 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 25 Prairial an 230 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la Tanche X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 13 Jun 2022 23:23:14 +0200 Message-ID: <87fsk8ntq5.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655155456; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RwWqWu13XphSph+4djbFTGp7lXcciIXAVTRz28LeaPk=; b=AoOfGVA4a0whW1F/oTYJv0l2vJTE7vPFjZsp/eXKZU7Au0JGfA8f5wxBd6iTgzTpZEqFXJ 8wqUr5uvh2GQj4jb8Q/9KtwCo/cKYcID7Ru0cZD+iqLYysYBdOLEl2k40NnH2igg8z8aMr vLpNkyzMeGE8BgbEAEJXKhrfT+yim1FLcwHZuSH1B6G2mab+3YBZFpKyh5VQDMavPvKP2f pQhvlFBR4E2t/qWA0dj6H3D4IzErJm0jL55kDzbjNRGJtSTKqgdIxh94iJcSRs60mvl0fm sQt2nOoCD42e0z/SjCeND6AhbkiA5brxNWoBsrGbADyZ3Ehn6CpSe0m98jLuTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655155456; a=rsa-sha256; cv=none; b=g64dTxuIOfnDGD6y8o+6NhU4iAE0R/eM0wsnMkfO30F6zUCaZd7cV2crgRN5lQ/gxWz4wa 0Ri/OhT5cDMoNlnNA0WCrRIBEWiz1UF7xCy6cgG7h+OO/QNvbc7qTYkqR/4/9aDODQux6f HCMGhX0+MPHfZeECpkWo6EnpfebU0VWQjguejJixVhSIjGdpy3gZtpq2Vl57Qd9iTQcM39 W6oniN92GEdSbddoBS9qngJXis6ArdHEkSPsF6Zh/x0xvNybLp8g/nwXBd6SLSaUXr/2xP o25KutZp0NE4Y3pHlkyPjO07Ms/3a4BHCuCd4+D7gs4keVVVrWqoCMKAMUfUmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=LZyLjaCE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=LZyLjaCE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8B97230C65 X-Spam-Score: -2.39 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ao9Z+plr82MP 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=E2=80=99t because we=E2=80=99re explicitly specifying the= system. This has implications on =E2=80=98guix deploy=E2=80=99: 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/=E2=80=A6-activate.scm.drv (a direct dependency /gnu/store/=E2=80=A6-system.drv) is one of those derivations sensitive to (%current-system). Ludo=E2=80=99.