Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910437 - =media-libs/libjxl-9999 fails to build (doesn’t clone all the required git submodules)
Summary: =media-libs/libjxl-9999 fails to build (doesn’t clone all the required git su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Novomeský
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-07-16 19:38 UTC by Althorion
Modified: 2023-08-11 07:55 UTC (History)
1 user (show)

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


Attachments
emerge --info (file_910437.txt,21.33 KB, text/plain)
2023-07-16 19:40 UTC, Althorion
Details
gentoo-build.log (file_910437.txt,13.99 KB, text/plain)
2023-07-16 19:41 UTC, Althorion
Details
add-submodules.patch (file_910437.txt,655 bytes, patch)
2023-07-16 19:43 UTC, Althorion
Details | Diff
custom-build.log (file_910437.txt,110.32 KB, text/plain)
2023-07-16 19:45 UTC, Althorion
Details
environment (file_910437.txt,133.44 KB, text/plain)
2023-07-16 19:45 UTC, Althorion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Althorion 2023-07-16 19:38:54 UTC
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)"
Comment 1 Althorion 2023-07-16 19:40:15 UTC
Created attachment 865611 [details]
emerge --info

emerge --info '=media-libs/libjxl-9999::gentoo'
Comment 2 Althorion 2023-07-16 19:41:49 UTC
Created attachment 865612 [details]
gentoo-build.log
Comment 3 Althorion 2023-07-16 19:43:21 UTC
Created attachment 865613 [details, diff]
add-submodules.patch
Comment 4 Althorion 2023-07-16 19:45:24 UTC
Created attachment 865614 [details]
custom-build.log
Comment 5 Althorion 2023-07-16 19:45:57 UTC
Created attachment 865615 [details]
environment
Comment 6 Daniel Novomeský 2023-07-20 16:37:52 UTC
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.
Comment 7 Althorion 2023-07-21 12:41:52 UTC
Thank you, your changes fix the issues. I hope they’ll be pulled soon.
Comment 8 Larry the Git Cow gentoo-dev 2023-08-11 07:55:43 UTC
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(-)