From c797d5d5ea9891646998698640b2c59baa64a1f110260c87dc8fb0c057a5d60f Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 4 Jul 2014 01:18:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kauth?expand=0&rev=30 --- ...ash-to-searched-backend-helper-plugi.patch | 27 +++++++++++++++++++ kauth.changes | 2 ++ kauth.spec | 3 +++ 3 files changed, 32 insertions(+) create mode 100644 0001-Pass-trailing-slash-to-searched-backend-helper-plugi.patch diff --git a/0001-Pass-trailing-slash-to-searched-backend-helper-plugi.patch b/0001-Pass-trailing-slash-to-searched-backend-helper-plugi.patch new file mode 100644 index 0000000..8c0df2b --- /dev/null +++ b/0001-Pass-trailing-slash-to-searched-backend-helper-plugi.patch @@ -0,0 +1,27 @@ +From f900d7d4798503479b88346a2689ec6bee417193 Mon Sep 17 00:00:00 2001 +From: Hrvoje Senjan +Date: Wed, 2 Jul 2014 09:32:23 +0200 +Subject: [PATCH 1/1] Pass trailing slash to searched backend/helper plugin dir + Unbreaks plugin loading + +CCMAIL: aleixpol@kde.org +--- + src/BackendsManager.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/BackendsManager.cpp b/src/BackendsManager.cpp +index cd0bf3f..0dd4661 100644 +--- a/src/BackendsManager.cpp ++++ b/src/BackendsManager.cpp +@@ -44,7 +44,7 @@ QList< QObject * > BackendsManager::retrieveInstancesIn(const QString &subdir) + { + QList retlist; + foreach (const QString& pPath, QCoreApplication::libraryPaths()) { +- QDir pluginPath(pPath + subdir); ++ QDir pluginPath(pPath + QLatin1Char('/') + subdir); + if (!pluginPath.exists() || pPath.isEmpty()) { + continue; + } +-- +2.0.0 + diff --git a/kauth.changes b/kauth.changes index 4d6c6dc..4ba9bc5 100644 --- a/kauth.changes +++ b/kauth.changes @@ -7,6 +7,8 @@ Tue Jul 1 21:36:06 UTC 2014 - hrvoje.senjan@gmail.com * Buildsystem fixes * For more details please see: http://www.kde.org/announcements/announce-frameworks5-5.0.0.php +- Added 0001-Pass-trailing-slash-to-searched-backend-helper-plugi.patch, + fixes helper/backend plugin loading ------------------------------------------------------------------- Wed Jun 11 22:24:49 UTC 2014 - hrvoje.senjan@gmail.com diff --git a/kauth.spec b/kauth.spec index 5b6f19d..8618fbf 100644 --- a/kauth.spec +++ b/kauth.spec @@ -37,6 +37,8 @@ Source: http://download.kde.org/stable/frameworks/%{version}/%{name}-%{v Source1: baselibs.conf # PATCH-FIX-UPSTREAM polkit-qt5-support.patch -- add support for polkit-qt-1 Qt5 port, https://git.reviewboard.kde.org/r/118264/ Patch0: polkit-qt5-support.patch +# PATCH-FIX-UPSTREAM 0001-Pass-trailing-slash-to-searched-backend-helper-plugi.patch +Patch1: 0001-Pass-trailing-slash-to-searched-backend-helper-plugi.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -66,6 +68,7 @@ Development files. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %cmake_kf5 -d build -- -DSYSCONF_INSTALL_DIR=%{_kf5_sysconfdir}