mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: ungoogled-chromium: Increase resource limits in separate phase.
* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Add phase 'increase-resource-limits'.
This commit is contained in:
parent
8da527d5bc
commit
664fa4b162
1 changed files with 5 additions and 3 deletions
|
@ -660,8 +660,8 @@ (define-public ungoogled-chromium
|
|||
;; 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 @@ (define-public ungoogled-chromium
|
|||
(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))
|
||||
|
|
Loading…
Reference in a new issue