From cb5c2b4bfe7f2a48898817c3c261adb17fba8c04 Mon Sep 17 00:00:00 2001 From: Duncan Bellamy <dunk@denkimushi.com> Date: Tue, 2 Aug 2022 19:49:13 +0000 Subject: [PATCH] community/kodi: rebuild with fmt 9.0.0 --- community/kodi/APKBUILD | 6 ++++- community/kodi/fmt9-1.patch | 26 ++++++++++++++++++++ community/kodi/fmt9-2.patch | 47 +++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 community/kodi/fmt9-1.patch create mode 100644 community/kodi/fmt9-2.patch diff --git a/community/kodi/APKBUILD b/community/kodi/APKBUILD index 920860140783..2920246f6567 100644 --- a/community/kodi/APKBUILD +++ b/community/kodi/APKBUILD @@ -3,7 +3,7 @@ pkgname=kodi pkgver=19.4 _realname=Matrix -pkgrel=3 +pkgrel=4 _crossguid_hash="8f399e8bd4" pkgdesc="software media player and entertainment hub for digital media" url="https://kodi.tv/" @@ -112,6 +112,8 @@ source="https://github.com/xbmc/xbmc/archive/$pkgver-$_realname.tar.gz crossguid-$_crossguid_hash.tar.gz::https://mirrors.kodi.tv/build-deps/sources/crossguid-$_crossguid_hash.tar.gz fix-musl-incompability.patch sse-build.patch + fmt9-1.patch + fmt9-2.patch kodi.initd 60-kodi.rules " @@ -226,6 +228,8 @@ sha512sums=" 2682d63609d3dcdfcd8136be632e45df26ad88ce93b9c49745cf728bbd2e6254a7b05c8b059ab581d532372e504206a525a52564b64d076dfdae9c965a09fd16 crossguid-8f399e8bd4.tar.gz d3445c7f96eeab7cd2a2a67319fab09300ee2e8c03912d474e885d7e8a770b501abc59352972abb4dab6fab7f138b42fdb31b0113b9bb1a71b4f000fe1cdcbbb fix-musl-incompability.patch cf8e55505f45898b15d8db356f7f43e215f07f9e2ed8215d726f3be37d78b328e08763f4c678f7223d185df72821b2a863958a1c279edd26ac8dc9f99ab92791 sse-build.patch +c7352bf881b94a79316f5d1523c4e20de0cbb3078adca4c9809f3f2f7b575f2e8bcf164e0b2a605d0aac45203c87635db31f82e64cb7c2d0f0d319b66c2adc4c fmt9-1.patch +db9cadb2856d71ff2a5313b620ddc45678a149cf687fe4cf358950b6770cdf6be9a51e846ceb8da102bc0881247e9f06b85a326bc5bcb96736cee6a9fc756207 fmt9-2.patch 7e2a2289da3098e0007e461ad538dcd6435e908283caf1719788248fe736615890175e11392ca0cd68002872217bbf7b70cf909f228307828aa82467d5502ed4 kodi.initd 465a2079d598bf909a458d8e9d0ddd2b2a41dff83ba736542cffec7811c044295d5af092928f20aaa6cd3bc8b13bb03ede5c7ded1783680f890464e103392787 60-kodi.rules " diff --git a/community/kodi/fmt9-1.patch b/community/kodi/fmt9-1.patch new file mode 100644 index 000000000000..ddd95707abfa --- /dev/null +++ b/community/kodi/fmt9-1.patch @@ -0,0 +1,26 @@ +From 6a504c306b743b73225bd81e490ef7dc9fae2c25 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <rudi@heitbaum.com> +Date: Mon, 11 Jul 2022 09:39:02 +0000 +Subject: [PATCH] WinSystemX11: cast as char as formatting of non-void pointers + is disallowed + +--- + xbmc/windowing/X11/WinSystemX11.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/xbmc/windowing/X11/WinSystemX11.cpp b/xbmc/windowing/X11/WinSystemX11.cpp +index 8a18288fd8af0..033c0f77bf454 100644 +--- a/xbmc/windowing/X11/WinSystemX11.cpp ++++ b/xbmc/windowing/X11/WinSystemX11.cpp +@@ -1038,7 +1038,10 @@ bool CWinSystemX11::HasWindowManager() + + if(status == Success && items_read) + { +- CLog::Log(LOGDEBUG,"Window Manager Name: %s", data); ++ const char* s; ++ ++ s = reinterpret_cast<const char*>(data); ++ CLog::Log(LOGDEBUG, "Window Manager Name: {}", s); + } + else + CLog::Log(LOGDEBUG,"Window Manager Name: "); diff --git a/community/kodi/fmt9-2.patch b/community/kodi/fmt9-2.patch new file mode 100644 index 000000000000..988344b4a78a --- /dev/null +++ b/community/kodi/fmt9-2.patch @@ -0,0 +1,47 @@ +From 6e081841981af8fc0d88d4f549456fd93b7ae2ac Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <rudi@heitbaum.com> +Date: Wed, 6 Jul 2022 22:48:35 +1000 +Subject: [PATCH] GLUtils: cast as char as formatting of non-void pointers is + disallowed + +--- + xbmc/utils/GLUtils.cpp | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/xbmc/utils/GLUtils.cpp b/xbmc/utils/GLUtils.cpp +index 1ef804709ff56..c36dcf6a20fec 100644 +--- a/xbmc/utils/GLUtils.cpp ++++ b/xbmc/utils/GLUtils.cpp +@@ -148,27 +148,27 @@ void _VerifyGLState(const char* szfile, const char* szfunction, int lineno) + void LogGraphicsInfo() + { + #if defined(HAS_GL) || defined(HAS_GLES) +- const GLubyte *s; ++ const char* s; + +- s = glGetString(GL_VENDOR); ++ s = reinterpret_cast<const char*>(glGetString(GL_VENDOR)); + if (s) + CLog::Log(LOGINFO, "GL_VENDOR = %s", s); + else + CLog::Log(LOGINFO, "GL_VENDOR = NULL"); + +- s = glGetString(GL_RENDERER); ++ s = reinterpret_cast<const char*>(glGetString(GL_RENDERER)); + if (s) + CLog::Log(LOGINFO, "GL_RENDERER = %s", s); + else + CLog::Log(LOGINFO, "GL_RENDERER = NULL"); + +- s = glGetString(GL_VERSION); ++ s = reinterpret_cast<const char*>(glGetString(GL_VERSION)); + if (s) + CLog::Log(LOGINFO, "GL_VERSION = %s", s); + else + CLog::Log(LOGINFO, "GL_VERSION = NULL"); + +- s = glGetString(GL_SHADING_LANGUAGE_VERSION); ++ s = reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION)); + if (s) + CLog::Log(LOGINFO, "GL_SHADING_LANGUAGE_VERSION = %s", s); + else -- GitLab