dev-cpp/rapidfuzz-cpp: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/895696
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-04-18 07:36:02 +01:00
parent 005befa8e2
commit 945021e9f7
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
https://github.com/maxbachmann/rapidfuzz-cpp/pull/102
From f3c691bd8a0659ac3acb7510dab5a536f4d41e1b Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 18 Apr 2023 07:33:39 +0100
Subject: [PATCH] Fix build with GCC 13
GCC 13 (as usual for new compiler releases) shuffles around some internal includes so some
are no longer transitively included.
See https://gnu.org/software/gcc/gcc-13/porting_to.html.
Bug: https://bugs.gentoo.org/895696
--- a/test/distance/examples/ocr.hpp
+++ b/test/distance/examples/ocr.hpp
@@ -1,4 +1,5 @@
#pragma once
+#include <cstdint>
#include <string>
extern std::basic_string<uint8_t> ocr_example1;

View File

@@ -24,6 +24,10 @@ BDEPEND="
)
"
PATCHES=(
"${FILESDIR}"/${PN}-1.11.2-gcc13.patch
)
src_configure() {
local mycmakeargs=(
-DRAPIDFUZZ_BUILD_TESTING=$(usex test)