Add patch to fix build

[skip changelog]
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-01-24 10:46:38 +01:00
parent 2ecb5c159e
commit d01534ef9b
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From 8d1810d6cd7a5ac5ee944f39847a93a4635b6b15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
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 <cstdint> 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 <cstdint>.
---
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 <cstdint>
#include <vector>
#include <dolfin/log/log.h>
--
2.39.1

View File

@ -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.