[Buildroot] [git commit branch/2024.11.x] package/curlpp: add patch to fix build
Peter Korsgaard
peter at korsgaard.com
Wed Jan 22 15:11:47 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=e85f37c892bf27b3e5e96513894bd73b0e2b4bde
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2024.11.x
curlpp is broken since the bump of libcurl to 8.10.0 in commit [1].
This patch backport a pull request from upstream from [2] to solve it.
Fixes:
https://autobuild.buildroot.org/results/4a4d3b248898f0e73620fcb1a7a94dcfb6e6866e/
[1] https://gitlab.com/buildroot.org/buildroot/-/commit/d68b999787a0e0838c3bb2d5966f11d8a349a49b
[2] https://github.com/jpbarrette/curlpp/pull/178
Signed-off-by: Thomas Bonnefille <thomas.bonnefille at bootlin.com>
[Julien:
- reword patch title one liner
- add link to commit which introduced the issue
- add link to the upstream pull request
]
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit f06c28d1afef98e80f358c35ae65e035aa64f6ea)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/curlpp/0001-fix-invalid-conversion.patch | 27 ++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/package/curlpp/0001-fix-invalid-conversion.patch b/package/curlpp/0001-fix-invalid-conversion.patch
new file mode 100644
index 0000000000..e95e9cd7c5
--- /dev/null
+++ b/package/curlpp/0001-fix-invalid-conversion.patch
@@ -0,0 +1,27 @@
+From b945d57a5acd12bda320a63eb9e45bbb7586cdde Mon Sep 17 00:00:00 2001
+From: Aaron Smith <aaron at soccergeek.net>
+Date: Mon, 16 Dec 2024 11:48:33 -0800
+Subject: [PATCH] Fix "invalid conversion from 'int' to 'CURLoption'" error
+
+Use cast to 'Curloption' to fix compiler error regarding invalid conversion from 'int' to 'CURLoption'.
+
+Upstream: https://github.com/jpbarrette/curlpp/pull/178
+Signed-off-by: Thomas Bonnefille <thomas.bonnefille at bootlin.com>
+---
+ include/curlpp/Options.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/curlpp/Options.hpp b/include/curlpp/Options.hpp
+index 40b64ed..292eaa7 100644
+--- a/include/curlpp/Options.hpp
++++ b/include/curlpp/Options.hpp
+@@ -308,7 +308,7 @@ namespace options
+ typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_LIMIT> LowSpeedLimit;
+ typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_TIME> LowSpeedTime;
+ typedef curlpp::OptionTrait<long, CURLOPT_MAXCONNECTS> MaxConnects;
+- typedef curlpp::OptionTrait<curl_closepolicy, CURLOPT_CLOSEPOLICY> ClosePolicy;
++ typedef curlpp::OptionTrait<curl_closepolicy, (CURLoption)CURLOPT_CLOSEPOLICY> ClosePolicy;
+ typedef curlpp::OptionTrait<bool, CURLOPT_FRESH_CONNECT> FreshConnect;
+ typedef curlpp::OptionTrait<bool, CURLOPT_FORBID_REUSE> ForbidReuse;
+ typedef curlpp::OptionTrait<long, CURLOPT_CONNECTTIMEOUT> ConnectTimeout;
+
More information about the buildroot
mailing list