digikam uses regex on the header file to figure out the version https://invent.kde.org/graphics/digikam/-/blob/128d9c9fc73015309128f0863d7768e9e5fd3e0c/core/cmake/modules/FindLibheif.cmake#L56 This breaks with libheif using MULTILIB_WRAPPED_HEADERS Snippet: CMake Error at core/cmake/modules/FindLibheif.cmake:57 (string): string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to command. Call Stack (most recent call first): core/CMakeLists.txt:56 (find_package) Reproducible: Always
All bugs need emerge --info as a comment and build.log as an attachment.
(In reply to Greg Kubaryk from comment #1) > All bugs need emerge --info as a comment and build.log as an attachment. There is enough info provided. media-libs/libheif-1.17.6 (and I assume live ebuild) are the only ones it happens with since they use MULTILIB_WRAPPED_HEADERS where 1.15.2-r1 doesn't. -- Found Libheif: /usr/include -- HEIF_FOUND = TRUE -- HEIF_INCLUDE_DIRS = /usr/include -- HEIF_LIBRARIES = /usr/lib64/libheif.so -- HEIF_DEFINITIONS = -- HEIF_VERSION = is probably useful too.
Upstream bug https://bugs.kde.org/show_bug.cgi?id=490690
(In reply to SigHunter from comment #3) > Upstream bug https://bugs.kde.org/show_bug.cgi?id=490690 This does appear to allow it to compile at least and the project doesn't appear to make use of the HEIF_VERSION variable, but the variable is still not being correctly parsed. I'm not sure how standard it is for cmake files to use regex on a header file to get version info, but I'm sure there is probably other examples. Now the question is, are there any other packages broken by this and MULTILIB_WRAPPED_HEADERS being used ...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85ded2c23ee2ff9282564dd602e5157c9b7e25fc commit 85ded2c23ee2ff9282564dd602e5157c9b7e25fc Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-07-23 15:30:44 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-07-23 16:11:02 +0000 media-gfx/digikam: Fix build w/ media-libs/libheif-1.17.6 Closes: https://bugs.gentoo.org/936507 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-gfx/digikam/digikam-8.4.0.ebuild | 1 + .../digikam-8.4.0-fix-find_libheif-regex.patch | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+)
*** Bug 936663 has been marked as a duplicate of this bug. ***