git: 2dcd59d5daf2 - main - devel/cpprestsdk: fix buils with Boost-1.89 (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Oct 2025 00:41:36 UTC
The branch main has been updated by fluffy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2dcd59d5daf211ebe2f0907ea295699cfdcb4b3d
commit 2dcd59d5daf211ebe2f0907ea295699cfdcb4b3d
Author: Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-10-23 17:55:20 +0000
Commit: Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-10-24 00:41:31 +0000
devel/cpprestsdk: fix buils with Boost-1.89 (+)
Project get strike from moved asio::deadline_timer.
Follow the new placeholder for deadline_timer.
wrkdirs/usr/ports/devel/cpprestsdk/work/cpprestsdk-2.10.19/Release/src/http/client/http_client_asio.cpp:470:18: error: no type named 'deadline_timer' in namespace 'boost::asio'
470 | boost::asio::deadline_timer m_pool_epoch_timer;
| ~~~~~~~~~~~~~^
PR: 290448
---
.../cpprestsdk/files/patch-src_http_client_http__client__asio.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/devel/cpprestsdk/files/patch-src_http_client_http__client__asio.cpp b/devel/cpprestsdk/files/patch-src_http_client_http__client__asio.cpp
index 7b4d1af0d422..8906489dced3 100644
--- a/devel/cpprestsdk/files/patch-src_http_client_http__client__asio.cpp
+++ b/devel/cpprestsdk/files/patch-src_http_client_http__client__asio.cpp
@@ -1,5 +1,13 @@
--- src/http/client/http_client_asio.cpp.orig 2023-12-05 04:23:31 UTC
+++ src/http/client/http_client_asio.cpp
+@@ -27,6 +27,7 @@
+ #endif
+ #include <boost/algorithm/string.hpp>
+ #include <boost/asio.hpp>
++#include <boost/asio/deadline_timer.hpp>
+ #include <boost/asio/ssl.hpp>
+ #include <boost/asio/ssl/error.hpp>
+ #include <boost/asio/steady_timer.hpp>
@@ -146,7 +146,7 @@ class asio_connection (public)
friend class asio_client;