[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
51/58: self: Build gnu/packages/*.go in 26 steps on the Hurd.
From: |
guix-commits |
Subject: |
51/58: self: Build gnu/packages/*.go in 26 steps on the Hurd. |
Date: |
Wed, 19 Jul 2023 03:00:51 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit c0b1d7aac7945e6fc8de7be11d0a4377fa6cbaed
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Jun 22 08:30:25 2023 +0200
self: Build gnu/packages/*.go in 26 steps on the Hurd.
Similar to the Makefile.am change, this breaks-up packages into 26 chunks
when building for the Hurd. Also force garbage collection.
* guix/self.scm (compiled-modules)[process-directory/hurd]: New inner
define.
Use it when building on the Hurd.
---
guix/self.scm | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/guix/self.scm b/guix/self.scm
index 81a36e007f..5f7fae6d90 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
+;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1210,9 +1211,12 @@ containing MODULE-FILES and possibly other files as
well."
'((guix build compile)
(guix build utils)))
#~(begin
- (use-modules (srfi srfi-26)
+ (use-modules (srfi srfi-1)
+ (srfi srfi-26)
+ (srfi srfi-71)
(ice-9 match)
(ice-9 format)
+ (ice-9 regex)
(ice-9 threads)
(guix build compile)
(guix build utils))
@@ -1251,6 +1255,26 @@ containing MODULE-FILES and possibly other files as
well."
#:report-load report-load
#:report-compilation report-compilation)))
+ (define (process-directory/hurd directory files output)
+ (let* ((chunks (map (compose
+ (cute partition <> files)
+ (lambda (regex)
+ (cute string-match regex <>))
+ (cute string-append "^gnu/packages/" <>)
+ (cute make-string 1 <>)
+ integer->char
+ (cute + (char->integer #\a) <>))
+ (iota 26)))
+ (chunks (filter pair? chunks)))
+ (for-each
+ (lambda (chunck)
+ (compile-files directory #$output chunck
+ #:workers (parallel-job-count)
+ #:report-load report-load
+ #:report-compilation report-compilation)
+ (gc))
+ chunks)))
+
(setvbuf (current-output-port) 'line)
(setvbuf (current-error-port) 'line)
@@ -1277,7 +1301,9 @@ containing MODULE-FILES and possibly other files as well."
(mkdir #$output)
(chdir #+module-tree)
- (process-directory "." '#+module-files #$output)
+ (if (string-ci= "GNU" (vector-ref (uname) 0))
+ (process-directory/hurd "." '#+module-files #$output)
+ (process-directory "." '#+module-files #$output))
(newline))))
(computed-file name build
- 35/58: gnu: ghostscript: Fix build for the Hurd., (continued)
- 35/58: gnu: ghostscript: Fix build for the Hurd., guix-commits, 2023/07/19
- 42/58: gnu: glib: Disable tests for the Hurd., guix-commits, 2023/07/19
- 58/58: locale: Set %default-locale-definitions to glibc/hurd on the Hurd., guix-commits, 2023/07/19
- 26/58: gnu: ruby-2.6: Skip test on the Hurd., guix-commits, 2023/07/19
- 29/58: gnu: zstd: Skip tests when building for the Hurd., guix-commits, 2023/07/19
- 33/58: gnu: graphite2: Skip test on the Hurd., guix-commits, 2023/07/19
- 49/58: system: hurd: Add swap-services to hurd-default-essential-services., guix-commits, 2023/07/19
- 45/58: gnu: guix: Disable some tests on the Hurd., guix-commits, 2023/07/19
- 53/58: gnu: guix: Update to 1.4.0-9.2a8bf3da1e., guix-commits, 2023/07/19
- 38/58: gnu: fontforge: Support build on the Hurd., guix-commits, 2023/07/19
- 51/58: self: Build gnu/packages/*.go in 26 steps on the Hurd.,
guix-commits <=
- 57/58: gnu: Add libc-locales-for-target and glibc-locales/hurd., guix-commits, 2023/07/19
- 54/58: DRAFT hurd: Support second boot., guix-commits, 2023/07/19
- 09/58: gnu: m4: Skip gnulib stack-overflow tests for the Hurd., guix-commits, 2023/07/19
- 13/58: gnu: elfutils: Skip failing tests on the Hurd., guix-commits, 2023/07/19
- 14/58: gnu: libbsd: Skip failing test on the Hurd., guix-commits, 2023/07/19
- 16/58: gnu: libgpg-error: Skip failing test on the Hurd., guix-commits, 2023/07/19
- 18/58: gnu: tcl: Remove failing tests on the Hurd.., guix-commits, 2023/07/19
- 30/58: gnu: cmake-bootstrap: Fix build for the Hurd., guix-commits, 2023/07/19
- 40/58: gnu: guile-2.0: Skip failing tests on the Hurd., guix-commits, 2023/07/19
- 52/58: gnu: guix: Update to 1.4.0-8.c0b1d7aac7., guix-commits, 2023/07/19