From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#27284: [PATCH 0/4] 'guix pull' reloads modules, second try Date: Mon, 11 Dec 2017 11:52:49 +0100 Message-ID: <20171211105253.9670-1-ludo@gnu.org> References: <87h8tnz1dx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOLiq-00053c-UP for bug-guix@gnu.org; Mon, 11 Dec 2017 05:54:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOLil-0000iD-6V for bug-guix@gnu.org; Mon, 11 Dec 2017 05:54:09 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47403) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOLil-0000i3-3B for bug-guix@gnu.org; Mon, 11 Dec 2017 05:54:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87h8tnz1dx.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: 27284@debbugs.gnu.org Hello! I’ve pushed the following patches to ‘wip-pull-reload’ so you can test from whatever snapshot you’re currently running: guix pull --branch=wip-pull-reload As a reminder, this patch set does two things: 1. Build Guix as several derivations, with the eventual goal of having substitutes made available by . Typically only the derivation corresponding to package modules will have to be built, which is already a lot, but better than rebuilding everything every time. 2. Load the target Guix modules. What this means is that the derivations above will depend on, say, the latest guile-git and guile-ssh package. Conversely, we’re currently using dependencies from the current Guix, which is a problem, for instance if one of the dependencies is broken as was the case in . #2 is tricky because it means we first have to re-compile and re-evaluate a whole bunch of modules. The approach that seems to work OK is to compile just the core modules and to evaluate the others. That’s still taking ~20 seconds or so on my laptop. Thanks, Ludo’. Ludovic Courtès (4): gnu: Fix ambiguous 'zip' reference. gexp: 'computed-file' has a new #:guile parameter. Add (guix self) and use it when pulling. pull: Reload modules before doing anything else. Makefile.am | 1 + build-aux/build-self.scm | 289 +++++---------------- gnu/packages.scm | 21 +- gnu/packages/photo.scm | 4 +- guix/discovery.scm | 3 +- guix/gexp.scm | 16 +- guix/scripts/pull.scm | 91 ++++--- guix/self.scm | 652 +++++++++++++++++++++++++++++++++++++++++++++++ po/guix/POTFILES.in | 1 + 9 files changed, 804 insertions(+), 274 deletions(-) create mode 100644 guix/self.scm -- 2.15.1