commit:     1081e019e0dd2d41ad2d9832e7a7e0209865cbca
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 07:10:36 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 07:14:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1081e019

dev-util/heaptrack: fix build w/ gcc 13

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../heaptrack/files/heaptrack-1.4.0-gcc-13.patch   | 22 ++++++++++++++++++++++
 dev-util/heaptrack/heaptrack-1.4.0.ebuild          |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/dev-util/heaptrack/files/heaptrack-1.4.0-gcc-13.patch 
b/dev-util/heaptrack/files/heaptrack-1.4.0-gcc-13.patch
new file mode 100644
index 000000000000..706d479f5275
--- /dev/null
+++ b/dev-util/heaptrack/files/heaptrack-1.4.0-gcc-13.patch
@@ -0,0 +1,22 @@
+https://invent.kde.org/sdk/heaptrack/-/commit/315aa7116d588f92b67c4bb84e1549529cb2fca0
+
+From 315aa7116d588f92b67c4bb84e1549529cb2fca0 Mon Sep 17 00:00:00 2001
+From: Heiko Becker <[email protected]>
+Date: Mon, 23 Jan 2023 23:44:09 +0100
+Subject: [PATCH] Fix build with gcc 13 by including <cstdint>
+
+Like other versions before, gcc 13 moved some includes around and as a
+result <cstdint> is no longer transitively included [1]. Explicitly include
+it for uint{32,64}_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+--- a/src/util/linereader.h
++++ b/src/util/linereader.h
+@@ -7,6 +7,7 @@
+ #ifndef LINEREADER_H
+ #define LINEREADER_H
+ 
++#include <cstdint>
+ #include <istream>
+ #include <string>
+ 

diff --git a/dev-util/heaptrack/heaptrack-1.4.0.ebuild 
b/dev-util/heaptrack/heaptrack-1.4.0.ebuild
index 29eec26eb107..01e625807144 100644
--- a/dev-util/heaptrack/heaptrack-1.4.0.ebuild
+++ b/dev-util/heaptrack/heaptrack-1.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -46,6 +46,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${P}-boost-1.81.patch # bug #887033, in master
+       "${FILESDIR}"/${P}-gcc-13.patch # in master
 )
 
 src_prepare() {

Reply via email to