diff --git a/cpprest-2.10.1-fix-warning-due-to-boost-1.66.patch b/cpprest-2.10.1-fix-warning-due-to-boost-1.66.patch new file mode 100644 index 0000000..0ad1de4 --- /dev/null +++ b/cpprest-2.10.1-fix-warning-due-to-boost-1.66.patch @@ -0,0 +1,28 @@ +From 17a198081379384ed9373828f905592ce9c4bdf3 Mon Sep 17 00:00:00 2001 +From: Robert Schumacher +Date: Wed, 3 Jan 2018 14:09:36 -0800 +Subject: [PATCH] Fix warning due to boost 1.66 + +--- + Release/include/pplx/threadpool.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Release/include/pplx/threadpool.h b/Release/include/pplx/threadpool.h +index c67db358..db1e97c8 100644 +--- a/Release/include/pplx/threadpool.h ++++ b/Release/include/pplx/threadpool.h +@@ -67,9 +67,10 @@ public: + boost::asio::io_service& service() { return m_service; } + + protected: +- threadpool(size_t num_threads) : m_service(num_threads) {} ++ threadpool(size_t num_threads) : m_service(static_cast(num_threads)) {} + + boost::asio::io_service m_service; + }; + + } ++ +-- +2.14.3 + diff --git a/cpprest.spec b/cpprest.spec index ef0e1a7..ac96418 100644 --- a/cpprest.spec +++ b/cpprest.spec @@ -2,7 +2,7 @@ %define minor 10 Name: cpprest Version: 2.10.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: C++ REST library License: MIT Url: https://github.com/Microsoft/cpprestsdk @@ -13,6 +13,9 @@ Patch1: cpprest-2.10.0-disable-outside-and-failing-tests.patch Patch2: cpprest-2.10.0-disable-tests-long-timeouts.patch # Disable test extract_floating_point, which fails on ppc64le and aarch64 Patch3: cpprest-2.9.1-disable-test-extract_floating_point.patch +# Fix warning due to boost 1.66 +# https://github.com/Microsoft/cpprestsdk/commit/17a198081379384ed9373828f905592ce9c4bdf3 +Patch4: cpprest-2.10.1-fix-warning-due-to-boost-1.66.patch BuildRequires: boost-devel >= 1.55 BuildRequires: cmake >= 3.0 @@ -52,7 +55,7 @@ cd Release mkdir build.release cd build.release export CXXFLAGS="%{optflags} -Wl,--as-needed" -%cmake .. -DCMAKE_BUILD_TYPE=Release +%cmake .. -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF make %{?_smp_mflags} %install @@ -88,6 +91,11 @@ cd Release/build.release/Binaries %changelog +* Sun Feb 11 2018 Wolfgang Stöggl - 2.10.1-4 +- Rebuilt for Boost 1.66 +- Added patch to fix warning due to boost 1.66 +- Pass -DWERROR=OFF to cmake + * Wed Feb 07 2018 Fedora Release Engineering - 2.10.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild