[Buildroot] [git commit branch/2025.02.x] package/kodi: Fix build with curl 8.16.0
Thomas Perale
thomas.perale at mind.be
Thu Sep 18 14:44:33 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=cf84d1eabc2a6c7b305e27cc26213dd8c3b0c5a6
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.02.x
curl 8.16.0 bumped the enums to long, see
https://github.com/curl/curl/pull/18054
Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 3ed6c8e727934ef9c84699f1de14e46724bfa7f1)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
package/kodi/0002-curl-8.16.0.patch | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/package/kodi/0002-curl-8.16.0.patch b/package/kodi/0002-curl-8.16.0.patch
new file mode 100644
index 0000000000..31ffa7b964
--- /dev/null
+++ b/package/kodi/0002-curl-8.16.0.patch
@@ -0,0 +1,24 @@
+Fix build with curl 8.16.0
+
+Downloaded from
+https://gitlab.alpinelinux.org/alpine/aports/-/commit/106a02411488e3f71b9f2085a4a857e4be27b9ea
+
+Upstream: https://github.com/xbmc/xbmc/pull/27224
+
+The upstream patch is aimed at the upcoming release of Kodi 22.0 which
+saw many changes to CurlFile.cpp so we use the fix from Alpine.
+
+Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
+
+--- a/xbmc/filesystem/CurlFile.cpp
++++ b/xbmc/filesystem/CurlFile.cpp
+@@ -44,7 +44,7 @@ using namespace std::chrono_literals;
+
+ #define FITS_INT(a) (((a) <= INT_MAX) && ((a) >= INT_MIN))
+
+-curl_proxytype proxyType2CUrlProxyType[] = {
++long proxyType2CUrlProxyType[] = {
+ CURLPROXY_HTTP, CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A,
+ CURLPROXY_SOCKS5, CURLPROXY_SOCKS5_HOSTNAME, CURLPROXY_HTTPS,
+ };
+
More information about the buildroot
mailing list