From 2775e939cb78103851fcad07fcb42f84eb48d87d Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 14 Jul 2022 11:50:14 +0100 Subject: [PATCH] Add patch to fix Asio includes Resolves: #2106441 --- boost-1.76.0-asio-header.patch | 34 ++++++++++++++++++++++++++++++++++ boost.spec | 9 ++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 boost-1.76.0-asio-header.patch 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 2ec6a72..e6140c5 100644 --- a/boost.spec +++ b/boost.spec @@ -42,7 +42,7 @@ Name: boost %global real_name boost Summary: The free peer-reviewed portable C++ source libraries Version: 1.76.0 -Release: 11%{?dist} +Release: 12%{?dist} License: Boost and MIT and Python # Replace each . with _ in %%{version} @@ -174,6 +174,9 @@ Patch104: boost-1.76.0-fix-narrowing-conversions-for-ppc.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 @@ -701,6 +704,7 @@ find ./boost -name '*.hpp' -perm /111 | xargs chmod a-x %patch103 -p2 %patch104 -p2 %patch105 -p1 +%patch106 -p2 %build %set_build_flags @@ -1302,6 +1306,9 @@ fi %{_mandir}/man1/b2.1* %changelog +* Thu Jul 14 2022 Jonathan Wakely - 1.76.0-12 +- Add patch to fix Asio includes (#2106441) + * Tue Apr 26 2022 Thomas Rodgers - 1.76.0-11 - Add BuildRequires: libzstd-devel to fix (#2042336)