Created attachment 874913 [details] build log -- Configuring done (6.9s) CMake Error at core/libs/metadataengine/CMakeLists.txt:106 (include_directories): Error evaluating generator expression: $<TARGET_PROPERTY:exiv2lib,INTERFACE_INCLUDE_DIRECTORIES> Target "exiv2lib" not found. CMake Error at core/libs/metadataengine/CMakeLists.txt:106 (include_directories): Error evaluating generator expression: $<TARGET_PROPERTY:exiv2lib,INTERFACE_INCLUDE_DIRECTORIES> Target "exiv2lib" not found. -- Generating done (2.3s) CMake Generate step failed. Build files cannot be regenerated correctly.
Just hit the same problem, and that was just a rebuild of digikam because of the opencv update. The cause seems to be upgrade from media-gfx/exiv2-0.28.0 to -0.28.1. Mon Oct 9 17:52:07 2023 >>> media-gfx/exiv2-0.28.0 Wed Oct 11 13:13:26 2023 >>> media-gfx/digikam-8.1.0-r1 Fri Nov 17 19:32:35 2023 >>> media-gfx/exiv2-0.28.1 Looking into the exiv2 github I find this commit: https://github.com/Exiv2/exiv2/commit/eb05551ed2d21079299f2f4da2f463df6857b884 That is part of the diff from 0.28.0 to 0.28.1: https://github.com/Exiv2/exiv2/compare/v0.28.0...v0.28.1 While this commit also adds an un-namespaced alias, it also changes the namespace: - NAMESPACE exiv2:: + NAMESPACE Exiv2:: ... is digikam looking for the old namespace? Or is this new alias not working?
The Alias does not seem to be exported when exiv2 is installed. Tries to fix this in the digikam repository: https://invent.kde.org/graphics/digikam/-/commit/f5ea91a7f6c1926815ec68f3e0176d6c15b83051 https://invent.kde.org/graphics/digikam/-/commit/dbf6b33f93b73b9f73e80eb4ed82bda43c83ad53 ... not sure, if all of this is needed for a minimal fix.
Created attachment 875163 [details, diff] Backport of upstream fix to recognize both Exiv2 CMake variants Torsten, thanks for finding the fix. I'll just leave this patch here. :)
Alternatively, there's this: https://github.com/Exiv2/exiv2/pull/2832
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66125082f84df7dfc165559b8f0c1dffaf41582f commit 66125082f84df7dfc165559b8f0c1dffaf41582f Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2023-11-21 20:13:25 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2023-11-21 22:19:56 +0000 media-gfx/exiv2: Restore exiv2lib target Closes: https://bugs.gentoo.org/917483 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-gfx/exiv2/exiv2-0.28.1-r1.ebuild | 132 ++++++++++++++++++++++ media-gfx/exiv2/files/exiv2-0.28.1-exiv2lib.patch | 31 +++++ 2 files changed, 163 insertions(+)