From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVxPz-0006Ob-V1 for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVxPz-0004WT-4H for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eVxPz-0004WK-0X for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eVxPy-0000uv-QA for guix-patches@gnu.org; Mon, 01 Jan 2018 05:34:06 -0500 Subject: [bug#29928] [PATCH 0/5] Optimize profile hooks Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVxPi-0006LC-GF for guix-patches@gnu.org; Mon, 01 Jan 2018 05:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVxPf-0004Mr-BP for guix-patches@gnu.org; Mon, 01 Jan 2018 05:33:50 -0500 Received: from rezeros.cc ([2001:19f0:7001:2f3e:5400:ff:fe84:e55d]:35544) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eVxPe-0004Km-TE for guix-patches@gnu.org; Mon, 01 Jan 2018 05:33:47 -0500 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Mon, 1 Jan 2018 18:33:31 +0800 Message-Id: <20180101103336.8613-1-iyzsong@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 29928@debbugs.gnu.org Hello, these patches make each profile hook run upon its specified interested 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 chance and time to rerun them when your profile changed. 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 one. Addition files will be built when the profiles hooks are run. Sou Bunnbu (宋文武) (5): gexp: Add 'eval-gexp'. profiles: info-dir-file: Don't consider unwanted manifest entries. guix package: Disable profile hooks on dry runs. profiles: Filter out unwanted manifest entries for profile hooks. profiles: Sort manifest inputs for profile hooks. guix/gexp.scm | 16 ++++ guix/profiles.scm | 188 ++++++++++++++++++++++++++++++++--------------- guix/scripts/package.scm | 2 +- 3 files changed, 146 insertions(+), 60 deletions(-) -- 2.13.3