From 9053b025e0ced7b8543a0bd5a379864f60f454c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 9 Feb 2015 10:32:55 +0100 Subject: [PATCH] kcrash: find drkonqi for per-package libexecdir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../files/0001-align-path-to-drkonqi.patch | 45 +++++++++++++++++++ recipes-kde/kf5/tier2/kcrash/kcrash.bb | 2 + 2 files changed, 47 insertions(+) create mode 100644 recipes-kde/kf5/tier2/kcrash/files/0001-align-path-to-drkonqi.patch diff --git a/recipes-kde/kf5/tier2/kcrash/files/0001-align-path-to-drkonqi.patch b/recipes-kde/kf5/tier2/kcrash/files/0001-align-path-to-drkonqi.patch new file mode 100644 index 00000000..8654615a --- /dev/null +++ b/recipes-kde/kf5/tier2/kcrash/files/0001-align-path-to-drkonqi.patch @@ -0,0 +1,45 @@ +From 400a073a899a56940f8f8c6986591abb5a3f7313 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Mon, 9 Feb 2015 09:50:39 +0100 +Subject: [PATCH] align path to drkonqi +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +we do not have a shared libexec + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Andreas Müller +--- + src/config-kcrash.h.cmake | 1 + + src/kcrash.cpp | 4 +++- + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/config-kcrash.h.cmake b/src/config-kcrash.h.cmake +index f1b3a9b..3ac6dfd 100644 +--- a/src/config-kcrash.h.cmake ++++ b/src/config-kcrash.h.cmake +@@ -2,3 +2,4 @@ + + #define kde_socklen_t socklen_t + #define CMAKE_INSTALL_FULL_LIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}" ++#define CMAKE_INSTALL_FULL_LIBDIR "${CMAKE_INSTALL_FULL_LIBDIR}" +diff --git a/src/kcrash.cpp b/src/kcrash.cpp +index d72d8f8..caa6600 100644 +--- a/src/kcrash.cpp ++++ b/src/kcrash.cpp +@@ -209,7 +209,9 @@ void KCrash::setDrKonqiEnabled(bool enabled) + { + s_launchDrKonqi = enabled ? 1 : 0; + if (s_launchDrKonqi && !s_drkonqiPath) { +- const QList paths = QFile::decodeName(qgetenv("LIBEXEC_PATH")).split(QLatin1Char(':')); ++ QList paths = QFile::decodeName(qgetenv("LIBEXEC_PATH")).split(QLatin1Char(':')); ++ /* take care of per-package libexec dir for plasma-workspace as origin of drkonqi */ ++ paths.append(QFile::decodeName(CMAKE_INSTALL_FULL_LIBDIR "/plasma-workspace")); + const QString exec = QStandardPaths::findExecutable(QLatin1String("drkonqi"), paths); + if (exec.isEmpty()) { + s_drkonqiPath = qstrdup(CMAKE_INSTALL_FULL_LIBEXECDIR "/drkonqi"); +-- +1.9.3 + diff --git a/recipes-kde/kf5/tier2/kcrash/kcrash.bb b/recipes-kde/kf5/tier2/kcrash/kcrash.bb index 16a926b7..45a621d0 100644 --- a/recipes-kde/kf5/tier2/kcrash/kcrash.bb +++ b/recipes-kde/kf5/tier2/kcrash/kcrash.bb @@ -12,6 +12,8 @@ PV = "${KF5_VERSION}" SRCREV = "7ec5be038c40bee9471b07752b5a0036339d7687" S = "${WORKDIR}/git" +SRC_URI += "file://0001-align-path-to-drkonqi.patch" + # cross libs / headers CMAKE_HIDE_ERROR[1] = "KF5Crash, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib" CMAKE_HIDE_ERROR[2] = "KF5Crash, -S${includedir}, -S${STAGING_INCDIR}"