guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/09: gnu: kcmutils: Print plugin name when loading fails.


From: guix-commits
Subject: 02/09: gnu: kcmutils: Print plugin name when loading fails.
Date: Fri, 4 Jan 2019 04:11:44 -0500 (EST)

htgoebel pushed a commit to branch master
in repository guix.

commit be8cb44a9c4af541fc3ba6cafb1228fcf03686d0
Author: Hartmut Goebel <address@hidden>
Date:   Mon Oct 23 13:18:22 2017 +0200

    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)<patch>: 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 60f9eeb..e8e2097 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2097,6 +2097,10 @@ using the XBEL format.")
                ;; 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]