htgoebel pushed a commit to branch master
in repository guix.
commit fd8c53cb9eaa876d4006a5f0a3096d20d38a064c
Author: Hartmut Goebel <[email protected]>
Date: Mon Oct 23 13:17:30 2017 +0200
gnu: kcmutils: Make QDirIterator follow symlinks.
Transfer the NixOS patch "kcmutils-follow-symlinks" for kcmutils as of
2018-02-17.
* gnu/packages/kde-frameworks.scm(kcmutils)<patch>: New phase.
---
gnu/packages/kde-frameworks.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index caf846b..60f9eeb 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Andreas Enge <[email protected]>
;;; Copyright © 2016 Efraim Flashner <[email protected]>
-;;; Copyright © 2016,2017 Hartmut Goebel <[email protected]>
+;;; Copyright © 2016,2017,2018 Hartmut Goebel <[email protected]>
;;; Copyright © 2016 David Craven <[email protected]>
;;; Copyright © 2017 Thomas Danckaert <[email protected]>
;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]>
@@ -2088,6 +2088,16 @@ using the XBEL format.")
("kservice" ,kservice)))
(native-inputs
`(("extra-cmake-modules" ,extra-cmake-modules)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* "src/kpluginselector.cpp"
+ ;; make QDirIterator follow symlinks
+ (("^\\s*(QDirIterator it\\(.*,
QDirIterator::Subdirectories)(\\);)" _ a b)
+ (string-append a " | QDirIterator::FollowSymlinks" b)))
+ #t)))))
(inputs
`(("kauth" ,kauth)
("kcodecs" ,kcodecs)