dev-util/heaptrack: fix build w/ boost 1.81

Closes: https://bugs.gentoo.org/887033
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-12-22 02:28:36 +00:00
parent 97dcce9058
commit ac7a50dc4f
2 changed files with 27 additions and 0 deletions
@@ -0,0 +1,23 @@
https://bugs.gentoo.org/887033
https://invent.kde.org/sdk/heaptrack/-/commit/de3174aa1d1293636079473ff693d9a274a093a9
From de3174aa1d1293636079473ff693d9a274a093a9 Mon Sep 17 00:00:00 2001
From: Heiko Becker <heiko.becker@kde.org>
Date: Fri, 16 Dec 2022 00:01:15 +0100
Subject: [PATCH] Add missing include
This fixes the build with boost 1.81.0. <array> was included by one of
the boost headers, however, it's no longer included as of Boost 1.81.0.
--- a/src/analyze/gui/histogrammodel.h
+++ b/src/analyze/gui/histogrammodel.h
@@ -9,6 +9,8 @@
#include <QAbstractTableModel>
+#include <array>
+
#include "treemodel.h"
struct HistogramColumn
--
GitLab
@@ -44,6 +44,10 @@ BDEPEND="
gui? ( kde-frameworks/extra-cmake-modules:5 )
"
PATCHES=(
"${FILESDIR}"/${P}-boost-1.81.patch # bug #887033, in master
)
src_prepare() {
cmake_src_prepare
rm -rf 3rdparty/boost-zstd || die # ensure no bundling