From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: [WIP][PATCH] profiles: info-dir-file: Don't consider unwanted manifest entries Date: Mon, 01 Jan 2018 18:37:47 +0800 Message-ID: <874lo5sw3o.fsf@member.fsf.org> References: <87ind8ja9h.fsf@member.fsf.org> <87vah4wfkf.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]:50791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVxTl-0007Cj-Hy for guix-devel@gnu.org; Mon, 01 Jan 2018 05:38:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVxTk-0006ko-Ph for guix-devel@gnu.org; Mon, 01 Jan 2018 05:38:01 -0500 In-Reply-To: <87vah4wfkf.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 18 Dec 2017 10:28:16 +0100") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello! > > iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > >> Currently we run profile hooks for all manifest inputs, so if you >> install a new package to your profile, all profile hooks will be run >> again, even if the new package doesn't provide info manuals, man pages, >> etc. Ideally only interested hooks need to be run, eg: if the new >> package has info manuals, then the 'info-dir-file' hook will run. >> >> I get it works somehow, but breaks the '--dry-run' functionality which I >> have no idea how to preserve... > > Indeed. I had the idea of adding a notion of =E2=80=9Cbuild rounds=E2=80= =9D, which > would also be useful for grafts: you=E2=80=99d register (client-side) an = extra > build round to be run after the current one. For grafts, the first > round would return the ungrafted derivations. For profile hooks, the > first round would return the profile without any hooks. =E2=80=9C-n=E2= =80=9D would > display what would be built/downloaded as part of the first round, > ignoring subsequent rounds. > Hello, happy new year! So I have just disable profile hooks for the 'dry-run' now and send patches to guix-patches.