Add patch to fix Asio includes

Resolves: #2106441
This commit is contained in:
Jonathan Wakely 2022-07-14 11:50:14 +01:00
parent e0266acc24
commit 2775e939cb
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,34 @@
From 71964b22c7fade69cc4caa1c869a868e3a32cc97 Mon Sep 17 00:00:00 2001
From: Christopher Kohlhoff <chris@kohlhoff.com>
Date: Wed, 2 Mar 2022 21:41:04 +1100
Subject: [PATCH] Header <utility> 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 <experimental/coroutine>
#endif // defined(BOOST_ASIO_HAS_STD_COROUTINE)
+#include <utility>
#include <boost/asio/any_io_executor.hpp>
#include <boost/asio/detail/push_options.hpp>
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 <exception>
#include <new>
#include <tuple>
-#include <utility>
#include <boost/asio/detail/thread_context.hpp>
#include <boost/asio/detail/thread_info_base.hpp>
#include <boost/asio/detail/type_traits.hpp>

View File

@ -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 <jwakely@redhat.com> - 1.76.0-12
- Add patch to fix Asio includes (#2106441)
* Tue Apr 26 2022 Thomas Rodgers <trodgers@redhat.com> - 1.76.0-11
- Add BuildRequires: libzstd-devel to fix (#2042336)