From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6CF9FMdmuF4iUQAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 20:40:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iBC8ANVmuF4sbgAAB5/wlQ (envelope-from ) for ; Sun, 10 May 2020 20:40:53 +0000 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 735CC940609 for ; Sun, 10 May 2020 20:40:50 +0000 (UTC) Received: from localhost ([::1]:36574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXskk-0006DU-9h for larch@yhetil.org; Sun, 10 May 2020 16:40:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXsjy-0005E7-7S for bug-guix@gnu.org; Sun, 10 May 2020 16:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXsjx-0000jz-Tt; Sun, 10 May 2020 16:40:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXsjx-0000KG-Pt; Sun, 10 May 2020 16:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41182: Profile hooks ignore system and target Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: janneke@gnu.org, m.othacehe@gmail.com, bug-guix@gnu.org Resent-Date: Sun, 10 May 2020 20:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41182 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41182@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Xcc: Jan Nieuwenhuizen , Mathieu Othacehe Received: via spool by submit@debbugs.gnu.org id=B.15891431501169 (code B ref -1); Sun, 10 May 2020 20:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 May 2020 20:39:10 +0000 Received: from localhost ([127.0.0.1]:50543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXsj0-0000If-K6 for submit@debbugs.gnu.org; Sun, 10 May 2020 16:39:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:40298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXsiy-0000IG-6M for submit@debbugs.gnu.org; Sun, 10 May 2020 16:39:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXsix-0004vD-VL for bug-guix@gnu.org; Sun, 10 May 2020 16:38:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49509) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXsix-000841-Mq for bug-guix@gnu.org; Sun, 10 May 2020 16:38:59 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44234 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jXsix-00078A-99 for bug-guix@gnu.org; Sun, 10 May 2020 16:38:59 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?UTF-8?Q?Flor=C3=A9al?= an 228 de la =?UTF-8?Q?R=C3=A9volution?= 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: Sun, 10 May 2020 22:38:57 +0200 Message-ID: <87a72f8qzi.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.5 (/) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 X-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Scan-Result: default: False [-1.01 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53919722993546]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.08), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ludo@gnu.org,bug-guix-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:url]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; R_DKIM_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_COUNT_SEVEN(0.00)[10]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: MB/VzagTn/Of Hello! As janneke found (and maybe Mathieu also), the profile hooks called by =E2=80=98profile-derivation=E2=80=99 for some reason end up using a differe= nt system and target, as can be seen in this example: --8<---------------cut here---------------start------------->8--- $ guix describe Generacio 141 May 10 2020 11:41:44 (nuna) guix 279569c repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 279569ca8251b9ae3f96e4486e4614e340d0fe4f $ guix pack --target=3Darm-linux-gnueabihf --no-grafts idutils -d /gnu/store/rjbs4a5l1vi3winbf71xz3d0hhmdwnjj-tarball-pack.tar.gz.drv $ guix gc -R /gnu/store/rjbs4a5l1vi3winbf71xz3d0hhmdwnjj-tarball-pack.tar.g= z.drv | grep idutils-4.6.drv /gnu/store/kfv7bwzapb3lfirdpyjh5zcrrpld90ni-idutils-4.6.drv /gnu/store/1y5rjcvs6giag414wg4ngz7cp4mxy76v-idutils-4.6.drv $ guix build idutils --no-grafts -d /gnu/store/kfv7bwzapb3lfirdpyjh5zcrrpld90ni-idutils-4.6.drv $ guix build idutils --no-grafts -d --target=3Darm-linux-gnueabihf /gnu/store/1y5rjcvs6giag414wg4ngz7cp4mxy76v-idutils-4.6.drv --8<---------------cut here---------------end--------------->8--- We should be seeing only the cross-compile derivation. Where does the native derivation come from? --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix graph --path -t derivation /gnu/store/rjbs4a5l1vi3win= bf71xz3d0hhmdwnjj-tarball-pack.tar.gz.drv /gnu/store/kfv7bwzapb3lfirdpyjh5z= crrpld90ni-idutils-4.6.drv /gnu/store/rjbs4a5l1vi3winbf71xz3d0hhmdwnjj-tarball-pack.tar.gz.drv /gnu/store/hxp1gqbmmq4hjwnb8m1amp15k0ax455m-profile.drv /gnu/store/3180cdca49sl6xhn9prx9xcwv20jlpdl-fonts-dir.drv /gnu/store/kfv7bwzapb3lfirdpyjh5zcrrpld90ni-idutils-4.6.drv --8<---------------cut here---------------end--------------->8--- Actually all the profile hooks refer to the native derivation. To be continued=E2=80=A6 Ludo=E2=80=99.