summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/ceph/ceph/0001-common-rgw-workaround-for-boost-1.72.patch62
-rw-r--r--recipes-extended/ceph/ceph_14.2.3.bb1
2 files changed, 63 insertions, 0 deletions
diff --git a/recipes-extended/ceph/ceph/0001-common-rgw-workaround-for-boost-1.72.patch b/recipes-extended/ceph/ceph/0001-common-rgw-workaround-for-boost-1.72.patch
new file mode 100644
index 00000000..44bda1a2
--- /dev/null
+++ b/recipes-extended/ceph/ceph/0001-common-rgw-workaround-for-boost-1.72.patch
@@ -0,0 +1,62 @@
1From ea64c4909ffeae10e5d8e0a23604030e8849f803 Mon Sep 17 00:00:00 2001
2From: Kefu Chai <kchai@redhat.com>
3Date: Mon, 23 Dec 2019 16:26:13 +0800
4Subject: [PATCH] common,rgw: workaround for boost 1.72
5
6see also https://github.com/boostorg/coroutine/issues/46
7
8will need to remove this change once we require boost >= 1.73
9
10Signed-off-by: Kefu Chai <kchai@redhat.com>
11
12Upstream-Status: Backport [https://github.com/ceph/ceph/commit/ea64c4909ffeae10e5d8e0a23604030e8849f803]
13
14Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
15---
16 src/common/async/yield_context.h | 2 ++
17 src/rgw/rgw_asio_frontend.cc | 2 ++
18 src/test/librados/asio.cc | 2 ++
19 3 files changed, 6 insertions(+)
20
21diff --git a/src/common/async/yield_context.h b/src/common/async/yield_context.h
22index fda9541eb4..436192c02f 100644
23--- a/src/common/async/yield_context.h
24+++ b/src/common/async/yield_context.h
25@@ -14,6 +14,8 @@
26
27 #pragma once
28
29+#include <boost/range/begin.hpp>
30+#include <boost/range/end.hpp>
31 #include <boost/asio/io_context.hpp>
32
33 #include "acconfig.h"
34diff --git a/src/rgw/rgw_asio_frontend.cc b/src/rgw/rgw_asio_frontend.cc
35index 7df74225f6..deab1b0c66 100644
36--- a/src/rgw/rgw_asio_frontend.cc
37+++ b/src/rgw/rgw_asio_frontend.cc
38@@ -7,6 +7,8 @@
39
40 #include <boost/asio.hpp>
41 #define BOOST_COROUTINES_NO_DEPRECATION_WARNING
42+#include <boost/range/begin.hpp>
43+#include <boost/range/end.hpp>
44 #include <boost/asio/spawn.hpp>
45 #include <boost/intrusive/list.hpp>
46
47diff --git a/src/test/librados/asio.cc b/src/test/librados/asio.cc
48index 9c86ad420c..8fa4bab197 100644
49--- a/src/test/librados/asio.cc
50+++ b/src/test/librados/asio.cc
51@@ -21,6 +21,8 @@
52
53 #ifdef HAVE_BOOST_CONTEXT
54 #define BOOST_COROUTINES_NO_DEPRECATION_WARNING
55+#include <boost/range/begin.hpp>
56+#include <boost/range/end.hpp>
57 #include <boost/asio/spawn.hpp>
58 #endif
59 #include <boost/asio/use_future.hpp>
60--
612.17.1
62
diff --git a/recipes-extended/ceph/ceph_14.2.3.bb b/recipes-extended/ceph/ceph_14.2.3.bb
index 25a8ea27..b2bf2206 100644
--- a/recipes-extended/ceph/ceph_14.2.3.bb
+++ b/recipes-extended/ceph/ceph_14.2.3.bb
@@ -13,6 +13,7 @@ SRC_URI = "http://download.ceph.com/tarballs/ceph-${PV}.tar.gz \
13 file://ceph.conf \ 13 file://ceph.conf \
14 file://0001-rgw-add-executor-type-for-basic_waitable_timers.patch \ 14 file://0001-rgw-add-executor-type-for-basic_waitable_timers.patch \
15 file://0001-rgw-beast-handle_connection-takes-io_context.patch \ 15 file://0001-rgw-beast-handle_connection-takes-io_context.patch \
16 file://0001-common-rgw-workaround-for-boost-1.72.patch \
16" 17"
17SRC_URI[md5sum] = "e4a53270fba14bf34d0b4c2a2340042e" 18SRC_URI[md5sum] = "e4a53270fba14bf34d0b4c2a2340042e"
18SRC_URI[sha256sum] = "63d0eddab80f7bcdd4e9ac86d2b36c6cc8c9e2d34f20e8e426ff1620d66748dd" 19SRC_URI[sha256sum] = "63d0eddab80f7bcdd4e9ac86d2b36c6cc8c9e2d34f20e8e426ff1620d66748dd"