Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917483 - media-gfx/digikam-8.1.0-r1: Target "exiv2lib" not found.
Summary: media-gfx/digikam-8.1.0-r1: Target "exiv2lib" not found.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL: https://github.com/Exiv2/exiv2/pull/2832
Whiteboard:
Keywords:
Depends on:
Blocks: 917669
  Show dependency tree
 
Reported: 2023-11-17 09:28 UTC by Andrey Grozin
Modified: 2023-11-21 22:36 UTC (History)
13 users (show)

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


Attachments
build log (digikam-8.1.0-r1.log,20.34 KB, text/x-log)
2023-11-17 09:28 UTC, Andrey Grozin
Details
Backport of upstream fix to recognize both Exiv2 CMake variants (Multi-Exiv2.patch,4.42 KB, patch)
2023-11-19 02:27 UTC, Alexey Chernyak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2023-11-17 09:28:05 UTC
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.
Comment 1 Torsten Kaiser 2023-11-17 20:52:13 UTC
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?
Comment 2 Torsten Kaiser 2023-11-17 21:13:05 UTC
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.
Comment 3 Alexey Chernyak 2023-11-19 02:27:19 UTC
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. :)
Comment 4 Andreas Sturmlechner gentoo-dev 2023-11-21 20:04:46 UTC
Alternatively, there's this: https://github.com/Exiv2/exiv2/pull/2832
Comment 5 Larry the Git Cow gentoo-dev 2023-11-21 22:36:10 UTC
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(+)