Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829571 - media-gfx/digikam-7.3.0 w/o media-gfx/exiv2[xpm]: metaengine_fileio.cpp:581:31: error: ‘chgXmp’ was not declared in this scope
Summary: media-gfx/digikam-7.3.0 w/o media-gfx/exiv2[xpm]: metaengine_fileio.cpp:581:3...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-18 15:53 UTC by Luca Santarelli
Modified: 2022-01-18 16:01 UTC (History)
2 users (show)

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 Luca Santarelli 2021-12-18 15:53:12 UTC
On a system with global (non default) USE="-xpm", digikam 7.3.0 fails to build with the following error:

/var/tmp/portage/media-gfx/digikam-7.3.0/work/digikam-7.3.0/core/libs/metadataengine/engine/metaengine_fileio.cpp: In member function ‘bool Digikam::MetaEngine::exportChanges(const QString&, QStringList&) const’:
/var/tmp/portage/media-gfx/digikam-7.3.0/work/digikam-7.3.0/core/libs/metadataengine/engine/metaengine_fileio.cpp:581:31: error: ‘chgXmp’ was not declared in this scope
  581 |         targetExv->setXmpData(chgXmp);
      |                               ^~~~~~
ninja: build stopped: subcommand failed.

The issue was not present in digikam-7.2.x.
Rebuilding world after globally enabling USE=xpm rebuilds libexif and libkexiv2 and then successfully builds digikam.

Proposal: either force the explicit dependency on kde-apps/libkexiv2[xpm] for >=digikam-7.3.0 (easy) or find out if digikam can respect the -xpm USE flag and edit its configure/build script.

Reproducible: Always

Steps to Reproduce:
1. USE=-xpm
2. emerge --newuse digikam
3.
Actual Results:  
Failure to compile around the end of the build process.
Comment 1 Andreas Sturmlechner gentoo-dev 2021-12-18 17:29:07 UTC
kde-apps/libkexiv2 is no dependency, exiv2 is.
Comment 2 Larry the Git Cow gentoo-dev 2021-12-18 17:42:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=024c45ad4532e5a05ec7005e11c46875f79342ad

commit 024c45ad4532e5a05ec7005e11c46875f79342ad
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-12-18 17:29:27 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-12-18 17:38:52 +0000

    media-gfx/digikam: Add missing usedep, fix cmake (again)
    
    Closes: https://bugs.gentoo.org/829539
    Closes: https://bugs.gentoo.org/829571
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/digikam/digikam-7.3.0-r1.ebuild         | 149 ++++++++++++++++++++++
 media-gfx/digikam/digikam-7.4.0-r1.ebuild         | 147 +++++++++++++++++++++
 media-gfx/digikam/files/digikam-7.3.0-cmake.patch | 118 +++++++++++++++++
 3 files changed, 414 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2bd084126acdd45264666a85fd1eeaf9b595e86

commit f2bd084126acdd45264666a85fd1eeaf9b595e86
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-12-18 17:29:39 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-12-18 17:38:53 +0000

    profiles: targets/desktop: Set media-gfx/exiv2[xmp] by default
    
    Bug: https://bugs.gentoo.org/829571
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 profiles/targets/desktop/package.use | 4 ++++
 1 file changed, 4 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2022-01-18 16:01:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=ceb5a2bc9ed69eac89a4f54053cb38264bd093f3

commit ceb5a2bc9ed69eac89a4f54053cb38264bd093f3
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-12-18 17:29:27 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-01-18 16:00:54 +0000

    media-gfx/digikam: Add missing usedep, fix cmake (again)
    
    Closes: https://bugs.gentoo.org/829539
    Closes: https://bugs.gentoo.org/829571
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/digikam/digikam-9999.ebuild             |  13 +--
 media-gfx/digikam/files/digikam-7.3.0-cmake.patch | 118 ++++++++++++++++++++++
 2 files changed, 125 insertions(+), 6 deletions(-)