Subject: [bug#50862] [PATCH core-updates-frozen 05/19] gnu: kdav: Update to 5.87.0.

From: Brendan Tildesley <[email-masked]>
Date: Fri, 15 Oct 2021 20:30:01 +1100

* gnu/packages/kde-frameworks.scm (kdav): Update to 5.87.0.
[arguments]: Disable failing test.
---
 gnu/packages/kde-frameworks.scm | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 1bbfbddf6a..35818d579b 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2858,14 +2858,15 @@ KIO enabled infrastructure.")
 (define-public kdav
   (package
     (name "kdav")
-    (version "20.04.3")
+    (version "5.87.0")
     (source
      (origin
        (method url-fetch)
-       (uri (string-append "mirror://kde/stable/release-service/" version
-                           "/src/kdav-" version ".tar.xz"))
+       (uri (string-append "mirror://kde/stable/frameworks/"
+                           (version-major+minor version) "/"
+                           name "-" version ".tar.xz"))
        (sha256
-        (base32 "0445gl4xm0h39igkxgb6vmq5iaa04wkgrgbs7nfd0zwngk8xaidn"))))
+        (base32 "0sb1g0wdpql5gw52nxhzkk1wa9md2k25lwyf902g3pf7ahdgdk5z"))))
     (build-system qt-build-system)
     (native-inputs
      `(("extra-cmake-modules" ,extra-cmake-modules)))
@@ -2875,6 +2876,14 @@ KIO enabled infrastructure.")
        ("kio" ,kio)
        ("qtbase" ,qtbase-5)
        ("qtxmlpatterns" ,qtxmlpatterns)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               ;; Inconsistent test failure: https://bugs.kde.org/show_bug.cgi?id=442935
+               (invoke "ctest" "-E" "kdav-davcollectionsmultifetchjobtest")))))))
     (home-page "https://invent.kde.org/frameworks/kdav")
     (synopsis "DAV protocol implementation with KJobs")
     (description "This is a DAV protocol implementation with KJobs.  Calendars
-- 
2.33.0