From 627b70e3ac8aade9744a998c28570fbb52b986a7 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 8 Dec 2020 00:28:06 +0100 Subject: [PATCH] gnu: qoauth: Fix build failure. Fixes . Reported by Distopico . * gnu/packages/web.scm (qoauth)[arguments]: Add phase 'adjust-mkspecs-directory'. --- gnu/packages/web.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 794e2c919d..5c52a32927 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1071,6 +1071,14 @@ (define-public qoauth (substitute* "src/src.pro" (("/lib64") "/lib")) #t)) + (add-after 'unpack 'adjust-mkspecs-directory + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "src/src.pro" + ;; Do not attempt to install the .prf file into qtbase + ;; "lib/mkspecs/features", ref . + (("\\$\\$\\[QMAKE_MKSPECS\\]") + (string-append (assoc-ref outputs "out") "/lib/qt5/mkspecs"))) + #t)) (delete 'configure) ; no configure script (delete 'check) ; no test target (add-before 'build 'qmake