gnu: kconfigwidgets: Make QDirIterator follow symlinks.

Transfer the NixOS patch "qdiriterator-follow-symlinks" for kconfigwidgets as
of 2018-02-17.

* gnu/packages/kde-frameworks.scm(kconfigwidgets)<patch>: New phase.
This commit is contained in:
Hartmut Goebel 2017-10-23 13:13:02 +02:00
parent be8cb44a9c
commit daff96de1f
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 7 additions and 0 deletions

View File

@ -2152,6 +2152,13 @@ KCModules can be created with the KConfigWidgets framework.")
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* "src/khelpclient.cpp"
;; make QDirIterator follow symlinks
(("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
(string-append a " | QDirIterator::FollowSymlinks" b)))
#t))
(add-before 'check 'check-setup (add-before 'check 'check-setup
(lambda _ (lambda _
;; make Qt render "offscreen", required for tests ;; make Qt render "offscreen", required for tests