diff --git a/0003-gcc-13-missing-includes.patch b/0003-gcc-13-missing-includes.patch new file mode 100644 index 0000000..818d6db --- /dev/null +++ b/0003-gcc-13-missing-includes.patch @@ -0,0 +1,26 @@ +diff -r -U4 lizardfs-3.12.0--orig/src/common/access_control_list.h lizardfs-3.12.0--patched/src/common/access_control_list.h +--- lizardfs-3.12.0--orig/src/common/access_control_list.h 2017-12-20 10:59:37.000000000 +0100 ++++ lizardfs-3.12.0--patched/src/common/access_control_list.h 2023-01-28 19:10:49.806668379 +0100 +@@ -19,8 +19,9 @@ + #pragma once + + #include "common/platform.h" + ++#include + #include + + #include "common/compact_vector.h" + #include "common/exception.h" +diff -r -U4 lizardfs-3.12.0--orig/src/common/io_limits_config_loader.h lizardfs-3.12.0--patched/src/common/io_limits_config_loader.h +--- lizardfs-3.12.0--orig/src/common/io_limits_config_loader.h 2017-12-20 10:59:37.000000000 +0100 ++++ lizardfs-3.12.0--patched/src/common/io_limits_config_loader.h 2023-01-28 19:11:35.314973825 +0100 +@@ -18,8 +18,9 @@ + + #pragma once + #include "common/platform.h" + ++#include + #include + #include + #include + diff --git a/lizardfs.spec b/lizardfs.spec index edf4ff0..c0bd4cf 100644 --- a/lizardfs.spec +++ b/lizardfs.spec @@ -3,7 +3,7 @@ Name: lizardfs Summary: Distributed, fault tolerant file system Version: 3.12.0 -Release: 21%{?dist} +Release: 22%{?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,27 +11,36 @@ URL: http://www.lizardfs.org/ Source: https://github.com/lizardfs/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz 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 + # Use python 3 rather than python 2 for cgi server Patch2: lizardfs-3.12-cgi-py3.patch + +# Fix building with GCC13 +Patch3: 0003-gcc-13-missing-includes.patch + +BuildRequires: asciidoc +BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: fuse-devel -BuildRequires: cmake +BuildRequires: make BuildRequires: pkgconfig -BuildRequires: zlib-devel -BuildRequires: asciidoc -BuildRequires: Judy-devel -BuildRequires: systemd-devel -BuildRequires: libdb-devel -BuildRequires: boost-devel -BuildRequires: pam-devel BuildRequires: systemd -BuildRequires: make + +BuildRequires: boost-devel +BuildRequires: fuse-devel +BuildRequires: Judy-devel +BuildRequires: libdb-devel +BuildRequires: pam-devel +BuildRequires: systemd-devel +BuildRequires: zlib-devel + # libcrcutil is basically a copylib with a dead upstream # https://code.google.com/archive/p/crcutil/ Provides: bundled(libcrcutil) = 1.0 @@ -400,6 +409,9 @@ install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/limits.d/95-lizardf %changelog +* Thu Feb 09 2023 Artur Frenszek-Iwicki - 3.12.0-22 +- Add a patch to fix build failures with GCC13 + * Thu Jan 19 2023 Fedora Release Engineering - 3.12.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild