[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/14: self: Compile guix-packages-base in chunks of 10 files.
From: |
guix-commits |
Subject: |
01/14: self: Compile guix-packages-base in chunks of 10 files. |
Date: |
Mon, 18 Sep 2023 02:19:46 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 66ea1a1cc18743defc29460a9a1500ea7f46d5dc
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Sep 18 08:09:50 2023 +0200
self: Compile guix-packages-base in chunks of 10 files.
This greatly increases the chances for `guix pull' to succeed on the Hurd,
see
<https://issues.guix.gnu.org/65456>.
* guix/self.scm (compiled-modules)[process-directory]: Move hardcoded size
to
keyword parameter #:size. Set it to 10 when compiling "guix-packages-base".
---
guix/self.scm | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/guix/self.scm b/guix/self.scm
index d2300052d8..b8b9b9fe37 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -1245,14 +1245,13 @@ containing MODULE-FILES and possibly other files as
well."
(* 100. (/ completed total)) total)
(force-output))
- (define (process-directory directory files output)
- (let* ((size 25) ;compile max 25 files a time
- (chunks (unfold
- (lambda (seed) (< (length seed) size)) ;p
- (cute take <> size) ;f
- (cute drop <> size) ;g
- files ;seed
- list))) ;tail
+ (define* (process-directory directory files output #:key (size 25))
+ (let ((chunks (unfold
+ (lambda (seed) (< (length seed) size)) ;p
+ (cute take <> size) ;f
+ (cute drop <> size) ;g
+ files ;seed
+ list))) ;tail
(for-each
(lambda (chunk)
;; Hide compilation warnings.
@@ -1290,7 +1289,8 @@ containing MODULE-FILES and possibly other files as well."
(mkdir #$output)
(chdir #+module-tree)
- (process-directory "." '#+module-files #$output)
+ (let ((size (if (equal? #$name "guix-packages-base") 10 25)))
+ (process-directory "." '#+module-files #$output #:size size))
(newline))))
(computed-file name build
- branch hurd-team created (now fe0246826a), guix-commits, 2023/09/18
- 01/14: self: Compile guix-packages-base in chunks of 10 files.,
guix-commits <=
- 02/14: gnu: guix: Update to 1.4.0-12.66ea1a1cc1., guix-commits, 2023/09/18
- 05/14: system: bare-hurd.tmpl: Include glibc-2.33 locales in cross-build., guix-commits, 2023/09/18
- 07/14: hurd-boot: Support system init: Create essential device nodes., guix-commits, 2023/09/18
- 13/14: DRAFT daemon: Support chroot builds on GNU/Hurd., guix-commits, 2023/09/18
- 11/14: DRAFT system: examples: Add devel-hurd.tmpl., guix-commits, 2023/09/18
- 06/14: hurd: Support system init in /libexec/runsystem., guix-commits, 2023/09/18
- 10/14: DRAFT hurd-boot: Support second boot., guix-commits, 2023/09/18
- 12/14: gnu: Add libc-locales-for-target and glibc-locales/hurd., guix-commits, 2023/09/18
- 04/14: maint: Support `guix shell' in Guix's git archive with manifest.scm., guix-commits, 2023/09/18
- 03/14: gnu: guix: Update to 1.4.0-13.a2549163f5., guix-commits, 2023/09/18