From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4LFiLgbt2F6cOQAA0tVLHw (envelope-from ) for ; Thu, 04 Jun 2020 12:45:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sHAeKgbt2F5tWgAAbx9fmQ (envelope-from ) for ; Thu, 04 Jun 2020 12:45:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7825A9401AE for ; Thu, 4 Jun 2020 12:45:58 +0000 (UTC) Received: from localhost ([::1]:49572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgpFt-0007Qg-FF for larch@yhetil.org; Thu, 04 Jun 2020 08:45:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgpFg-0007QO-P6 for guix-devel@gnu.org; Thu, 04 Jun 2020 08:45:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60059) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgpFf-0003AY-KR; Thu, 04 Jun 2020 08:45:44 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45606 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jgpFe-0005wk-TU; Thu, 04 Jun 2020 08:45:43 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel@gnu.org Subject: Re: Compilation time with Guile 3.0.3-to-be References: <87sgfbgthj.fsf@inria.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 Prairial an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 04 Jun 2020 14:45:39 +0200 In-Reply-To: <87sgfbgthj.fsf@inria.fr> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22\?\= \=\?utf-8\?Q\?'s\?\= message of "Thu, 04 Jun 2020 09:50:16 +0200") Message-ID: <87d06f9ez0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: ljJgHD4e3lZo --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s skribis: > With the attached patch I=E2=80=99ve run =E2=80=98make as-derivation=E2= =80=99 (equivalent to > =E2=80=98guix pull=E2=80=99) and timed the builds of guix-packages-base.d= rv (279 files) > and guix-packages.drv (217 files) on my 4-core i7 laptop: Oh, here comes the attached patch. Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index c2dc7f6d5f..2c9a9825e4 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -322,6 +322,41 @@ without requiring the source code to be rewritten.") `(("bdw-gc" ,libgc-7) ,@(srfi-1:alist-delete "bdw-gc" (package-propagated-inputs guile-3.0))))))) +(define-public guile-devel + (let ((commit "e2066d2e639ecc81078e83fcd7acd8b75faf27a3") + (revision "0")) + (package + (inherit guile-3.0) + (version (git-version (package-version guile-3.0) + revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.savannah.gnu.org/git/guile.git") + (commit commit))) + (file-name (git-file-name "guile" version)) + (sha256 + (base32 + "1qipc4j2wbc2h22qsqp7n81ykclmnw8zxay06gqyaijk3nyf0bbn")))) + (arguments + (substitute-keyword-arguments (package-arguments guile-3.0) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (add-before 'check 'skip-failing-tests + (lambda _ + (setenv "XFAIL_TESTS" "test-out-of-memory") + (delete-file "test-suite/tests/version.test") + #t)))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("flex" ,flex) + ("gettext" ,gnu-gettext) + ("texinfo" ,texinfo) + ("util-linux" ,util-linux) ;for 'rev', used in popen.test + ,@(package-native-inputs guile-3.0)))))) + (define-public guile-3.0/fixed ;; A package of Guile that's rarely changed. It is the one used in the ;; `base' module, and thus changing it entails a full rebuild. @@ -776,3 +811,4 @@ manipulate repositories of the Git version control system.") ;;; guile.scm ends here + diff --git a/guix/self.scm b/guix/self.scm index 60fe6e6b01..7449406dc5 100644 --- a/guix/self.scm +++ b/guix/self.scm @@ -48,7 +48,7 @@ (let ((ref (lambda (module variable) (module-ref (resolve-interface module) variable)))) (match-lambda - ("guile" (ref '(gnu packages guile) 'guile-3.0/libgc-7)) + ("guile" (ref '(gnu packages guile) 'guile-devel)) ("guile-json" (ref '(gnu packages guile) 'guile-json-3)) ("guile-ssh" (ref '(gnu packages ssh) 'guile-ssh)) ("guile-git" (ref '(gnu packages guile) 'guile-git)) --=-=-=--