From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZlbp-0008J6-Ty for guix-patches@gnu.org; Thu, 11 Jan 2018 17:46:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZlbm-0005oj-R9 for guix-patches@gnu.org; Thu, 11 Jan 2018 17:46:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44752) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZlbm-0005oR-Mg for guix-patches@gnu.org; Thu, 11 Jan 2018 17:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZlbm-0006Gp-A1 for guix-patches@gnu.org; Thu, 11 Jan 2018 17:46:02 -0500 Subject: [bug#29928] [PATCH 0/5] Optimize profile hooks Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180101103336.8613-1-iyzsong@member.fsf.org> Date: Thu, 11 Jan 2018 23:45:10 +0100 In-Reply-To: <20180101103336.8613-1-iyzsong@member.fsf.org> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Mon, 1 Jan 2018 18:33:31 +0800") Message-ID: <876088m2vd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 29928@debbugs.gnu.org Hello! =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Hello, these patches make each profile hook run upon its specified intere= sted > inputs, eg: the 'info-dir-file' hook only get inputs with info manuals, > install a package without info files won't trigger it. Thus reduce the c= hance > and time to rerun them when your profile changed. That=E2=80=99s an area in need of improvements, thanks for looking into it! > One drawback is 'guix package --dry-run' no longer report the derivations= of > profile hooks, and the derivation of profile it reports is not the real o= ne. > Addition files will be built when the profiles hooks are run. FWIW I=E2=80=99m not entirely convinced by the approach. As discussed earl= ier, I=E2=80=99d like to experiment with a notion of =E2=80=9Cbuild rounds=E2=80= =9D: the first round would build a profile without any hooks, the second round would, depending on what the profile contains, rebuild it with certain hooks. I don=E2=80=99t have anything to show yet, though=E2=80=A6 Ludo=E2=80=99.