The pkg-config file libclucene-core.pc installed by dev-cpp/clucene-2.3.3.4-r9 includes the non-existent path -I${prefix}/include/CLucene/ext The absence of this directory causes problems for projects using CMake. For example: $ cat CMakeLists.txt cmake_minimum_required(VERSION 3.12) project(test C) find_package(PkgConfig REQUIRED) pkg_search_module(CLucene REQUIRED IMPORTED_TARGET libclucene-core>=2.3.3.4) message(STATUS "Found CLucene: ${CLucene_VERSION}") file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test.c" "int main() {}") add_executable(test "${CMAKE_CURRENT_BINARY_DIR}/test.c") target_link_libraries(test PRIVATE PkgConfig::CLucene) $ cmake . -- The C compiler identification is GNU 14.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0") -- Checking for one of the modules 'libclucene-core>=2.3.3.4' -- Found CLucene: 2.3.3.4 -- Configuring done (0.2s) CMake Error in CMakeLists.txt: Imported target "PkgConfig::CLucene" includes non-existent path "/usr/include/CLucene/ext" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide. -- Generating done (0.0s) CMake Generate step failed. Build files cannot be regenerated correctly. $ This might be related to the src/ext removal logic in the ebuild. I suggest the non-existent path to be removed from libclucene-core.pc.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cad74f9d9c05da27156aee3a733eb74fd8cfbe2d commit cad74f9d9c05da27156aee3a733eb74fd8cfbe2d Author: Jaak Ristioja <jaak@ristioja.ee> AuthorDate: 2025-03-05 18:59:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-07 02:38:24 +0000 dev-cpp/clucene: Remove non-existent paths from libclucene-core.pc Closes: https://bugs.gentoo.org/950316 Signed-off-by: Jaak Ristioja <jaak@ristioja.ee> Closes: https://github.com/gentoo/gentoo/pull/40919 Signed-off-by: Sam James <sam@gentoo.org> dev-cpp/clucene/clucene-2.3.3.4-r10.ebuild | 64 ++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c186906831e9266cc12a017bdd461b68b2ec02 commit b6c186906831e9266cc12a017bdd461b68b2ec02 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-03-07 02:37:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-07 02:38:24 +0000 dev-cpp/clucene: explain .pc sed Bug: https://bugs.gentoo.org/950316 Signed-off-by: Sam James <sam@gentoo.org> dev-cpp/clucene/clucene-2.3.3.4-r10.ebuild | 1 + 1 file changed, 1 insertion(+)