diff --git a/0001-s390x-A-compile-hack.patch b/0001-s390x-A-compile-hack.patch new file mode 100644 index 0000000..1e63e86 --- /dev/null +++ b/0001-s390x-A-compile-hack.patch @@ -0,0 +1,33 @@ +From efb45add11eb3516b939f04381bd21ab9a5523d1 Mon Sep 17 00:00:00 2001 +From: Boris Ranto +Date: Thu, 28 Feb 2019 00:58:12 +0100 +Subject: [PATCH] s390x: A compile hack + +Signed-off-by: Boris Ranto +--- + src/rgw/rgw_dmclock_async_scheduler.cc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/rgw/rgw_dmclock_async_scheduler.cc b/src/rgw/rgw_dmclock_async_scheduler.cc +index 18ba5a5e32..08657cf2b5 100644 +--- a/src/rgw/rgw_dmclock_async_scheduler.cc ++++ b/src/rgw/rgw_dmclock_async_scheduler.cc +@@ -41,6 +41,7 @@ int AsyncScheduler::schedule_request_impl(const client_id& client, + const Time& time, const Cost& cost, + optional_yield yield_ctx) + { ++#ifdef HAVE_BOOST_CONTEXT + ceph_assert(yield_ctx); + + auto &yield = yield_ctx.get_yield_context(); +@@ -53,6 +54,7 @@ int AsyncScheduler::schedule_request_impl(const client_id& client, + else + return -ec.value(); + } ++#endif + + return 0; + } +-- +2.20.1 + diff --git a/ceph.spec b/ceph.spec index ff20c64..f840eaf 100644 --- a/ceph.spec +++ b/ceph.spec @@ -120,6 +120,7 @@ Group: System/Filesystems %endif URL: http://ceph.com/ Source0: %{?_remote_tarball_prefix}ceph-%{version}.tar.bz2 +Patch001: 0001-s390x-A-compile-hack.patch ExcludeArch: i686 armv7hl ################################################################################# # dependencies that apply across all distro families