From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#38405: [PATCH] gnu: qtbase: Use absolute references in .prl files. Date: Wed, 27 Nov 2019 19:11:28 +0100 Message-ID: <20191127181128.19365-1-mbakke@fastmail.com> References: <87r21t6vos.fsf@devup.no> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58004) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia1nJ-0002aH-2R for bug-guix@gnu.org; Wed, 27 Nov 2019 13:12:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ia1nH-0006em-Pv for bug-guix@gnu.org; Wed, 27 Nov 2019 13:12:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50229) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ia1nG-0006dS-6I for bug-guix@gnu.org; Wed, 27 Nov 2019 13:12:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ia1nG-0002TH-1b for bug-guix@gnu.org; Wed, 27 Nov 2019 13:12:02 -0500 In-Reply-To: <87r21t6vos.fsf@devup.no> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 38405@debbugs.gnu.org This fixes . * gnu/packages/qt.scm (qtbase)[arguments]: Add phase 'patch-prl-files'. --- gnu/packages/qt.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 5f4f29a948..2cc44ab831 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -509,6 +509,16 @@ developers using C++ or QML, a CSS & JavaScript like language.") (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata) (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata)) #t))) + (add-after 'patch-mkspecs 'patch-prl-files + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; Insert absolute references to the qtbase libraries because + ;; QT_INSTALL_LIBS does not always resolve correctly, depending + ;; on context. See + (substitute* (find-files (string-append out "/lib") "\\.prl$") + (("\\$\\$\\[QT_INSTALL_LIBS\\]") + (string-append out "/lib"))) + #t))) (add-after 'unpack 'patch-paths ;; Use the absolute paths for dynamically loaded libs, otherwise ;; the lib will be searched in LD_LIBRARY_PATH which typically is -- 2.24.0