Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950316 - dev-cpp/clucene-2.3.3.4-r9: non-existent include path in libclucene-core.pc
Summary: dev-cpp/clucene-2.3.3.4-r9: non-existent include path in libclucene-core.pc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal minor
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-02-26 18:29 UTC by Jaak Ristioja
Modified: 2025-03-07 02:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2025-02-26 18:29:16 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2025-03-07 02:38:52 UTC
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(+)