From 51fe07711f3c0bbf378748de75e137548886dc11 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 15 Apr 2016 07:06:16 -0500 Subject: qt55.qtbase: disable plugin path debugging --- .../qt-5/5.5/qtbase/debug-nix-profiles-paths.patch | 0 .../qt-5/5.5/qtbase/nix-profiles-library-paths.patch | 18 ++++++------------ pkgs/development/libraries/qt-5/5.5/qtbase/series | 1 - 3 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 pkgs/development/libraries/qt-5/5.5/qtbase/debug-nix-profiles-paths.patch (limited to 'pkgs/development/libraries/qt-5/5.5') diff --git a/pkgs/development/libraries/qt-5/5.5/qtbase/debug-nix-profiles-paths.patch b/pkgs/development/libraries/qt-5/5.5/qtbase/debug-nix-profiles-paths.patch deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/pkgs/development/libraries/qt-5/5.5/qtbase/nix-profiles-library-paths.patch b/pkgs/development/libraries/qt-5/5.5/qtbase/nix-profiles-library-paths.patch index d20767a38e5ba..b4561db6e77d5 100644 --- a/pkgs/development/libraries/qt-5/5.5/qtbase/nix-profiles-library-paths.patch +++ b/pkgs/development/libraries/qt-5/5.5/qtbase/nix-profiles-library-paths.patch @@ -2,24 +2,18 @@ Index: qt-everywhere-opensource-src-5.5.1/qtbase/src/corelib/kernel/qcoreapplica =================================================================== --- qt-everywhere-opensource-src-5.5.1.orig/qtbase/src/corelib/kernel/qcoreapplication.cpp +++ qt-everywhere-opensource-src-5.5.1/qtbase/src/corelib/kernel/qcoreapplication.cpp -@@ -2498,6 +2498,22 @@ QStringList QCoreApplication::libraryPat +@@ -2498,6 +2498,16 @@ QStringList QCoreApplication::libraryPat } } } + qunsetenv("QT_PLUGIN_PATH"); // do not propagate to child processes + + // Add library paths derived from NIX_PROFILES. -+ const QByteArray nixProfilesEnv = qgetenv("NIX_PROFILES"); -+ if (!nixProfilesEnv.isEmpty()) { -+ QLatin1Char pathSep(' '); -+ QStringList paths = QFile::decodeName(nixProfilesEnv).split(pathSep, QString::SkipEmptyParts); -+ for (QStringList::iterator it = paths.begin(); it != paths.end(); ++it) { -+ it->append("/lib/qt5/plugins"); -+ QString canonicalPath = QDir(*it).canonicalPath(); -+ if (!canonicalPath.isEmpty() -+ && !app_libpaths->contains(canonicalPath)) { -+ app_libpaths->append(canonicalPath); -+ } ++ const QByteArrayList profiles = qgetenv("NIX_PROFILES").split(' '); ++ const QString plugindir = QString::fromLatin1("/lib/qt5/plugins"); ++ Q_FOREACH (const QByteArray &profile, profiles) { ++ if (!profile.isEmpty()) { ++ app_libpaths->append(QFile::decodeName(profile) + plugindir); + } + } } diff --git a/pkgs/development/libraries/qt-5/5.5/qtbase/series b/pkgs/development/libraries/qt-5/5.5/qtbase/series index fbe309909049a..2196d83837527 100644 --- a/pkgs/development/libraries/qt-5/5.5/qtbase/series +++ b/pkgs/development/libraries/qt-5/5.5/qtbase/series @@ -7,4 +7,3 @@ xdg-config-dirs.patch nix-profiles-library-paths.patch compose-search-path.patch libressl.patch -debug-nix-profiles-paths.patch -- cgit 1.4.1