Control: tags -1 + patch

I believe the following patch will solve the issue.  As far as I can
tell, gcc 14 is a bit more picky and these include lines will solve it.

diff --git a/debian/patches/ftbfs-gcc-14.patch 
b/debian/patches/ftbfs-gcc-14.patch
new file mode 100644
index 0000000..877b161
--- /dev/null
+++ b/debian/patches/ftbfs-gcc-14.patch
@@ -0,0 +1,78 @@
+Description: Added required 'include <iomanip>' where needed.
+ This ensure the code build with GCC 14, which is a bit more picky
+ about the correct include statements.
+Author: Petter Reinholdtsen
+Bug-Debian: https://bugs.debian.org/1077426
+Forwarded: no
+Last-Update: 2024-07-31
+---
+--- fp16-0.0~git20200514.4dfe081.orig/test/alt-from-fp32-value.cc
++++ fp16-0.0~git20200514.4dfe081/test/alt-from-fp32-value.cc
+@@ -1,6 +1,7 @@
+ #include <gtest/gtest.h>
+ 
+ #include <cstdint>
++#include <iomanip>
+ 
+ #include <fp16.h>
+ #include <tables.h>
+--- fp16-0.0~git20200514.4dfe081.orig/test/alt-to-fp32-bits.cc
++++ fp16-0.0~git20200514.4dfe081/test/alt-to-fp32-bits.cc
+@@ -1,6 +1,7 @@
+ #include <gtest/gtest.h>
+ 
+ #include <cstdint>
++#include <iomanip>
+ 
+ #include <fp16.h>
+ #include <tables.h>
+--- fp16-0.0~git20200514.4dfe081.orig/test/alt-to-fp32-value.cc
++++ fp16-0.0~git20200514.4dfe081/test/alt-to-fp32-value.cc
+@@ -2,6 +2,7 @@
+ 
+ #include <cstdint>
+ #include <cmath>
++#include <iomanip>
+ 
+ #include <fp16.h>
+ #include <tables.h>
+--- fp16-0.0~git20200514.4dfe081.orig/test/bitcasts.cc
++++ fp16-0.0~git20200514.4dfe081/test/bitcasts.cc
+@@ -1,6 +1,7 @@
+ #include <gtest/gtest.h>
+ 
+ #include <cstdint>
++#include <iomanip>
+ 
+ #include <fp16.h>
+ 
+--- fp16-0.0~git20200514.4dfe081.orig/test/ieee-from-fp32-value.cc
++++ fp16-0.0~git20200514.4dfe081/test/ieee-from-fp32-value.cc
+@@ -1,6 +1,7 @@
+ #include <gtest/gtest.h>
+ 
+ #include <cstdint>
++#include <iomanip>
+ 
+ #include <fp16.h>
+ #include <tables.h>
+--- fp16-0.0~git20200514.4dfe081.orig/test/ieee-to-fp32-bits.cc
++++ fp16-0.0~git20200514.4dfe081/test/ieee-to-fp32-bits.cc
+@@ -1,6 +1,7 @@
+ #include <gtest/gtest.h>
+ 
+ #include <cstdint>
++#include <iomanip>
+ 
+ #include <fp16.h>
+ #include <tables.h>
+--- fp16-0.0~git20200514.4dfe081.orig/test/ieee-to-fp32-value.cc
++++ fp16-0.0~git20200514.4dfe081/test/ieee-to-fp32-value.cc
+@@ -1,6 +1,7 @@
+ #include <gtest/gtest.h>
+ 
+ #include <cstdint>
++#include <iomanip>
+ #include <cmath>
+ 
+ #include <fp16.h>
diff --git a/debian/patches/series b/debian/patches/series
index 93e0f0d..a9f457b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 nodownload
 ftbfs-i386.patch
+ftbfs-gcc-14.patch

I have applied it to the git repo on salsa.  A better alternative might
be to upgrade to the latest edition from upstream.  No idea if it solve
the problem.

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to