gnu: qtbase: Use absolute references in .prl files.

This fixes <https://bugs.gnu.org/38405>.

* gnu/packages/qt.scm (qtbase)[arguments]: Add phase 'patch-prl-files'.
This commit is contained in:
Marius Bakke 2019-11-27 19:09:58 +01:00
parent b60d2bfff9
commit a59e2dd8cd
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -509,6 +509,16 @@ (define-public qtbase
(("\\$\\$\\[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 <https://bugs.gnu.org/38405>
(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