From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: bug#22990: Grafts leads to inefficient substitute info retrieval Date: Wed, 11 Jan 2017 11:51:29 +0100 Message-ID: References: <8737rxx8gk.fsf@gnu.org> <87k2a5rzue.fsf@gnu.org> <877f633kt1.fsf@gnu.org> <874m15yl99.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]:39016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRGVh-0007FQ-TE for bug-guix@gnu.org; Wed, 11 Jan 2017 05:52:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRGVe-00051M-Rw for bug-guix@gnu.org; Wed, 11 Jan 2017 05:52:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:34036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRGVe-00051I-OL for bug-guix@gnu.org; Wed, 11 Jan 2017 05:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cRGVe-0002lw-Du for bug-guix@gnu.org; Wed, 11 Jan 2017 05:52:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874m15yl99.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 22990@debbugs.gnu.org > On second thought, the whole idea of applying grafts on the final result > (instead of applying grafts at each step like we do now) doesn=E2=80=99t = fly. > It works well for things like a profile or the system derivation, but > breaks for less trivial things. > For example, if you=E2=80=99re building a VM image or a binary tarball, y= ou > really need to graft packages early on; trying to graft the VM image or > binary tarball wouldn=E2=80=99t have the desired effect. Isn't a system derivation or a profile derivation an intermediate step to these derivations? Can't there be a flag or something called #:already-grafted? #t?