qt58.qtbase: Fix path to libdbus

This commit is contained in:
Thomas Tuegel 2017-04-15 11:39:50 -05:00
parent f45f2635e1
commit 8e2b6a90c0
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59
2 changed files with 6 additions and 6 deletions

View File

@ -52,9 +52,6 @@ stdenv.mkDerivation {
sed -i 's/PATHS.*NO_DEFAULT_PATH//' "src/corelib/Qt5CoreMacros.cmake"
sed -i 's/NO_DEFAULT_PATH//' "src/gui/Qt5GuiConfigExtras.cmake.in"
sed -i 's/PATHS.*NO_DEFAULT_PATH//' "mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in"
'' + lib.optionalString stdenv.isLinux ''
substituteInPlace src/dbus/qdbus_symbols.cpp \
--replace "@dbus_libs@" "${dbus.lib}"
''
+ lib.optionalString mesaSupported ''
substituteInPlace \
@ -222,6 +219,9 @@ stdenv.mkDerivation {
''-DNIXPKGS_LIBXCURSOR="${libXcursor.out}/lib/libXcursor"''
''-DNIXPKGS_LIBSSL="${openssl.out}/lib/libssl"''
''-DNIXPKGS_LIBCRYPTO="${openssl.out}/lib/libcrypto"''
(if stdenv.isLinux
then ''-DNIXPKGS_LIBDBUS="${dbus.lib}/lib/libdbus-1"''
else ''-DNIXPKGS_LIBDBUS=""'')
]
++ lib.optionals stdenv.isDarwin
[

View File

@ -1,7 +1,7 @@
Index: qtbase-opensource-src-5.7.0/src/dbus/qdbus_symbols.cpp
Index: qtbase-opensource-src-5.8.0/src/dbus/qdbus_symbols.cpp
===================================================================
--- qtbase-opensource-src-5.7.0.orig/src/dbus/qdbus_symbols.cpp
+++ qtbase-opensource-src-5.7.0/src/dbus/qdbus_symbols.cpp
--- qtbase-opensource-src-5.8.0.orig/src/dbus/qdbus_symbols.cpp
+++ qtbase-opensource-src-5.8.0/src/dbus/qdbus_symbols.cpp
@@ -97,7 +97,7 @@ bool qdbus_loadLibDBus()
#ifdef Q_OS_WIN
QLatin1String("dbus-1"),