diff --git a/0001-Add-missing-header.patch b/0001-Add-missing-header.patch new file mode 100644 index 0000000..fe41891 --- /dev/null +++ b/0001-Add-missing-header.patch @@ -0,0 +1,25 @@ +From b3dbe01831b4c5594c5c9144ef3b4f26dad6f22b Mon Sep 17 00:00:00 2001 +From: Jonathan Dieter +Date: Thu, 15 Mar 2018 14:26:03 +0200 +Subject: [PATCH] Add missing header + +Signed-off-by: Jonathan Dieter +--- + src/chunkserver/iostat.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/chunkserver/iostat.h b/src/chunkserver/iostat.h +index e1a50e97..85fcccd3 100644 +--- a/src/chunkserver/iostat.h ++++ b/src/chunkserver/iostat.h +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + #include + #include +-- +2.14.3 + diff --git a/lizardfs.spec b/lizardfs.spec index e66b923..57ce9b4 100644 --- a/lizardfs.spec +++ b/lizardfs.spec @@ -1,7 +1,7 @@ Name: lizardfs Summary: Distributed, fault tolerant file system Version: 3.12.0 -Release: 6%{?dist} +Release: 7%{?dist} # LizardFS is under GPLv3 while crcutil is under ASL 2.0 and there's one header, # src/common/coroutine.h, under the Boost license License: GPLv3 and ASL 2.0 and Boost @@ -11,6 +11,9 @@ Source1: pam-lizardfs Source2: 95-lizardfs.conf # Use spdlog system library if available Patch0: 0001-Put-customized-spdlog-in-source-so-we-don-t-download.patch +# Fix for building with GCC 8 +# See https://github.com/lizardfs/lizardfs/pull/677 +Patch1: 0001-Add-missing-header.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: fuse-devel @@ -403,6 +406,9 @@ install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/limits.d/95-lizardf %changelog +* Thu Mar 15 2018 Jonathan Dieter - 3.12.0-7 +- Fix building for GCC 8 + * Wed Mar 07 2018 Jonathan Dieter - 3.12.0-6 - Add BuildRequires: gcc and BuildRequires: gcc-c++