[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/05: gnu: qtwebkit: Fix build.
From: |
guix-commits |
Subject: |
05/05: gnu: qtwebkit: Fix build. |
Date: |
Sat, 28 Aug 2021 12:17:08 -0400 (EDT) |
glv pushed a commit to branch core-updates-frozen
in repository guix.
commit f3152cf3021892ba7e2f3d837207eb1ee64bfdb6
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Sat Aug 28 17:44:36 2021 +0200
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(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 5c0576c..88126d2 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")