From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/kodi/, media-tv/kodi/files/
Date: Sun, 14 Sep 2025 10:37:17 +0000 (UTC) [thread overview]
Message-ID: <1757846106.817a846093e1d4aad6b94e80a9a7a14e90ef5968.sam@gentoo> (raw)
commit: 817a846093e1d4aad6b94e80a9a7a14e90ef5968
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Thu Sep 11 14:21:53 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 14 10:35:06 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=817a8460
media-tv/kodi: handle curl-8.16 type breakage
Closes: https://bugs.gentoo.org/962751
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43748
Closes: https://github.com/gentoo/gentoo/pull/43748
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-tv/kodi/files/kodi-21.2-fix-curl-8.16.patch | 15 ++++++++++
.../files/kodi-22.0_alpha1-fix-curl-8.16.patch | 32 ++++++++++++++++++++++
media-tv/kodi/kodi-21.2-r5.ebuild | 1 +
media-tv/kodi/kodi-22.0_alpha1.ebuild | 1 +
4 files changed, 49 insertions(+)
diff --git a/media-tv/kodi/files/kodi-21.2-fix-curl-8.16.patch b/media-tv/kodi/files/kodi-21.2-fix-curl-8.16.patch
new file mode 100644
index 000000000000..1234e6ee601f
--- /dev/null
+++ b/media-tv/kodi/files/kodi-21.2-fix-curl-8.16.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/962751
+https://gitlab.alpinelinux.org/alpine/aports/-/blob/106a02411488e3f71b9f2085a4a857e4be27b9ea/community/kodi/curl-8.16.0.patch
+
+--- 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,
+ };
+
diff --git a/media-tv/kodi/files/kodi-22.0_alpha1-fix-curl-8.16.patch b/media-tv/kodi/files/kodi-22.0_alpha1-fix-curl-8.16.patch
new file mode 100644
index 000000000000..393159f2b56a
--- /dev/null
+++ b/media-tv/kodi/files/kodi-22.0_alpha1-fix-curl-8.16.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/962751
+https://github.com/xbmc/xbmc/pull/27224
+
+Modified to apply to 22.0_alpha1 which doesn't include.
+https://github.com/xbmc/xbmc/commit/8a27124db43ec10415b21aa6c7a15b0b6aded656
+
+From 8b44b36f7bfe6e32770c7df5f956a1da9fcaaf61 Mon Sep 17 00:00:00 2001
+From: Achill Gilgenast <achill@achill.org>
+Date: Wed, 10 Sep 2025 19:16:17 +0200
+Subject: [PATCH] [filesystem] Switch to long for CURLPROXY_* enums
+
+curl 8.16.0 bumped the enums to long, see: https://github.com/curl/curl/pull/18054
+
+This fixes the build with curl 8.16+ for the following failure:
+
+ /builds/alpine/aports/community/kodi/src/xbmc-21.2-Omega/xbmc/filesystem/CurlFile.cpp:48:5: error: cannot initialize an array element of type 'curl_proxytype' with an rvalue of type 'long'
+ 48 | CURLPROXY_HTTP, CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A,
+ | ^~~~~~~~~~~~~~
+ /usr/include/curl/curl.h:791:35: note: expanded from macro 'CURLPROXY_HTTP'
+ 791 | #define CURLPROXY_HTTP 0L /* added in 7.10, new in 7.19.4 default is
+ | ^~
+ ...
+--- a/xbmc/filesystem/CurlFile.cpp
++++ b/xbmc/filesystem/CurlFile.cpp
+@@ -46,7 +46,7 @@ using namespace std::chrono_literals;
+ #define FITS_INT(a) (((a) <= INT_MAX) && ((a) >= INT_MIN))
+
+-static const auto proxyType2CUrlProxyType = std::unordered_map<XFILE::CCurlFile::ProxyType, int>{
++static const auto proxyType2CUrlProxyType = std::unordered_map<XFILE::CCurlFile::ProxyType, long>{
+ {CCurlFile::ProxyType::HTTP, CURLPROXY_HTTP},
+ {CCurlFile::ProxyType::SOCKS4, CURLPROXY_SOCKS4},
+ {CCurlFile::ProxyType::SOCKS4A, CURLPROXY_SOCKS4A},
diff --git a/media-tv/kodi/kodi-21.2-r5.ebuild b/media-tv/kodi/kodi-21.2-r5.ebuild
index 6d7410ab0403..6b57ed889570 100644
--- a/media-tv/kodi/kodi-21.2-r5.ebuild
+++ b/media-tv/kodi/kodi-21.2-r5.ebuild
@@ -273,6 +273,7 @@ PATCHES=(
"${FILESDIR}"/kodi-21-optional-ffmpeg-libx11.patch
"${FILESDIR}"/kodi-21.1-silence-libdvdread-git.patch
"${FILESDIR}"/kodi-21.2-pipewire-1.4.0-fix.patch
+ "${FILESDIR}"/kodi-21.2-fix-curl-8.16.patch
)
# bug #544020
diff --git a/media-tv/kodi/kodi-22.0_alpha1.ebuild b/media-tv/kodi/kodi-22.0_alpha1.ebuild
index f158ac03cc13..4f8181d37aae 100644
--- a/media-tv/kodi/kodi-22.0_alpha1.ebuild
+++ b/media-tv/kodi/kodi-22.0_alpha1.ebuild
@@ -273,6 +273,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/kodi-21-optional-ffmpeg-libx11.patch
"${FILESDIR}"/kodi-22-silence-libdvdread-git.patch
+ "${FILESDIR}"/kodi-22.0_alpha1-fix-curl-8.16.patch
)
# bug #544020
next reply other threads:[~2025-09-14 10:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-14 10:37 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-14 21:55 [gentoo-commits] repo/gentoo:master commit in: media-tv/kodi/, media-tv/kodi/files/ Jay Faulkner
2025-02-21 13:02 Sam James
2024-10-01 19:11 Andreas Sturmlechner
2024-09-14 19:56 Andreas Sturmlechner
2024-01-28 14:51 Sam James
2023-05-14 10:29 Andreas Sturmlechner
2022-11-23 6:01 Craig Andrews
2022-07-14 14:00 Craig Andrews
2021-06-25 13:35 Craig Andrews
2020-11-19 19:46 Craig Andrews
2020-09-01 18:59 Craig Andrews
2017-10-24 19:09 Craig Andrews
2017-08-29 14:42 Craig Andrews
2017-08-29 14:42 Craig Andrews
2017-07-11 21:54 Michał Górny
2017-07-11 21:54 Michał Górny
2017-07-11 21:54 Michał Górny
2017-01-10 15:07 David Seifert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1757846106.817a846093e1d4aad6b94e80a9a7a14e90ef5968.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox