Skip to content
Snippets Groups Projects
Unverified Commit 664fa4b1 authored by Marius Bakke's avatar Marius Bakke
Browse files

gnu: ungoogled-chromium: Increase resource limits in separate phase.

* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Add phase
'increase-resource-limits'.
parent 8da527d5
No related branches found
No related tags found
No related merge requests found
...@@ -660,8 +660,8 @@ (define-public ungoogled-chromium ...@@ -660,8 +660,8 @@ (define-public ungoogled-chromium
;; their current status for convenience. ;; their current status for convenience.
(format #t "Dumping configure flags...\n") (format #t "Dumping configure flags...\n")
(invoke "gn" "args" "out/Release" "--list")))) (invoke "gn" "args" "out/Release" "--list"))))
(replace 'build (add-before 'build 'increase-resource-limits
(lambda* (#:key (parallel-build? #t) #:allow-other-keys) (lambda _
;; XXX: Chromiums linking step requires a lot of simultaneous file ;; XXX: Chromiums linking step requires a lot of simultaneous file
;; accesses. Having a too low ulimit will result in bogus linker ;; accesses. Having a too low ulimit will result in bogus linker
;; errors such as "foo.a: error adding symbols: malformed archive". ;; errors such as "foo.a: error adding symbols: malformed archive".
...@@ -677,7 +677,9 @@ (define-public ungoogled-chromium ...@@ -677,7 +677,9 @@ (define-public ungoogled-chromium
(format #t (format #t
"increased maximum number of open files from ~d to ~d~%" "increased maximum number of open files from ~d to ~d~%"
soft (if hard (min hard 4096) 4096))))) soft (if hard (min hard 4096) 4096)))))
#t))
(replace 'build
(lambda* (#:key (parallel-build? #t) #:allow-other-keys)
(invoke "ninja" "-C" "out/Release" (invoke "ninja" "-C" "out/Release"
"-j" (if parallel-build? "-j" (if parallel-build?
(number->string (parallel-job-count)) (number->string (parallel-job-count))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment