Subject: [PATCH 2/2] gnu: kodi: Fix build.

From: Nicolas Graves <[email-masked]>
Date: Tue, 8 Oct 2024 08:32:14 +0200

* gnu/packages/kodi.scm (kodi): Fix build.
  [inputs]: Add libxcrypt.
  [arguments]<#:phases>: Ignore failing tests in 'patch-stuff phase.
---
 gnu/packages/kodi.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kodi.scm b/gnu/packages/kodi.scm
index 655c82ad6c..432da7d3d5 100644
--- a/gnu/packages/kodi.scm
+++ b/gnu/packages/kodi.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2020 Michael Rohleder <[email-masked]>
 ;;; Copyright © 2021 Greg Hogan <[email-masked]>
 ;;; Copyright © 2022 Ricardo Wurmus <[email-masked]>
+;;; Copyright © 2024 Nicolas Graves <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -43,6 +44,7 @@ (define-module (gnu packages kodi)
   #:use-module (gnu packages check)
   #:use-module (gnu packages cmake)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages crypto)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages documentation)
@@ -376,7 +378,12 @@ (define-public kodi
                 "TEST_F(TestSystemInfo, DISABLED_GetOsVersion)"))
              (substitute* "xbmc/utils/test/TestCPUInfo.cpp"
                (("TEST_F\\(TestCPUInfo, GetCPUFrequency\\)")
-                "TEST_F(TestCPUInfo, DISABLED_GetCPUFrequency)"))))
+                "TEST_F(TestCPUInfo, DISABLED_GetCPUFrequency)"))
+             (substitute* "xbmc/test/TestDateTime.cpp"
+               (("TEST_F\\(TestDateTime, TmOperators\\)")
+                "TEST_F(TestDateTime, DISABLED_TmOperators)")
+               (("TEST_F\\(TestDateTime, GetAsTm\\)")
+                "TEST_F(TestDateTime, DISABLED_GetAsTm)"))))
          (add-before 'build 'set-build-environment
            (lambda _
              ;; Some bundled build scripts fall back to /bin/sh
@@ -444,6 +451,7 @@ (define-public kodi
            libtiff
            libva
            libvorbis
+           libxcrypt
            libxml2
            libxrandr
            libxrender
-- 
2.46.0