summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-apps/kitinerary/files/kitinerary-22.12.0-gcc13.patch24
-rw-r--r--kde-apps/kitinerary/kitinerary-22.12.0.ebuild4
2 files changed, 28 insertions, 0 deletions
diff --git a/kde-apps/kitinerary/files/kitinerary-22.12.0-gcc13.patch b/kde-apps/kitinerary/files/kitinerary-22.12.0-gcc13.patch
new file mode 100644
index 000000000000..09c88c8b5250
--- /dev/null
+++ b/kde-apps/kitinerary/files/kitinerary-22.12.0-gcc13.patch
@@ -0,0 +1,24 @@
+https://invent.kde.org/pim/kitinerary/-/commit/0ef772c3e0ff8f049f299ad14b3c65327e4fe69e
+
+From: Sam James <sam@gentoo.org>
+Date: Sun, 11 Dec 2022 13:29:11 +0000
+Subject: [PATCH] asn1: Fix build with GCC 13 (add missing <cstdint> include)
+
+GCC 13 (as usual for new compiler releases) shuffles around some
+internal includes and so <cstdint> is no longer transitively included.
+
+Explicitly include <cstdint> for uint8_t.
+
+Bug: https://bugs.gentoo.org/885423
+--- a/src/lib/asn1/bitvectorview.h
++++ b/src/lib/asn1/bitvectorview.h
+@@ -8,6 +8,7 @@
+
+ #include <bitset>
+ #include <cassert>
++#include <cstdint>
+ #include <string_view>
+ #include <type_traits>
+
+--
+GitLab
diff --git a/kde-apps/kitinerary/kitinerary-22.12.0.ebuild b/kde-apps/kitinerary/kitinerary-22.12.0.ebuild
index 4a1fc4ec13ff..a3c4d410f6f1 100644
--- a/kde-apps/kitinerary/kitinerary-22.12.0.ebuild
+++ b/kde-apps/kitinerary/kitinerary-22.12.0.ebuild
@@ -38,6 +38,10 @@ DEPEND="
RDEPEND="${DEPEND}"
BDEPEND="x11-misc/shared-mime-info"
+PATCHES=(
+ "${FILESDIR}"/${PN}-22.12.0-gcc13.patch
+)
+
src_configure() {
local mycmakeargs=(
# sci-geosciences/osmctools; TODO: useful at all?