From f3152cf3021892ba7e2f3d837207eb1ee64bfdb6 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Sat, 28 Aug 2021 17:44:36 +0200 Subject: 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. --- gnu/packages/qt.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gnu/packages/qt.scm') diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 5c0576c880..88126d2685 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -2677,7 +2677,19 @@ different kinds of sliders, and much more.") ;; 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") -- cgit v1.2.3