gnu: qtwebkit: Fix build.

* gnu/packages/qt.scm (qtwebkit)[arguments]: Replace the standard build phase
  with a custom one that increases the maximum number of open file
  descriptors.
This commit is contained in:
Guillaume Le Vaillant 2021-08-28 17:44:36 +02:00
parent 4c9d8ff142
commit f3152cf302
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -2677,7 +2677,19 @@ (define-public qtwebkit
;; libraries and test executables in a
;; reasonable amount of memory.
"-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-keep-memory"
"-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory")))
"-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory")
#:phases
(modify-phases %standard-phases
(replace 'build
;; This is a workaround for the build failing with the error:
;; ld: error adding symbols: Malformed archive
;; Increasing the maximum number of open file descriptors
;; makes the build succeed.
(lambda* (#:key make-flags #:allow-other-keys)
(let ((cmd (format #f
"ulimit -n 4096; make ~{~a~^ ~}"
make-flags)))
(invoke "sh" "-c" cmd)))))))
(home-page "https://www.webkit.org")
(synopsis "Web browser engine and classes to render and interact with web
content")