From e8da72c8e409bcc1bcf7afc2c6dd7aa2412de1c7 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 2 May 2024 06:37:46 +0000 Subject: [PATCH] kodi: fix gcc-14 build --- .../kodi-999.30-fix-gcc-14-compile.patch | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 packages/mediacenter/kodi/patches/kodi-999.30-fix-gcc-14-compile.patch diff --git a/packages/mediacenter/kodi/patches/kodi-999.30-fix-gcc-14-compile.patch b/packages/mediacenter/kodi/patches/kodi-999.30-fix-gcc-14-compile.patch new file mode 100644 index 0000000000..bcdacd0c52 --- /dev/null +++ b/packages/mediacenter/kodi/patches/kodi-999.30-fix-gcc-14-compile.patch @@ -0,0 +1,52 @@ +From 2bf5ab07731b3d4160196e6b8d9ab9e25bea2ef9 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Thu, 2 May 2024 08:02:42 +0000 +Subject: [PATCH 1/2] add missing c++ headers + +Add missing headers which are no longer indirectly included by +other headers, fixes build with gcc-14 + +Signed-off-by: Rudi Heitbaum +--- + xbmc/platform/posix/filesystem/SMBWSDiscoveryListener.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/xbmc/platform/posix/filesystem/SMBWSDiscoveryListener.cpp b/xbmc/platform/posix/filesystem/SMBWSDiscoveryListener.cpp +index d42c19bb2cd4a..142974591b1a7 100644 +--- a/xbmc/platform/posix/filesystem/SMBWSDiscoveryListener.cpp ++++ b/xbmc/platform/posix/filesystem/SMBWSDiscoveryListener.cpp +@@ -17,6 +17,7 @@ + + #include "platform/posix/filesystem/SMBWSDiscovery.h" + ++#include + #include + #include + #include + +From b6ddd8fb25ef20e8adb9a9f9b53bebf0cee3a970 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Thu, 2 May 2024 08:05:00 +0000 +Subject: [PATCH 2/2] Geometry: fix template-id not allowed for constructor + +fixes gcc-14 error: +- warning: template-id not allowed for constructor in C++20 + +Signed-off-by: Rudi Heitbaum +--- + xbmc/utils/Geometry.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xbmc/utils/Geometry.h b/xbmc/utils/Geometry.h +index 1bf4624d06d18..90e4275165a48 100644 +--- a/xbmc/utils/Geometry.h ++++ b/xbmc/utils/Geometry.h +@@ -177,7 +177,7 @@ template class CSizeGen + return {m_w, m_h}; + } + +- template explicit CSizeGen(const CSizeGen& rhs) ++ template explicit CSizeGen(const CSizeGen& rhs) + { + CheckSet(static_cast (rhs.m_w), static_cast (rhs.m_h)); + }