diff --git a/boost_168.patch b/boost_168.patch new file mode 100644 index 0000000..644a217 --- /dev/null +++ b/boost_168.patch @@ -0,0 +1,19 @@ +Index: thin-provisioning-tools-0.7.6/thin-provisioning/thin_show_duplicates.cc +=================================================================== +--- thin-provisioning-tools-0.7.6.orig/thin-provisioning/thin_show_duplicates.cc ++++ thin-provisioning-tools-0.7.6/thin-provisioning/thin_show_duplicates.cc +@@ -40,7 +40,14 @@ + #include "thin-provisioning/superblock.h" + #include "thin-provisioning/variable_chunk_stream.h" + ++#include ++ ++#if BOOST_VERSION >= 106800 ++#include ++#else + #include ++#endif ++ + #include + #include + #include diff --git a/thin-provisioning-tools.changes b/thin-provisioning-tools.changes index 8079c5b..4ea9fc0 100644 --- a/thin-provisioning-tools.changes +++ b/thin-provisioning-tools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 17 11:20:11 UTC 2018 - adam.majer@suse.de + +- boost_168.patch: fix build with Boost 1.68. This version of Boost + removes compatibility SHA1 header from Uuid library. (bsc#1105088) + ------------------------------------------------------------------- Thu May 31 13:57:20 UTC 2018 - mpluskal@suse.com diff --git a/thin-provisioning-tools.spec b/thin-provisioning-tools.spec index fb8f45c..8ab4587 100644 --- a/thin-provisioning-tools.spec +++ b/thin-provisioning-tools.spec @@ -24,6 +24,7 @@ License: GPL-3.0-only Group: System/Base URL: https://github.com/jthornber/thin-provisioning-tools/ Source0: https://github.com/jthornber/thin-provisioning-tools/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch1: boost_168.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ @@ -41,7 +42,7 @@ Conflicts: device-mapper < 1.02.115 A suite of tools for thin provisioning on Linux. %prep -%autosetup +%autosetup -p1 %build autoreconf -fiv