diff --git a/0001-Add-missing-include-for-compatiblity-with-gcc-13.patch b/0001-Add-missing-include-for-compatiblity-with-gcc-13.patch new file mode 100644 index 0000000..7d744be --- /dev/null +++ b/0001-Add-missing-include-for-compatiblity-with-gcc-13.patch @@ -0,0 +1,33 @@ +From 8d1810d6cd7a5ac5ee944f39847a93a4635b6b15 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= +Date: Tue, 24 Jan 2023 10:45:21 +0100 +Subject: [PATCH] Add missing include for compatiblity with gcc-13 + +Quoting Jakub Jelinek: +> See +> https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes +> Some libstdc++ headers included in older versions +> as an implementation detail but no longer do. + +> Including stdint.h will introduce ::uint32_t type among others, +> but not std::uint32_t, if you use the latter, you need to +> include . +--- + dolfin/mesh/MeshConnectivity.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dolfin/mesh/MeshConnectivity.h b/dolfin/mesh/MeshConnectivity.h +index b9ec2a6114..5d11d7ab3c 100644 +--- a/dolfin/mesh/MeshConnectivity.h ++++ b/dolfin/mesh/MeshConnectivity.h +@@ -21,6 +21,7 @@ + #ifndef __MESH_CONNECTIVITY_H + #define __MESH_CONNECTIVITY_H + ++#include + #include + #include + +-- +2.39.1 + diff --git a/dolfin.spec b/dolfin.spec index ff935c7..b175451 100644 --- a/dolfin.spec +++ b/dolfin.spec @@ -12,6 +12,7 @@ Source1: https://bitbucket.org/fenics-project/dolfin/downloads/dolfin-%{v Source2: 3083BE4C722232E28AD0828CBED06106DD22BAB3.gpg Patch: 0001-pkgconfig-drop-irrelevant-part-from-Libs-and-Cflags.patch +Patch: 0001-Add-missing-include-for-compatiblity-with-gcc-13.patch %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 %global blaslib flexiblas @@ -44,7 +45,7 @@ BuildRequires: python3dist(fenics-ufl) >= %{fenics_version} BuildRequires: python3dist(fenics-dijitso) >= %{fenics_version} # go cmake go BuildRequires: chrpath -BuildRequires: make +BuildRequires: make # check-buildroot flags the python .so, but it should be fine after rpath removal. # It seems that the original path to the library is stored in some comment.