Source: apt
Version: 2.5.5
Severity: important
Tags: ftbfs patch
User: [email protected]
Usertags: rebootstrap

apt fails to build from source when built with gcc-13 due to one missing
include. It's the only problem. I'm attaching the obvious patch for your
convenience.

Helmut
diff --minimal -Nru apt-2.5.5/apt-pkg/contrib/mmap.cc 
apt-2.5.5+nmu1/apt-pkg/contrib/mmap.cc
--- apt-2.5.5/apt-pkg/contrib/mmap.cc   2023-01-17 16:33:38.000000000 +0100
+++ apt-2.5.5+nmu1/apt-pkg/contrib/mmap.cc      2023-02-05 09:06:54.000000000 
+0100
@@ -23,6 +23,7 @@
 #include <apt-pkg/macros.h>
 #include <apt-pkg/mmap.h>
 
+#include <cstdint>
 #include <cstring>
 #include <string>
 #include <errno.h>
diff --minimal -Nru apt-2.5.5/debian/changelog apt-2.5.5+nmu1/debian/changelog
--- apt-2.5.5/debian/changelog  2023-01-17 16:33:38.000000000 +0100
+++ apt-2.5.5+nmu1/debian/changelog     2023-02-05 09:06:54.000000000 +0100
@@ -1,3 +1,10 @@
+apt (2.5.5+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with gcc-13: Missing include <cstdint>. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 05 Feb 2023 09:06:54 +0100
+
 apt (2.5.5) unstable; urgency=medium
 
   [ David Kalnischkies ]

Reply via email to