Overview

Request 1001444 accepted

- Add missing ksanecore requirement to devel package, remove
unneeded ones that were moved to ksanecore-devel

Loading...

Wolfgang Bauer's avatar
author source maintainer target maintainer

From /usr/lib(64)/cmake/KF5SaneConfig.cmake:
include(CMakeFindDependencyMacro)
find_dependency(Qt5Widgets "5.15.0")
find_dependency(KSaneCore "22.08.0")
include("${CMAKE_CURRENT_LIST_DIR}/KF5SaneTargets.cmake")

I noticed this in the digikam build log:
-- Could NOT find KF5Sane (found version "22.08.0"), checked the following files:
/usr/lib64/cmake/KF5Sane/KF5SaneConfig.cmake (version 22.08.0)
Reason given by package: KF5Sane could not be found because dependency KSaneCore could not be found.


Christophe Giboudeaux's avatar

That happens if ksanecore is a private link target. and it seems to be the case:

https://invent.kde.org/graphics/libksane/-/blob/master/src/CMakeLists.txt#L55

So either ksanecore is a public link target or find_dependency is not needed


Wolfgang Bauer's avatar
author source maintainer target maintainer

Sure, as it's a private link target, the find_dependency seems to be wrong (introduced in https://invent.kde.org/graphics/libksane/-/commit/70684f1b1dfa784ea47ef4b0d55c8d472a342a9a ) .
But currently it is there, so ksanecore-devel is required to build against libksane...


Wolfgang Bauer's avatar
author source maintainer target maintainer

PS: I added a comment to https://invent.kde.org/graphics/libksane/-/merge_requests/67, where this was mentioned already.

Request History
Wolfgang Bauer's avatar

wolfi323 created request

- Add missing ksanecore requirement to devel package, remove
unneeded ones that were moved to ksanecore-devel


Christophe Giboudeaux's avatar

cgiboudeaux accepted request

ok, I'd prefer a real fix but I have 22.08.1 to prepare

openSUSE Build Service is sponsored by