commit: b2b4f78085c59b7ed3d6879d70ad7950bde5c036 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Sun Mar 8 06:19:35 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Mar 11 13:43:37 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2b4f780
dev-cpp/clucene: fix cross-compiling w/ compile-only tests Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://codeberg.org/gentoo/gentoo/pulls/249 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild b/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild index a8ab0d6b1534..6881bb06b5b9 100644 --- a/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild +++ b/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 MY_PN="${PN}"-core MY_P="${MY_PN}"-"${PV}" -inherit cmake +inherit cmake toolchain-funcs DESCRIPTION="High-performance, full-featured text search engine based off of lucene in C++" HOMEPAGE="https://clucene.sourceforge.net" @@ -46,6 +46,14 @@ src_prepare() { -e 's%\(:\| -I\)${prefix}/include/CLucene/ext%%g' \ ./src/core/libclucene-core.pc.cmake || die rm -rf src/ext || die + + # do compile-only tests while cross-compiling + # the EXITCODE for each test can be overrided otherwise + if tc-is-cross-compiler; then + sed -i \ + -e '/CHECK_CXX_SOURCE_/s/_RUNS/_COMPILES/' \ + src/shared/cmake/*.cmake || die + fi } src_configure() {
