aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-06 01:10:11 +0800
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-07-18 10:45:03 +0800
commit44f2739faa6bab5428f9814eb021422098e624cd (patch)
treed9cd4d9c05f6ce01dd6a075b633223bba5c102b9
parent2dbab149a06351ee9908a59a1de63f06d26059d2 (diff)
downloadguix-44f2739faa6bab5428f9814eb021422098e624cd.tar.gz
guix-44f2739faa6bab5428f9814eb021422098e624cd.zip
gnu: kservice: Update to 6.3.0.
* gnu/packages/kde-frameworks.scm (kservice): Update to 6.3.0. [inputs]: Remove qtbase-5; add qtbase and qtdeclarative. [arguments]: Use Gexps; Stop replace check phase, Add check-setup phase. Change-Id: Ic86be7cb1ac81902a6c174c84eedc376b52c3061
-rw-r--r--gnu/packages/kde-frameworks.scm56
1 files changed, 31 insertions, 25 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 9809341337..4d4436091b 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -3094,7 +3094,7 @@ typed.")
(define-public kservice
(package
(name "kservice")
- (version "5.114.0")
+ (version "6.3.0")
(source (origin
(method url-fetch)
(uri (string-append
@@ -3103,37 +3103,43 @@ typed.")
name "-" version ".tar.xz"))
(sha256
(base32
- "0jdvlplnsb9w628wh3ip6awxvhgyc097zh7ls9614ymkbnpc9xca"))))
+ "0m7ym2hzsw1aylrinqmq88912mi89j0wyffb1lxjkwp0q5i4smm0"))))
(build-system cmake-build-system)
(propagated-inputs
(list kconfig kcoreaddons kdoctools))
(native-inputs
(list bison extra-cmake-modules flex shared-mime-info))
(inputs
- (list kcrash kdbusaddons kdoctools ki18n qtbase-5))
+ (list kcrash kdbusaddons kdoctools ki18n qtbase qtdeclarative))
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch
- ;; Adopted from NixOS' patches "qdiriterator-follow-symlinks" and
- ;; "no-canonicalize-path".
- (lambda _
- (substitute* "src/sycoca/kbuildsycoca.cpp"
- ;; make QDirIterator follow symlinks
- (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
- (string-append a " | QDirIterator::FollowSymlinks" b)))
- (substitute* "src/sycoca/vfolder_menu.cpp"
- ;; Normalize path, but don't resolve symlinks (taken from
- ;; NixOS)
- (("^\\s*QString resolved = QDir\\(dir\\)\\.canonicalPath\\(\\);")
- "QString resolved = QDir::cleanPath(dir);"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (setenv "HOME" (getcwd))
- (setenv "QT_QPA_PLATFORM" "offscreen")
- ;; Disable failing tests.
- (invoke "ctest" "-E" "(kautostarttest|ksycocatest|kapplicationtradertest)")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ ;; Adopted from NixOS' patches "qdiriterator-follow-symlinks" and
+ ;; "no-canonicalize-path".
+ (lambda _
+ (substitute* "src/sycoca/kbuildsycoca.cpp"
+ ;; make QDirIterator follow symlinks
+ (("^\\s*(QDirIterator it\\(.*, QDirIterator::Subdirectories)(\\);)" _ a b)
+ (string-append a " | QDirIterator::FollowSymlinks" b)))
+ (substitute* "src/sycoca/vfolder_menu.cpp"
+ ;; Normalize path, but don't resolve symlinks (taken from
+ ;; NixOS)
+ (("^\\s*QString resolved = QDir\\(dir\\)\\.canonicalPath\\(\\);")
+ "QString resolved = QDir::cleanPath(dir);"))))
+ (add-before 'check 'check-setup
+ (lambda _
+ (with-output-to-file "autotests/BLACKLIST"
+ (lambda _
+ (for-each
+ (lambda (name) (display (string-append "[" name "]\n*\n")))
+ (list "extraFileInFutureShouldRebuildSycocaOnce"
+ "testNonReadableSycoca"))))
+ (setenv "XDG_RUNTIME_DIR" (getcwd))
+ (setenv "HOME" (getcwd))
+ ;; Make Qt render "offscreen", required for tests
+ (setenv "QT_QPA_PLATFORM" "offscreen"))))))
(home-page "https://community.kde.org/Frameworks")
(synopsis "Plugin framework for desktop services")
(description "KService provides a plugin framework for handling desktop