guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/12: gnu: ungoogled-chromium: Increase resource limits in separate pha


From: guix-commits
Subject: 01/12: gnu: ungoogled-chromium: Increase resource limits in separate phase.
Date: Thu, 21 Nov 2019 16:44:04 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 664fa4b1625d25a2a2fcf002db3e844de587ee18
Author: Marius Bakke <address@hidden>
Date:   Mon Nov 18 15:25:07 2019 +0100

    gnu: ungoogled-chromium: Increase resource limits in separate phase.
    
    * gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Add phase
    'increase-resource-limits'.
---
 gnu/packages/chromium.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 225a301..a9df1d2 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -660,8 +660,8 @@ from forcing GEXP-PROMISE."
                ;; their current status for convenience.
                (format #t "Dumping configure flags...\n")
                (invoke "gn" "args" "out/Release" "--list"))))
-         (replace 'build
-           (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
+         (add-before 'build 'increase-resource-limits
+           (lambda _
              ;; XXX: Chromiums linking step requires a lot of simultaneous file
              ;; accesses.  Having a too low ulimit will result in bogus linker
              ;; errors such as "foo.a: error adding symbols: malformed 
archive".
@@ -677,7 +677,9 @@ from forcing GEXP-PROMISE."
                    (format #t
                            "increased maximum number of open files from ~d to 
~d~%"
                            soft (if hard (min hard 4096) 4096)))))
-
+             #t))
+         (replace 'build
+           (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
              (invoke "ninja" "-C" "out/Release"
                      "-j" (if parallel-build?
                               (number->string (parallel-job-count))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]