mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
22
dev-cpp/rapidfuzz-cpp/files/rapidfuzz-cpp-1.11.2-gcc13.patch
Normal file
22
dev-cpp/rapidfuzz-cpp/files/rapidfuzz-cpp-1.11.2-gcc13.patch
Normal 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;
|
||||
|
||||
@@ -24,6 +24,10 @@ BDEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.11.2-gcc13.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DRAPIDFUZZ_BUILD_TESTING=$(usex test)
|
||||
|
||||
Reference in New Issue
Block a user