all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 1d07d7d2d664ddd01b2050e3d15c0f2a6dafee56 2512 bytes (raw)
name: gnu/packages/patches/qtbase-replace-libdir.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
From 30d3906ff5e8671e9c97c5336c6c549656c0e293 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Milan=20P=C3=A4ssler?= <me@pbb.lc>
Date: Sat, 4 Apr 2020 00:27:41 +0200
Subject: [PATCH 04/11] qtbase-replace-libdir

---
 mkspecs/features/qt_common.prf | 20 ++------------------
 mkspecs/features/qt_module.prf |  5 +----
 2 files changed, 3 insertions(+), 22 deletions(-)

diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf
index 8df94aa4ee..414029f31c 100644
--- a/mkspecs/features/qt_common.prf
+++ b/mkspecs/features/qt_common.prf
@@ -31,32 +31,16 @@ contains(TEMPLATE, .*lib)|contains(TEMPLATE, aux) {
         rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]*
     else: \
         rplbase = $$MODULE_BASE_OUTDIR
-    host_build {
-        qqt_libdir = \$\$\$\$[QT_HOST_LIBS]
-        qt_libdir = $$[QT_HOST_LIBS]
-    } else {
-        qqt_libdir = \$\$\$\$[QT_INSTALL_LIBS]
-        qt_libdir = $$[QT_INSTALL_LIBS]
-    }
+    qt_libdir = $$NIX_OUTPUT_OUT/lib
     contains(QMAKE_DEFAULT_LIBDIRS, $$qt_libdir) {
-        lib_replace0.match = $$rplbase/lib/
-        lib_replace0.replace = $$qqt_libdir/
-        lib_replace0.CONFIG = path
-        QMAKE_PRL_INSTALL_REPLACE += lib_replace0
         lib_replace.match = "[^ ']*$$rplbase/lib"
         lib_replace.replace =
     } else {
         lib_replace.match = $$rplbase/lib
-        lib_replace.replace = $$qqt_libdir
+        lib_replace.replace = $$qt_libdir
     }
     lib_replace.CONFIG = path
     QMAKE_PRL_INSTALL_REPLACE += lib_replace
-    !equals(qt_libdir, $$rplbase/lib) {
-        qtlibdir_replace.match = $$qt_libdir
-        qtlibdir_replace.replace = $$qqt_libdir
-        qtlibdir_replace.CONFIG = path
-        QMAKE_PRL_INSTALL_REPLACE += qtlibdir_replace
-    }
 }
 contains(TEMPLATE, .*lib)|darwin {
     if(!host_build|!cross_compile):qtConfig(reduce_exports): CONFIG += hide_symbols
diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
index 828a9621b9..b9e5d35026 100644
--- a/mkspecs/features/qt_module.prf
+++ b/mkspecs/features/qt_module.prf
@@ -305,10 +305,7 @@ load(qt_targets)
 }
 !lib_bundle:unix {
     CONFIG += create_libtool
-    host_build: \
-        QMAKE_LIBTOOL_LIBDIR = $$[QT_HOST_LIBS]
-    else: \
-        QMAKE_LIBTOOL_LIBDIR = "=$$[QT_INSTALL_LIBS/raw]"
+    QMAKE_LIBTOOL_LIBDIR = $$NIX_OUTPUT_OUT/lib
     !isEmpty(lib_replace0.match) {
         ltlib_replace0.match = $$lib_replace0.match
         ltlib_replace0.replace = $$QMAKE_LIBTOOL_LIBDIR/
-- 
2.25.4



debug log:

solving 1d07d7d2d6 ...
found 1d07d7d2d6 in https://yhetil.org/guix/TmrudMQdNDsUlfVXXDlUYS6Cl32emete1oDiVMXaWPTmgzM9sbDSRMPQgBYONLze1lm4M6GS0ce2RsCrklKAcGrn11EQHJky0phqYeIepXo=@protonmail.com/

applying [1/1] https://yhetil.org/guix/TmrudMQdNDsUlfVXXDlUYS6Cl32emete1oDiVMXaWPTmgzM9sbDSRMPQgBYONLze1lm4M6GS0ce2RsCrklKAcGrn11EQHJky0phqYeIepXo=@protonmail.com/
diff --git a/gnu/packages/patches/qtbase-replace-libdir.patch b/gnu/packages/patches/qtbase-replace-libdir.patch
new file mode 100644
index 0000000000..1d07d7d2d6

1:72: trailing whitespace.
-- 
Checking patch gnu/packages/patches/qtbase-replace-libdir.patch...
1:74: new blank line at EOF.
+
Applied patch gnu/packages/patches/qtbase-replace-libdir.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 1d07d7d2d664ddd01b2050e3d15c0f2a6dafee56	gnu/packages/patches/qtbase-replace-libdir.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.