$ git show --format=fuller --patch-with-stat --summary e94e2a271ebdf26ecd233d67536c6f9eb0b29796
commit e94e2a271ebdf26ecd233d67536c6f9eb0b29796
Author: mandian <mandian@users.noreply.github.com>
AuthorDate: Thu Apr 27 20:50:20 2023 +0100
Commit: mandian <mandian@users.noreply.github.com>
CommitDate: Thu Apr 27 20:50:20 2023 +0100
add patches
---
...sing-include-for-compatiblity-with-gcc-13.patch | 33 ++++++++++++++++++++++
...drop-irrelevant-part-from-Libs-and-Cflags.patch | 32 +++++++++++++++++++++
2 files changed, 65 insertions(+)
create mode 100644 0001-Add-missing-include-for-compatiblity-with-gcc-13.patch
create mode 100644 0001-pkgconfig-drop-irrelevant-part-from-Libs-and-Cflags.patch
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?= <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
+
diff --git a/0001-pkgconfig-drop-irrelevant-part-from-Libs-and-Cflags.patch b/0001-pkgconfig-drop-irrelevant-part-from-Libs-and-Cflags.patch
new file mode 100644
index 0000000..de85433
--- /dev/null
+++ b/0001-pkgconfig-drop-irrelevant-part-from-Libs-and-Cflags.patch
@@ -0,0 +1,32 @@
+From 5e7dc695bdbf57b5115f20f5302c8770f05094c6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
+Date: Sun, 30 Jan 2022 09:39:40 +0100
+Subject: [PATCH] pkgconfig: drop irrelevant part from Libs and Cflags
+
+Link flags that were used for dolfin itself, for example -flto or
+other similar items are not useful here: those lines should just
+specify the flag that injects this library into those programs, and
+any special preprocessor flags, no more. In particular flags like -DHAS_HDF5
+will either be irrelevant for projects using the library or might even
+confuse their build systems. Those flags should stay "private" to dolfin.
+
+The immediate problem this was causing is
+https://bugzilla.redhat.com/show_bug.cgi?id=2043092#c36
+where a linker flag inserting a section with additional information about the
+build is "leaked" into projects using the dolfin library.
+---
+ cmake/templates/dolfin.pc.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/cmake/templates/dolfin.pc.in b/cmake/templates/dolfin.pc.in
+index 3faf2c35bb..945918723f 100644
+--- a/cmake/templates/dolfin.pc.in
++++ b/cmake/templates/dolfin.pc.in
+@@ -13,5 +13,5 @@ Description: Dynamic Object-oriented Library for FINite element computation
+ Version: @DOLFIN_VERSION@
+ Requires: @PKG_REQUIRES@
+ Conflicts:
+-Libs: @PKG_LINKFLAGS@ -L${libdir} -ldolfin
+-Cflags: @PKG_CXXFLAGS@ -DDOLFIN_VERSION=\"@DOLFIN_VERSION@\" ${definitions} -I${includedir} @PKG_INCLUDES@
++Libs: -L${libdir} -ldolfin
++Cflags: -DDOLFIN_VERSION=\"@DOLFIN_VERSION@\" -I${includedir}