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 MPC4EoHmZGMlMQEAbAwnHQ (envelope-from ) for ; Fri, 04 Nov 2022 11:16:33 +0100 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 eJDGEoHmZGOUrgAA9RJhRA (envelope-from ) for ; Fri, 04 Nov 2022 11:16:33 +0100 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 14B539B18 for ; Fri, 4 Nov 2022 11:16:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqtir-000129-VE; Fri, 04 Nov 2022 06:14:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqtip-00011n-Mu for help-guix@gnu.org; Fri, 04 Nov 2022 06:14:47 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqtio-0003ND-18 for help-guix@gnu.org; Fri, 04 Nov 2022 06:14:47 -0400 Received: by mail-wr1-x430.google.com with SMTP id w14so6357335wru.8 for ; Fri, 04 Nov 2022 03:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=63SfV7etMsxcFuCQd+Iho/vZLSSG2YSbqiv8l4OGA/0=; b=RAVpS+DztBbzw4YTHjSIpR11Syd/I2RJuLcNjzJTzy25+vUXxxMGm/HYlGvFAl8IwT p3XHwFXDhbB3i/Us9hGDp8G8rPyrZuIcEvFPheEA44/mIxsuYinCkBPF3RdgUEwjTLb2 AUoDlLJe/8HeZGRLc3Ap8ERUSuAYAAfwbwN3luJMVF9RdbfwvfFLHKibIBvpBNsdy2+M R99PPoWqvMV8PYY8EvFOumHD25tXeXpC0atAkw3ilpQcCc5y2rlSJv0oyOcnbD5la8jY 6Sc93hRx43tSY3U0uuJW8DLHxCxuTtINED0/xppJgGbSb3HDyvsirDQZXEcVLLHp5FbX Z2AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=63SfV7etMsxcFuCQd+Iho/vZLSSG2YSbqiv8l4OGA/0=; b=yup6/po7jyfGzWiDT879lt9jqZzn8P25q1wVhPYx7jpl5nUpXme9Us6qfa6xQxfp57 Ps1S7BQxJa9mTL8XAGrgB1KYU9BXic+OhxV04L0QuUiYsW54jg1LeF43oRKUgPNytt9h dN9REy37i+eDgt7j7SQ1wUNsG3bms2980tqjbbgIGcSa4i71gjim3T0piPdi8FvfdGap ytzFuYPZLPNxGjLMvrMtE58hC2CjsgRp1UVys6goeeI5TDX0fbNvnEA/pI7jFIva2K8i R5x35ruY1wawOvp+ajY9GTXzcNJUKdD5DPfNMz2oIDITRfjZWKT+h+3yB/oqTpN9Wjkw AnAg== X-Gm-Message-State: ACrzQf3nsMDhwAtexTYVIT/Fs9Sly0txEfquMTtOF5F1fwbx7AtpyH86 c3+SDU02YcW4svWPjf4pP2eU82jLvM8= X-Google-Smtp-Source: AMsMyM7f326TeH5aUTQR/4siPPcbCfalzKMrmicdAaq1vciuKCLD3RYR8iptpewhMtGfF4yyKEajWA== X-Received: by 2002:a05:6000:684:b0:236:839f:9276 with SMTP id bo4-20020a056000068400b00236839f9276mr21127843wrb.586.1667556884835; Fri, 04 Nov 2022 03:14:44 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id h8-20020a05600c2ca800b003b4a699ce8esm2649474wmc.6.2022.11.04.03.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 03:14:44 -0700 (PDT) From: zimoun To: jgart , Guix Help Subject: Re: which package gets built first? In-Reply-To: <20221104003432.GB9043@dismail.de> References: <20221104003432.GB9043@dismail.de> Date: Fri, 04 Nov 2022 10:49:21 +0100 Message-ID: <86wn8b3v8e.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667556993; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=63SfV7etMsxcFuCQd+Iho/vZLSSG2YSbqiv8l4OGA/0=; b=LNC4X8exHKzy/5IFe/Vco5/f0x4fHPIJHNQNKJbTVMdWDgyLhe/3pnV7x0fafVPQFh99Hw oA2rRZUjLgXB3n/SfDNsvZci9sbBmOnc3oRHG1A0CPwAvEKED/Jpr7fMemoKRPgKudb47X INi8qxk4YAydJxmjBKjOr3NJFkZGguMDHwvyG2i/A1KiPif8B2Mtcy7Nq+mp14hn/CTCxN xVDZkSjVxLizZ2tCF3UxCWs55pyv28mGa7nIatYn9GFe9rdojTNkbPFCB7wTZ4AAQMfv5V Rgv5oQ6AWRGYl1UDRKPDVzv12Pq5S473mXMookN7fIwS1FuoOPnLGELIzPoB7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667556993; a=rsa-sha256; cv=none; b=lVZkX4AHtthfC8vNoY9PJoH2XBsoOxmrXYS8SbDlT5P6Mzt5J6wH3fJItuyOANUitgrAyP YTE8J9iju+aq+O9g8ot41strMD3Htdf8Tx3yDg5Gpd0izWqKTth0tfokcAHwPK5/y6s3ks wOH4XiHicwofm+wRYUf1d9DOsvTa/n/Y7B4MYE+Nh7RVNNwjsoFxW0fOqoFttqelF+1sC7 KbB7kqqIWabUdTWJ7P7d23q6eoQQ3JNfJcJwcsI1Eeeai1evyGe9znbxVF7qy9gzItSnn4 oqqOOudKLGrGlhcLfxGM/YZ8g+/bzn7xysJrgvt2Af872ODKT6CSrbLx8B3rBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RAVpS+Dz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RAVpS+Dz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 14B539B18 X-Spam-Score: -8.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1uuah/iWWpgS Hi, On Fri, 04 Nov 2022 at 00:34, jgart wrote: > What determines which package gets built first in the following invocatio= n? > > `guix build emacs-zig-mode zig` It depends. :-) Usually, something like guix thing stuff1 stuff2 is processed in that order: stuff2 then stuff1. Other said, the CLI is somehow parsed from right to left. For instance, see bug#43585 [1] or bug#50473. Well, compare: --8<---------------cut here---------------start------------->8--- $ guix package --show=3Demacs --show=3Dzig | recsel -Cp name name: zig name: emacs $ guix package --show=3Dzig --show=3Demacs | recsel -Cp name name: emacs name: zig --8<---------------cut here---------------end--------------->8--- (Note that =E2=80=9Cguix show=E2=80=9D process from left to right since it = is how most of us type and read.) That=E2=80=99s said, =E2=80=9Cguix build=E2=80=9D is special. Because it s= omehow processes the topological order between stuff1 and stuff2. Other said, if stuff2 depends on stuff1, then it first builds stuff1 then second stuff2. 1: 2: Cheers, simon