From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30952: Grafting sometimes include all the outputs of a package Date: Mon, 26 Mar 2018 15:59:38 +0200 Message-ID: <87y3ifc4z9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0SfP-0007M6-L3 for bug-guix@gnu.org; Mon, 26 Mar 2018 10:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0SfL-0003Gp-00 for bug-guix@gnu.org; Mon, 26 Mar 2018 10:00:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0SfK-0003GV-TV for bug-guix@gnu.org; Mon, 26 Mar 2018 10:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0SfK-0007WH-Lh for bug-guix@gnu.org; Mon, 26 Mar 2018 10:00:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Sf2-0007K6-Rb for bug-guix@gnu.org; Mon, 26 Mar 2018 09:59:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0Sez-00036Y-MR for bug-guix@gnu.org; Mon, 26 Mar 2018 09:59:44 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:45468) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0Sez-000369-GQ for bug-guix@gnu.org; Mon, 26 Mar 2018 09:59:41 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 24C2912383 for ; Mon, 26 Mar 2018 15:59:40 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B0mWkIsk4sxl for ; Mon, 26 Mar 2018 15:59:39 +0200 (CEST) Received: from ribbon (unknown [193.50.110.93]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 51D8312322 for ; Mon, 26 Mar 2018 15:59:39 +0200 (CEST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 30952@debbugs.gnu.org Hello, I noticed my /run/current-system would depend on two different =E2=80=98network-manager=E2=80=99. Looking more closely, both are grafts, but the different is that the first one only has the =E2=80=9Cout=E2=80=9D output while the other one has= =E2=80=9Cout=E2=80=9D and =E2=80=9Cdoc=E2=80=9D: --8<---------------cut here---------------start------------->8--- $ guix gc --referrers "/gnu/store/ia69421l4wxny3k38zj5ql7bxsnasbfq-network-= manager-1.8.4.drv" /gnu/store/68gfp5ac9rp4p9vsb0rrnvxa2fy1w4w9-profile.drv /gnu/store/6mivj4kfa7qx1z47f3kgfxfzm4148wwi-info-dir.drv /gnu/store/7skqpm8a0h6cvzwbj6m0zjjdgg676gm1-dbus-system-services.drv /gnu/store/84xhi03ikjcrr6vpkbvqy12a5s9imbxx-etc-polkit-1.drv /gnu/store/8gcq4gvghnp830kz9rs4ra9b8m8cggmn-dbus-configuration.drv /gnu/store/c40mizbls6b91jifib2z9xhasqc2m45f-xdg-desktop-database.drv /gnu/store/dc1vrv9jf8bf1dl94v8k04rjv69rjc6s-ca-certificate-bundle.drv /gnu/store/hbzq0f0fmfylv380k315j56qpqj7hpbi-shepherd-networking.scm.drv /gnu/store/jhdxpzj8f4ar8bp8pi3nvjn4fkiqg3d5-manual-database.drv /gnu/store/q94jkh8vf6sdvx9lg9gx9z6nans85sai-fonts-dir.drv /gnu/store/yz5mp49js753xcidl20lddl5xq2i2c9f-xdg-mime-database.drv $ guix gc --referrers "/gnu/store/gpvbfa0bgz5v0n4lcyv0mp3mh44p8dvy-network-= manager-1.8.4.drv" /gnu/store/332xw1rgi24v7vf3m8v8wgzbn34n037a-network-manager-applet-1.8.4.drv /gnu/store/m2j527i7mfvh6zayx3yn4jv64hqw28s0-network-manager-openvpn-1.8.0.d= rv $ head -c 50 "/gnu/store/ia69421l4wxny3k38zj5ql7bxsnasbfq-network-manager-1= .8.4.drv" Derive([("doc","/gnu/store/53lsazvjjsf6ib0s2cgxrqn$=20 $ head -c 50 "/gnu/store/gpvbfa0bgz5v0n4lcyv0mp3mh44p8dvy-network-manager-= 1.8.4.drv" Derive([("out","/gnu/store/hsy71fkli9blh34np008j3j --8<---------------cut here---------------end--------------->8--- I believe this is because the optimization in commit 482fda2729c3e76999892cb8f9a0391a7bd37119 work as expected when the graft is used as a package input, but doesn=E2=80=99t fire when the package is us= ed in a gexp for instance. That=E2=80=99s because =E2=80=98package-compiler=E2=80=99 calls =E2=80=98pa= ckage-derivation=E2=80=99, which doesn=E2=80=99t specify which output(s) we=E2=80=99re interested in. Ludo=E2=80=99.