Control: tags 1042038 + patch
Control: tags 1042038 + pending

Dear maintainer,

I've prepared an NMU for mfem (versioned as 4.5.2+ds-1.1) and
uploaded it.


Regards.
From: Gianfranco Costamagna <locutusofb...@debian.org>
To:   1042...@bugs.debian.org
Cc:
Bcc: 
Subject: mfem: diff for NMU version 4.5.2+ds-1.1
Date: Sat, 02 Sep 2023 14:12:16 +0200
X-NMUDIFF-Version: 2.22.1ubuntu1

Control: tags 1042038 + patch
Control: tags 1042038 + pending

[Replace XX with correct value]

Dear maintainer,

I've prepared an NMU for mfem (versioned as 4.5.2+ds-1.1) and
uploaded it to DELAYED/XX. Please feel free to tell me if I
should delay it longer.

Regards.

diff -Nru mfem-4.5.2+ds/debian/changelog mfem-4.5.2+ds/debian/changelog
--- mfem-4.5.2+ds/debian/changelog	2023-03-28 10:25:56.000000000 +0200
+++ mfem-4.5.2+ds/debian/changelog	2023-09-02 14:09:24.000000000 +0200
@@ -1,3 +1,13 @@
+mfem (4.5.2+ds-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ Amin Bandali <band...@ubuntu.com> ]
+  * Add upstream patch to fix FTBFS with gcc-13 (Closes: #1042038)
+    - debian/patches/fix-ftbfs-gcc-13.patch
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org>  Sat, 02 Sep 2023 14:09:24 +0200
+
 mfem (4.5.2+ds-1) unstable; urgency=medium
 
   * Initial release. (Closes: #1023223)
diff -Nru mfem-4.5.2+ds/debian/patches/fix-ftbfs-gcc-13.patch mfem-4.5.2+ds/debian/patches/fix-ftbfs-gcc-13.patch
--- mfem-4.5.2+ds/debian/patches/fix-ftbfs-gcc-13.patch	1970-01-01 01:00:00.000000000 +0100
+++ mfem-4.5.2+ds/debian/patches/fix-ftbfs-gcc-13.patch	2023-09-02 14:09:24.000000000 +0200
@@ -0,0 +1,53 @@
+From 314a32af2ee80af8c9af7d8ad71babd51851154c Mon Sep 17 00:00:00 2001
+From: David Dement <ddeme...@gmail.com>
+Origin: https://github.com/mfem/mfem/commit/314a32af2ee80af8c9af7d8ad71babd51851154c
+Date: Thu, 27 Apr 2023 10:33:51 -0400
+Subject: [PATCH] Fixes comilation errors when compiling with gcc-13 on Fedora
+ 38
+
+When compiling with gcc-13, types such as uint64_t are not defined.
+It is likely that <cstdint> is included implicitly with older compiler
+versions.
+---
+ general/hash.hpp        | 1 +
+ general/mem_manager.cpp | 1 +
+ mesh/vtk.hpp            | 2 ++
+ 3 files changed, 4 insertions(+)
+
+diff --git a/general/hash.hpp b/general/hash.hpp
+index 86d987d8029..288d51288df 100644
+--- a/general/hash.hpp
++++ b/general/hash.hpp
+@@ -16,6 +16,7 @@
+ #include "array.hpp"
+ #include "globals.hpp"
+ #include <type_traits>
++#include <cstdint>
+ 
+ namespace mfem
+ {
+diff --git a/general/mem_manager.cpp b/general/mem_manager.cpp
+index 416a6ac6203..37b80c878ad 100644
+--- a/general/mem_manager.cpp
++++ b/general/mem_manager.cpp
+@@ -16,6 +16,7 @@
+ #include <cstring> // std::memcpy, std::memcmp
+ #include <unordered_map>
+ #include <algorithm> // std::max
++#include <cstdint>
+ 
+ // Uncomment to try _WIN32 platform
+ //#define _WIN32
+diff --git a/mesh/vtk.hpp b/mesh/vtk.hpp
+index a59bed27592..50eeea5bc78 100644
+--- a/mesh/vtk.hpp
++++ b/mesh/vtk.hpp
+@@ -12,6 +12,8 @@
+ #ifndef MFEM_VTK
+ #define MFEM_VTK
+ 
++#include <cstdint>
++
+ #include "../fem/geom.hpp"
+ #include "../general/binaryio.hpp"
+ 
diff -Nru mfem-4.5.2+ds/debian/patches/series mfem-4.5.2+ds/debian/patches/series
--- mfem-4.5.2+ds/debian/patches/series	2023-03-01 14:14:12.000000000 +0100
+++ mfem-4.5.2+ds/debian/patches/series	2023-09-02 14:09:24.000000000 +0200
@@ -1,2 +1,3 @@
 static-no-shared-yes
 not-makefile
+fix-ftbfs-gcc-13.patch

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to