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.
This commit is contained in:
Hartmut Goebel 2017-10-23 13:18:22 +02:00
parent fd8c53cb9e
commit be8cb44a9c
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF

View file

@ -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)