The live version of the media-libs/libjxl doesn’t clone all the required git submodules, and then fails to build because of the non-existing source files: * Skipping submodule third_party/libjpeg-turbo […] CMake Error: File /tmp/portage/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/libjpeg-turbo/jconfig.h.in does not exist. (full log in `gentoo-build.log`) Adding the missing submodules fixes *that* issue (patch included below), but now causes the package to fail for another reason: <command-line>: error: ‘HWY_AVX3_ZEN4’ was not declared in this scope; did you mean ‘HWY_AVX3_DL’? (full log in `custom-build.log`) I don’t think this is an upstream issue—I was able to build the software manually, using the official guide: https://github.com/libjxl/libjxl/blob/main/BUILDING.md --------------------------------------------------------------------- $ emerge -pqv '=media-libs/libjxl-9999::gentoo' [ebuild U ] media-libs/libjxl-9999 [0.8.1] USE="gdk-pixbuf%* -openexr -test%" ABI_X86="(64) -32 (-x32)"
Created attachment 865611 [details] emerge --info emerge --info '=media-libs/libjxl-9999::gentoo'
Created attachment 865612 [details] gentoo-build.log
Created attachment 865613 [details, diff] add-submodules.patch
Created attachment 865614 [details] custom-build.log
Created attachment 865615 [details] environment
It is enough to add only following submodule: third_party/libjpeg-turbo You also need dev-cpp/highway-9999, highway-1.0.3-r1 is no longer suitable.
Thank you, your changes fix the issues. I hope they’ll be pulled soon.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8807b1689fbbc270452e08fc4b49e0ee775b250a commit 8807b1689fbbc270452e08fc4b49e0ee775b250a Author: Daniel Novomeský <dnovomesky@gmail.com> AuthorDate: 2023-07-20 17:05:57 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-08-11 07:55:40 +0000 media-libs/libjxl: fix live ebuild Closes: https://bugs.gentoo.org/910437 Signed-off-by: Daniel Novomeský <dnovomesky@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31971 Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-libs/libjxl/libjxl-9999.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)