I am sponsoring a NMU with the upstream fix.
diff -Nru herbstluftwm-0.9.5/debian/changelog 
herbstluftwm-0.9.5/debian/changelog
--- herbstluftwm-0.9.5/debian/changelog 2022-10-17 13:31:46.000000000 +0200
+++ herbstluftwm-0.9.5/debian/changelog 2025-11-16 22:53:58.000000000 +0100
@@ -1,3 +1,10 @@
+herbstluftwm (0.9.5-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Import upstream patch to fix FTBFS with GCC-15 (Closes: #1096802)
+
+ -- Alexander Sulfrian <[email protected]>  Sun, 16 Nov 2025 22:53:58 
+0100
+
 herbstluftwm (0.9.5-3) unstable; urgency=medium
 
   * Disable tests, too unreliable
diff -Nru herbstluftwm-0.9.5/debian/patches/add-include-stdint.diff 
herbstluftwm-0.9.5/debian/patches/add-include-stdint.diff
--- herbstluftwm-0.9.5/debian/patches/add-include-stdint.diff   1970-01-01 
01:00:00.000000000 +0100
+++ herbstluftwm-0.9.5/debian/patches/add-include-stdint.diff   2025-11-16 
22:53:58.000000000 +0100
@@ -0,0 +1,24 @@
+Origin: upstream, 8ff75588a750704ae06ad59b843eb88138c95653
+From: Kostadin <[email protected]>
+Date: Fri, 14 Mar 2025 17:48:29 +0200
+Bug: https://github.com/herbstluftwm/herbstluftwm/issues/1612
+Subject: Add #include <stdint.h> to fix building with gcc 15 (#1613)
+
+With gcc 15, the C++ Standard Library no longer includes other headers that 
were internally used by the library. In herbstluftwm's case the missing header 
is `<stdint.h>`
+
+Downstream Gentoo bug: https://bugs.gentoo.org/937529
+
+Closes: #1612
+
+---
+
+--- herbstluftwm-0.9.5.orig/src/xconnection.cpp
++++ herbstluftwm-0.9.5/src/xconnection.cpp
+@@ -6,6 +6,7 @@
+ #include <X11/Xutil.h>
+ #include <X11/extensions/Xrender.h>
+ #include <fcntl.h>
++#include <stdint.h>
+ #include <unistd.h>
+ #include <climits>
+ #include <cstring>
diff -Nru herbstluftwm-0.9.5/debian/patches/series 
herbstluftwm-0.9.5/debian/patches/series
--- herbstluftwm-0.9.5/debian/patches/series    2022-10-17 13:31:46.000000000 
+0200
+++ herbstluftwm-0.9.5/debian/patches/series    2025-11-16 22:53:58.000000000 
+0100
@@ -1,2 +1,3 @@
 double-timeout.diff
 8678168c7a3307b1271e94974e062799e745ab40.diff
+add-include-stdint.diff

Reply via email to