From be8cb44a9c4af541fc3ba6cafb1228fcf03686d0 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Mon, 23 Oct 2017 13:18:22 +0200 Subject: gnu: kcmutils: Print plugin name when loading fails. Transfer the NixOS patch "kcmutils-debug-module-loader" for kcmutils as of 2018-02-17. * gnu/packages/kde-frameworks.scm(kcmutils): Add substitute for src/kcmoduleloader.cpp. --- gnu/packages/kde-frameworks.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 60f9eeb037..e8e2097513 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -2097,6 +2097,10 @@ (define-public kcmutils ;; make QDirIterator follow symlinks (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b) (string-append a " | QDirIterator::FollowSymlinks" b))) + (substitute* "src/kcmoduleloader.cpp" + ;; print plugin name when loading fails + (("^\\s*(qWarning\\(\\) << \"Error loading) (plugin:\")( << loader\\.errorString\\(\\);)" _ a b c) + (string-append a " KCM plugin\" << mod.service()->library() << \":\"" c))) #t))))) (inputs `(("kauth" ,kauth) -- cgit v1.2.3