diff --git a/boost-1.66.0-compute.patch b/boost-1.66.0-compute.patch new file mode 100644 index 0000000..2bd2b4a --- /dev/null +++ b/boost-1.66.0-compute.patch @@ -0,0 +1,23 @@ +From fdbdb94db64e888fce90fe519be23c2a4396a82e Mon Sep 17 00:00:00 2001 +From: pradeep +Date: Tue, 8 May 2018 14:53:38 +0530 +Subject: [PATCH 1/2] Fix return var qualifier in svm_ptr::get_context + +Lack of `const` qualifier is throwing errors with GCC 8.1 +--- + include/boost/compute/memory/svm_ptr.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/boost/compute/memory/svm_ptr.hpp b/include/boost/compute/memory/svm_ptr.hpp +index c8753f5b..56cf1268 100644 +--- a/include/boost/compute/memory/svm_ptr.hpp ++++ b/include/boost/compute/memory/svm_ptr.hpp +@@ -126,7 +126,7 @@ class svm_ptr + return m_ptr - other.m_ptr; + } + +- context& get_context() const ++ const context& get_context() const + { + return m_context; + } diff --git a/boost.spec b/boost.spec index d8becae..2a82092 100644 --- a/boost.spec +++ b/boost.spec @@ -36,7 +36,7 @@ Name: boost Summary: The free peer-reviewed portable C++ source libraries Version: 1.66.0 %global version_enc 1_66_0 -Release: 9%{?dist} +Release: 10%{?dist} License: Boost and MIT and Python %global toplev_dirname %{name}_%{version_enc} @@ -140,6 +140,9 @@ Patch83: boost-1.66.0-bjam-build-flags.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1545092 Patch84: boost-1.66.0-spirit-abs-overflow.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1585515 +Patch85: boost-1.66.0-compute.patch + %bcond_with tests %bcond_with docs_generated @@ -752,6 +755,7 @@ find ./boost -name '*.hpp' -perm /111 | xargs chmod a-x %patch82 -p1 %patch83 -p1 %patch84 -p1 +%patch85 -p2 %build # Dump the versions being used into the build logs. @@ -1470,6 +1474,9 @@ fi %{_mandir}/man1/bjam.1* %changelog +* Mon Jun 04 2018 Jonathan Wakely - 1.66.0-10 +- Add patch for Boost.Compute (#1585515) + * Tue May 01 2018 Jonathan Wakely - 1.66.0-9 - Fix Provides: and Obsoletes: tags for renamed python2 subpackages - Remove old Provides: and Obsoletes: tags for odeint packages