From unknown Mon Aug 18 14:22:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24886 <24886@debbugs.gnu.org> To: bug#24886 <24886@debbugs.gnu.org> Subject: Status: Grafting triggers a download of all the outputs of each derivation Reply-To: bug#24886 <24886@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:22:57 +0000 retitle 24886 Grafting triggers a download of all the outputs of each deriv= ation reassign 24886 guix submitter 24886 ludo@gnu.org (Ludovic Court=C3=A8s) severity 24886 important thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 05 17:54:13 2016 Received: (at submit) by debbugs.gnu.org; 5 Nov 2016 21:54:13 +0000 Received: from localhost ([127.0.0.1]:46184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c38uj-00024q-Js for submit@debbugs.gnu.org; Sat, 05 Nov 2016 17:54:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c38uh-00024e-LY for submit@debbugs.gnu.org; Sat, 05 Nov 2016 17:54:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c38ub-0003Nh-AN for submit@debbugs.gnu.org; Sat, 05 Nov 2016 17:54:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46698) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c38ub-0003NS-7h for submit@debbugs.gnu.org; Sat, 05 Nov 2016 17:54:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c38uZ-00037P-Nm for bug-guix@gnu.org; Sat, 05 Nov 2016 17:54:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c38uW-0003JZ-Mp for bug-guix@gnu.org; Sat, 05 Nov 2016 17:54:03 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c38uW-0003JS-JR; Sat, 05 Nov 2016 17:54:00 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:50606 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1c38uV-00070K-Uh; Sat, 05 Nov 2016 17:54:00 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Hartmut Goebel Subject: Re: Why is die "doc" output downloaded when building this package? References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 Brumaire an 225 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-unknown-linux-gnu Date: Sat, 05 Nov 2016 22:53:57 +0100 In-Reply-To: (Hartmut Goebel's message of "Sat, 5 Nov 2016 18:03:28 +0100") Message-ID: <871syp61ai.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -7.4 (-------) X-Debbugs-Envelope-To: submit Cc: bug-guix@gnu.org, help-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.4 (-------) Hi, (Adding a bug at bug-guix@gnu.org.) Hartmut Goebel skribis: > when building this package, qt-4.8.7-doc (the doc-output of qt-4.7.8) > will be downloaded. I do not understand why. Most likely this is due to a limitation of the current implementation of grafts: all the outputs of packages on a =E2=80=9Cgrafting path=E2=80=9D ne= ed to be downloaded, even if some of these outputs are unused. This is because =E2=80=98graft-derivation=E2=80=99 takes a derivation, such= as Qt=E2=80=99s, and returns a derivation with as many outputs, but marked as non-substitutable (locally built). Because it=E2=80=99s locally built, all= the outputs of the original derivation must be fetched just to be able to build the grafted derivation, even if only one of those outputs is needed. I think we could fix that by creating one graft derivation for each output of the original derivation. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 06 10:25:49 2016 Received: (at submit) by debbugs.gnu.org; 6 Nov 2016 15:25:49 +0000 Received: from localhost ([127.0.0.1]:47043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3PKP-0006O0-1q for submit@debbugs.gnu.org; Sun, 06 Nov 2016 10:25:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3PKO-0006Np-Ce for submit@debbugs.gnu.org; Sun, 06 Nov 2016 10:25:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3PKI-0000X7-Ci for submit@debbugs.gnu.org; Sun, 06 Nov 2016 10:25:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3PKI-0000Wn-AM for submit@debbugs.gnu.org; Sun, 06 Nov 2016 10:25:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3PKH-00021l-8K for bug-guix@gnu.org; Sun, 06 Nov 2016 10:25:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3PKE-0000SK-08 for bug-guix@gnu.org; Sun, 06 Nov 2016 10:25:41 -0500 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:45508) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3PKD-0000Q8-Na; Sun, 06 Nov 2016 10:25:37 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tBfXb0Hmqz3hnG7; Sun, 6 Nov 2016 16:25:34 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tBfXW3pcFzvmCk; Sun, 6 Nov 2016 16:25:31 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id dOb-iiTc3zGZ; Sun, 6 Nov 2016 16:25:30 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-153-154.dynamic.mnet-online.de [188.174.153.154]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sun, 6 Nov 2016 16:25:30 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 017F460589; Sun, 6 Nov 2016 16:25:29 +0100 (CET) Subject: Re: Why is die "doc" output downloaded when building this package? To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <871syp61ai.fsf@gnu.org> From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: Date: Sun, 6 Nov 2016 16:25:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <871syp61ai.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: bug-guix@gnu.org, help-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Am 05.11.2016 um 22:53 schrieb Ludovic Court=C3=A8s: > Most likely this is due to a limitation of the current implementation o= f > grafts: all the outputs of packages on a =E2=80=9Cgrafting path=E2=80=9D= need to be > downloaded, even if some of these outputs are unused. IC. Thanks for the explanation. --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 07 04:26:22 2016 Received: (at control) by debbugs.gnu.org; 7 Nov 2016 09:26:22 +0000 Received: from localhost ([127.0.0.1]:47510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3gC6-0000B5-KC for submit@debbugs.gnu.org; Mon, 07 Nov 2016 04:26:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3gC4-0000Aq-Il for control@debbugs.gnu.org; Mon, 07 Nov 2016 04:26:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3gBv-0006Ql-EP for control@debbugs.gnu.org; Mon, 07 Nov 2016 04:26:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3gBv-0006QT-Ag for control@debbugs.gnu.org; Mon, 07 Nov 2016 04:26:11 -0500 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:55272 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1c3gBu-0008GF-PF for control@debbugs.gnu.org; Mon, 07 Nov 2016 04:26:11 -0500 Date: Mon, 07 Nov 2016 10:26:09 +0100 Message-Id: <87fun3wsi6.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #24886 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.0 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.0 (-------) retitle 24886 Grafting triggers a download of all the outputs of each derivation From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 15:40:46 2016 Received: (at control) by debbugs.gnu.org; 9 Nov 2016 20:40:46 +0000 Received: from localhost ([127.0.0.1]:51277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4Zfp-0002KJ-SN for submit@debbugs.gnu.org; Wed, 09 Nov 2016 15:40:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4Zfo-0002K5-70 for control@debbugs.gnu.org; Wed, 09 Nov 2016 15:40:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4Zfi-0006xT-Fb for control@debbugs.gnu.org; Wed, 09 Nov 2016 15:40:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4Zfi-0006xJ-Cw for control@debbugs.gnu.org; Wed, 09 Nov 2016 15:40:38 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:57496 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1c4Zfh-0006bS-N2 for control@debbugs.gnu.org; Wed, 09 Nov 2016 15:40:38 -0500 Date: Wed, 09 Nov 2016 21:40:35 +0100 Message-Id: <87mvh875fg.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #24886 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.9 (-------) severity 24886 important From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 05:12:25 2017 Received: (at 24886-done) by debbugs.gnu.org; 25 Jan 2017 10:12:25 +0000 Received: from localhost ([127.0.0.1]:41516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWKYz-0000yf-7p for submit@debbugs.gnu.org; Wed, 25 Jan 2017 05:12:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWKYx-0000yQ-JI for 24886-done@debbugs.gnu.org; Wed, 25 Jan 2017 05:12:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWKYm-0001Ic-BI for 24886-done@debbugs.gnu.org; Wed, 25 Jan 2017 05:12:18 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWKYm-0001IY-7z; Wed, 25 Jan 2017 05:12:12 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:39224 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cWKYl-0002XY-LH; Wed, 25 Jan 2017 05:12:12 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Hartmut Goebel Subject: Re: bug#24886: Why is die "doc" output downloaded when building this package? References: <871syp61ai.fsf@gnu.org> Date: Wed, 25 Jan 2017 11:12:09 +0100 In-Reply-To: <871syp61ai.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 05 Nov 2016 22:53:57 +0100") Message-ID: <87mvef30ue.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.2 (--------) X-Debbugs-Envelope-To: 24886-done Cc: 24886-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.2 (--------) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Hartmut Goebel skribis: > >> when building this package, qt-4.8.7-doc (the doc-output of qt-4.7.8) >> will be downloaded. I do not understand why. > > Most likely this is due to a limitation of the current implementation of > grafts: all the outputs of packages on a =E2=80=9Cgrafting path=E2=80=9D = need to be > downloaded, even if some of these outputs are unused. > > This is because =E2=80=98graft-derivation=E2=80=99 takes a derivation, su= ch as Qt=E2=80=99s, and > returns a derivation with as many outputs, but marked as > non-substitutable (locally built). Because it=E2=80=99s locally built, a= ll the > outputs of the original derivation must be fetched just to be able to > build the grafted derivation, even if only one of those outputs is > needed. > > I think we could fix that by creating one graft derivation for each > output of the original derivation. Done in 482fda2729c3e76999892cb8f9a0391a7bd37119. To take a concrete example, =E2=80=9Cguix build brdf-explorer=E2=80=9D woul= d previously trigger a download of qt:doc, even though only qt:out is used. This is no longer the case. This commit does not fix situations like: guix package -i qt In this case, qt:doc still gets downloaded for nothing. This is because the underlying (package-derivation store qt #:graft? #t) call does not know that only =E2=80=9Cout=E2=80=9D is needed. This can be = addressed with =E2=80=9Clazy grafting=E2=80=9D as discussed in , where we=E2=80=99d delay grafting until the profile is built instead of grafting = each individual package eagerly. Ludo=E2=80=99. From unknown Mon Aug 18 14:22:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Feb 2017 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator