forked from mirrors/nixpkgs
qt58.qtbase: Fix path to libresolv
This commit is contained in:
parent
6169bd98f5
commit
40aa757898
|
@ -53,11 +53,6 @@ stdenv.mkDerivation {
|
|||
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"
|
||||
|
||||
substituteInPlace src/network/kernel/qdnslookup_unix.cpp \
|
||||
--replace "@glibc@" "${stdenv.cc.libc.out}"
|
||||
substituteInPlace src/network/kernel/qhostinfo_unix.cpp \
|
||||
--replace "@glibc@" "${stdenv.cc.libc.out}"
|
||||
|
||||
substituteInPlace src/network/ssl/qsslsocket_openssl_symbols.cpp \
|
||||
--replace "@openssl@" "${openssl.out}"
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
|
@ -229,6 +224,7 @@ stdenv.mkDerivation {
|
|||
[
|
||||
"-Wno-error=sign-compare"
|
||||
''-DNIXPKGS_QTCOMPOSE="${libX11.out}/share/X11/locale"''
|
||||
''-DNIXPKGS_LIBRESOLV="${stdenv.cc.libc.out}/lib/libresolv"''
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin
|
||||
[
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: qtbase-opensource-src-5.8.0/src/network/kernel/qdnslookup_unix.cpp
|
|||
#endif
|
||||
{
|
||||
- lib.setFileName(QLatin1String("resolv"));
|
||||
+ lib.setFileName(QLatin1String("@glibc@/lib/resolv"));
|
||||
+ lib.setFileName(QLatin1String(NIXPKGS_LIBRESOLV));
|
||||
if (!lib.load())
|
||||
return false;
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ Index: qtbase-opensource-src-5.8.0/src/network/kernel/qhostinfo_unix.cpp
|
|||
#endif
|
||||
{
|
||||
- lib.setFileName(QLatin1String("resolv"));
|
||||
+ lib.setFileName(QLatin1String("@glibc@/lib/libresolv"));
|
||||
+ lib.setFileName(QLatin1String(NIXPKGS_LIBRESOLV));
|
||||
if (!lib.load())
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue