From 2844380e8705ef9f76b10a7b6cc6e284d53f2271 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Jul 14 2022 15:05:40 +0000 Subject: Add patch to fix Asio includes Resolves: #2106441 --- diff --git a/boost-1.76.0-asio-header.patch b/boost-1.76.0-asio-header.patch new file mode 100644 index 0000000..95ce2bc --- /dev/null +++ b/boost-1.76.0-asio-header.patch @@ -0,0 +1,34 @@ +From 71964b22c7fade69cc4caa1c869a868e3a32cc97 Mon Sep 17 00:00:00 2001 +From: Christopher Kohlhoff +Date: Wed, 2 Mar 2022 21:41:04 +1100 +Subject: [PATCH] Header is needed for std::exchange. + +--- + include/boost/asio/awaitable.hpp | 1 + + include/boost/asio/impl/awaitable.hpp | 1 - + 2 files changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/boost/asio/awaitable.hpp b/include/boost/asio/awaitable.hpp +index a9cc90d43..750198995 100644 +--- a/include/boost/asio/awaitable.hpp ++++ b/include/boost/asio/awaitable.hpp +@@ -25,6 +25,7 @@ + # include + #endif // defined(BOOST_ASIO_HAS_STD_COROUTINE) + ++#include + #include + + #include +diff --git a/include/boost/asio/impl/awaitable.hpp b/include/boost/asio/impl/awaitable.hpp +index 49a47e29a..c66fa74c6 100644 +--- a/include/boost/asio/impl/awaitable.hpp ++++ b/include/boost/asio/impl/awaitable.hpp +@@ -19,7 +19,6 @@ + #include + #include + #include +-#include + #include + #include + #include diff --git a/boost.spec b/boost.spec index 4474122..3e0edde 100644 --- a/boost.spec +++ b/boost.spec @@ -165,6 +165,9 @@ Patch102: boost-1.76.0-random-test.patch # https://github.com/boostorg/ptr_container/pull/27 Patch105: boost-1.76.0-ptr_cont-xml.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=2106441 +Patch106: boost-1.76.0-asio-header.patch + %bcond_with tests %bcond_with docs_generated @@ -690,6 +693,7 @@ find ./boost -name '*.hpp' -perm /111 | xargs chmod a-x %patch101 -p1 %patch102 -p1 %patch105 -p1 +%patch106 -p2 %build %set_build_flags @@ -1306,6 +1310,7 @@ fi - Add patch to fix CI failure - Add patch to fix XML validation errors in ptr_container docs - Add BuildRequires: libzstd-devel (#2042336) +- Add patch to fix Asio includes (#2106441) * Thu Aug 05 2021 Thomas Rodgers - 1.76.0-4 - Third attempt at making the long double c99 and tr1 math libs conditional