From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WJhjLq3p818iNQAA0tVLHw (envelope-from ) for ; Tue, 05 Jan 2021 04:23:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SNUXKq3p81+DPQAAbx9fmQ (envelope-from ) for ; Tue, 05 Jan 2021 04:23:09 +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 CB13C940276 for ; Tue, 5 Jan 2021 04:23:08 +0000 (UTC) Received: from localhost ([::1]:35858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwdsB-0000sd-PG for larch@yhetil.org; Mon, 04 Jan 2021 23:23:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwds2-0000sQ-FE for guix-devel@gnu.org; Mon, 04 Jan 2021 23:22:58 -0500 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:34639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwds0-0002uE-N3 for guix-devel@gnu.org; Mon, 04 Jan 2021 23:22:58 -0500 Received: by mail-pg1-x536.google.com with SMTP id i5so20497134pgo.1 for ; Mon, 04 Jan 2021 20:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=ml5b1y3aM7IzM6qiZMfEZs8mAt4vv3AkNYAfX+CMcP8=; b=rLFUpV+5ut1vsgxWIu7/rT5UDsZoxbiA5fMIP7fPPdUV0d+UU8QtYD7RUtBOnjCwZm WDoHVDCSCw19es7e6zV0teP3hoVr25RxdZg8lgHUabEN+pGZyu7HSBv/5jJUtTQ4nttm o3jaP8lbM0/SU3064CDMUXgigupsR15dFdKaZ4QI5acAKpjwOD4FNoMfATnYzwxM0UbT wXQHJhXL60ME6alc06oRUECPokQNKQGveMvHFIAYlVOdz/zK0qZ9+bRef5VbggC5V/Rx ucLkbYpUm+qiXBpDpE7MM4lVPVC/iEFWHtCaB3f3vdqhdcLATUDxurT9h5PqsTNNuWCW Gyxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=ml5b1y3aM7IzM6qiZMfEZs8mAt4vv3AkNYAfX+CMcP8=; b=Bsi78Endu0JW3ywjxcGFNBTkd3CmlmS1H1S061G2bHTzu49bPAVhBwpbR82Cjxxc1H sPwBONV3RDG2zUu1s4Ix9arBqycQMvuzMDZnmbhVOH7bnmIah842tD25TwA9NpdCUSeh EMiAs6t1eVmD9qKmioyppuD499S9J5nDT3Io7RHaKv7wkJ2ftLXVbdqteyP4enYvk1Yg nh6TBH2CfYTeBXOk7WeKyMOZ0L6mjRk699LpiGNWUQb1FvAcs/HdgmnhioxWIJFH9hK/ eCZR+/R6mTn0oEI2FCegKe48WZf6U4WNanpEiezdSMDiyaJyuGRWGDq7/k6BPQlhRdTB 9Y9A== X-Gm-Message-State: AOAM530vdWzQJNhoxNIqhcGKhOZ8ksBuVlnN+hFrsnM1vbSBsqLPLoQV U17b1xFg4srVvfaYWtBp/thbQeVPh3H03Q== X-Google-Smtp-Source: ABdhPJw9I/XK1KF1Ieg8OsTmc3KupDZPtTISf4K1H9wp6ZYum/xBSDU6VvNHRwcN44QUmUaCgZETqw== X-Received: by 2002:a65:6a43:: with SMTP id o3mr38839011pgu.296.1609820574658; Mon, 04 Jan 2021 20:22:54 -0800 (PST) Received: from garuda-lan ([2601:601:9d00:688::e6b]) by smtp.gmail.com with ESMTPSA id h17sm56160323pfc.119.2021.01.04.20.22.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 20:22:53 -0800 (PST) From: Chris Marusich To: guix-devel@gnu.org Subject: guix build -d with a target causes many builds Date: Mon, 04 Jan 2021 20:22:48 -0800 Message-ID: <87turwypuv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=cmmarusich@gmail.com; helo=mail-pg1-x536.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: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=rLFUpV+5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: CB13C940276 X-Spam-Score: -5.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: rCryupDSJRKg --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I've noticed that Guix builds many things when I ask it to instantiate a derivation in the following way: [0] [env] marusich@garuda-lan:~/guix/repos/guix-worktrees/wip-ppc64 $ guix build -d --target=3Dpowerpc64-linux-gnu -e '(@@ (gnu packages make-b= ootstrap) %gcc-static)' The following derivations will be built: /gnu/store/i5wn3xl6p0zw1vglscgk0bs9dwc6hdh6-gcc-static-5.5.0.drv /gnu/store/3h2sk37iim53fh7g9r3sd1q0xzhqwa51-gcc-cross-powerpc64-linux-gn= u-7.5.0.drv /gnu/store/84k0j5jm316cwf7h66vrw1vmvkd4kbck-glibc-cross-powerpc64-linux-= gnu-2.31.drv /gnu/store/d36n7qy9xbgwpaw3nw8k9dj51hzmdnr4-gcc-cross-sans-libc-powerpc6= 4-linux-gnu-7.5.0.drv /gnu/store/mqar9bnapfcfkna3rvy28awhlpd3q65q-binutils-cross-powerpc64-lin= ux-gnu-2.34.drv /gnu/store/pzp93dw3rr6sp2ybi3dzs6kd7gvigfsk-ld-wrapper-powerpc64-linux-g= nu-0.drv /gnu/store/n7dhpsq41q4kdbqgniljbwrlawvmmlp6-linux-libre-headers-cross-po= werpc64-linux-gnu-5.4.20.drv /gnu/store/9p5anrji5wgkf66k09jhbsr3fqwwi7cn-gcc-cross-powerpc64-linux-gn= u-7.5.0.drv /gnu/store/r4ac80znwlrnh4jmj2sbczc4mn66mqdg-glibc-cross-powerpc64-linux-= gnu-2.31.drv /gnu/store/ap8ri9ddka13vyrsl72pzqslagi4v7vj-gmp-6.2.0.drv /gnu/store/arxf2alzwf9rmz5hz8h11j4j12drxm3i-glibc-cross-powerpc64-linux-= gnu-2.31.drv /gnu/store/d127w5flv12s4bfmpf4nwrvg3sibvfya-linux-libre-headers-cross-po= werpc64-linux-gnu-5.4.20.drv /gnu/store/j3d5kr7qlr6g3lq0dwc8z8jh6w814z9v-isl-0.18.drv /gnu/store/j90wwahzd5ldw7ai11zf5lnp3kbbrmkh-mpfr-4.0.2.drv /gnu/store/mz9fdir4avdda5cw1snyf8vhpq70c9na-libelf-0.8.13.drv /gnu/store/q9x04y75mq2nfp2a6gwa0pvrgv60aah9-mpc-1.1.0.drv /gnu/store/xk4yv7xj15qnl3zv2m8nnzrw0bdgjsx3-zlib-1.2.11.drv 171.3 MB will be downloaded: /gnu/store/ir3092v7657h6g4g2vlsw3zrli3rndb3-zlib-1.2.11.tar.gz /gnu/store/amc0nizxsdcj212nk9a3ivr946hzhl6c-mpc-1.1.0 /gnu/store/j4npmpn7dxmfknyfnhj4q4jmdwmk3klg-mpc-1.1.0.tar.gz /gnu/store/0z3z3lhig0xyy817nv70p2hp1n1wqawa-libelf-0.8.13.tar.gz /gnu/store/bkyiyc4hrjcd4ljx6jqf7z05hm4qxcwd-mpfr-4.0.2.tar.xz /gnu/store/2jj3il6p5xrc4gkncj9303an81x2csc9-perl-5.30.2 /gnu/store/n1yvkd7jk50qg1vv9cca6ywynkqvaqgq-ncurses-6.2 /gnu/store/j709qpwy790bcra6w8kvyz1v5zcsw8df-texinfo-6.7 /gnu/store/jk5k0sgqpj0sj4ymgq7m8g8617i0xji2-m4-1.4.18 /gnu/store/57i37x74wz7ar703smykildzvhpdds1g-gmp-6.2.0 /gnu/store/f2r1w8y7l3lpwh4i47nq2s1vqlqxq0jb-glibc-2.31 /gnu/store/rgi1k6kx4v9m8449w00i6jfxvpgaz73g-glibc-2.31-static /gnu/store/df1gdl0vwwbzv04snfha0g88rj02pni9-gcc-5.5.0 /gnu/store/waz3iz17vlbpfc2fm9yiym6bgbsajghf-mpfr-4.0.2 /gnu/store/hnsi8iaimgss3v81h7h1r8ck55c0968h-popt-1.18 /gnu/store/vpy0bcjw0yzaj7j7qx8rfc88c7r357k3-rsync-3.1.3 /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar.xz /gnu/store/l788x07ska5vffayz0gayv4hsx5flxal-module-import-compiled /gnu/store/lqz1pygx3x5dd6ad2l3n8ixm1vh6czj4-python-minimal-3.8.2 /gnu/store/ba6s3g925nggb57b1gpj2jkhqsq24s4q-libstdc++-7.5.0 /gnu/store/xaclbfx6rvnbsq5qmry0251r7y82rgnv-libstdc++-headers-7.5.0 /gnu/store/j8b9i4czpzb298zwa15wpyr42471qfbm-module-import-compiled The Guix documentation ((guix) Additional Build Options) says the "-d" option should just give me the derivation paths, not the output paths: =E2=80=98--derivations=E2=80=99 =E2=80=98-d=E2=80=99 Return the derivation paths, not the output paths, of the given packages. So, I'm confused about why all these builds need to happen. Didn't I only ask Guix to instantiate the derivation - not realize it? In other words, I expected Guix to calculate the transitive closure of the requested derivation's inputs (mainly other derivations, I think?) and write them to the store, without actually executing any significant builds. I suppose that Guix is building these things in order to do just that, but I don't quite understand why this happens. Can someone explain it? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl/z6ZgACgkQ3UCaFdgi Rp3GoRAAtKXYACAfbGxHZB9maIVuQTdwjxNrl3s39yJMJHAPJAL7hUPSds5BnYRP o4OZKvUJfSdy/elsLmxkKUs4Hdr2yyhvqw1b0c5OoD3ylx8qJ9mQGaxk1Bq14PTO 7TjGiS+LUgKqIPojLQ8gpqb+zgHAlVpySHrO2x3FQJpBtEsF53QcbDhKIloe1HBO r1rz9pB5qjcUu19ykArZjchY27l51o+yCHtO1KNM5iD267qokM+6Icb5S7Aq+j8o v+1PndtqUECAb/R3MG+YSvIre2DOYuQDcGYC6eb3Dl7etqVRBUDKzecRRpYABsMh BNzFbqUcb6GIJSHqV5T3uEYfyKfuGI03M6ELKNtnUwwyVGkVHyMUFHVDolXuWja3 +5jJlndG9STWOunm/3x9hyLw6ICvOrEoZNLgU/6mzkpkqMpIQSd3ZK9djNf3QjIy 9pv5dYxH6eIdIHxOssWgqQAmuLHzW6RysCU1CWivoMGa58psdaKIXCPHGNP6Elsb 5oltK43DgddA7HMUEUuQLLz5t6MZjYIEHTrwV+fZOcrghAR7JEsUJr1gMALx48f5 84XedeNnUkOjnq49aUiUSLGGhPqMRctcFMBE+y57CRFcmGYSgWa0V/5mvrDg11R6 m1q0SGeBd4ESB4FH1HTs//w1gNIUD7JM1z/U1cGK/gvUw5TMyc8= =ubmc -----END PGP SIGNATURE----- --=-=-=--