diff --git a/leatherman-gcc11.patch b/leatherman-gcc11.patch new file mode 100644 index 0000000..4ef6eee --- /dev/null +++ b/leatherman-gcc11.patch @@ -0,0 +1,38 @@ +diff --git a/curl/src/client.cc b/curl/src/client.cc +index 558db6d..d27bb36 100644 +--- a/curl/src/client.cc ++++ b/curl/src/client.cc +@@ -1,3 +1,4 @@ ++#include + #include + #include + #include +diff --git a/util/src/posix/scoped_descriptor.cc b/util/src/posix/scoped_descriptor.cc +index 6fd1495..8294d0b 100644 +--- a/util/src/posix/scoped_descriptor.cc ++++ b/util/src/posix/scoped_descriptor.cc +@@ -1,3 +1,5 @@ ++#include ++ + #include + + using namespace std; +diff --git a/util/src/scope_exit.cc b/util/src/scope_exit.cc +index 764c2fb..441855a 100644 +--- a/util/src/scope_exit.cc ++++ b/util/src/scope_exit.cc +@@ -1,3 +1,4 @@ ++#include + #include + + using namespace std; +diff --git a/util/src/scoped_env.cc b/util/src/scoped_env.cc +index 6c6a041..df26645 100644 +--- a/util/src/scoped_env.cc ++++ b/util/src/scoped_env.cc +@@ -1,3 +1,5 @@ ++#include ++ + #include + #include + diff --git a/leatherman.spec b/leatherman.spec index bf4dde4..d7fe1c6 100644 --- a/leatherman.spec +++ b/leatherman.spec @@ -1,6 +1,6 @@ Name: leatherman Version: 1.12.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Collection of C++ and CMake utility libraries # leatherman is ASL 2.0 @@ -14,6 +14,8 @@ Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch0: shared_nowide.patch # Add missing include for , no longer indirectly included in GCC 10 Patch1: leatherman-gcc10.patch +# Similar for cstddef and gcc-11 +Patch2: %{name}-gcc11.patch BuildRequires: cmake >= 3.2.2 BuildRequires: make @@ -72,6 +74,9 @@ sed -i -e "s/\s*-Werror\s*//g" cmake/cflags.cmake %{_libdir}/cmake/%{name}/ %changelog +* Wed Nov 04 2020 Jeff Law - 1.12.0-4 +- Fix missing #includes for gcc-11 + * Tue Jul 28 2020 Fedora Release Engineering - 1.12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild