diff options
author | Sam James <sam@gentoo.org> | 2023-04-18 07:36:02 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-18 07:50:47 +0100 |
commit | 945021e9f79c8a7d1c443f2c472c883db3b877f0 (patch) | |
tree | c2e893752b8d6df5e69aab8af7a278bd1c0363b2 /dev-cpp/rapidfuzz-cpp | |
parent | dev-ruby/mechanize: add 2.9.1 (diff) | |
download | gentoo-945021e9f79c8a7d1c443f2c472c883db3b877f0.tar.gz gentoo-945021e9f79c8a7d1c443f2c472c883db3b877f0.tar.bz2 gentoo-945021e9f79c8a7d1c443f2c472c883db3b877f0.zip |
dev-cpp/rapidfuzz-cpp: fix build w/ gcc 13
Closes: https://bugs.gentoo.org/895696
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/rapidfuzz-cpp')
-rw-r--r-- | dev-cpp/rapidfuzz-cpp/files/rapidfuzz-cpp-1.11.2-gcc13.patch | 22 | ||||
-rw-r--r-- | dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.11.2.ebuild | 4 |
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-cpp/rapidfuzz-cpp/files/rapidfuzz-cpp-1.11.2-gcc13.patch b/dev-cpp/rapidfuzz-cpp/files/rapidfuzz-cpp-1.11.2-gcc13.patch new file mode 100644 index 000000000000..c3e8117d22e3 --- /dev/null +++ b/dev-cpp/rapidfuzz-cpp/files/rapidfuzz-cpp-1.11.2-gcc13.patch @@ -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; + diff --git a/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.11.2.ebuild b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.11.2.ebuild index 315024591a2e..adba46f925b6 100644 --- a/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.11.2.ebuild +++ b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.11.2.ebuild @@ -24,6 +24,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${PN}-1.11.2-gcc13.patch +) + src_configure() { local mycmakeargs=( -DRAPIDFUZZ_BUILD_TESTING=$(usex test) |