Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922543 - media-video/ffmpeg some ebuilds have media-libs/libjxl slot operator missing
Summary: media-video/ffmpeg some ebuilds have media-libs/libjxl slot operator missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-20 15:08 UTC by jospezial
Modified: 2025-02-14 11:23 UTC (History)
3 users (show)

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


Attachments
libjxl-0.9.1 support for ffmpeg-6.0.1-r2 (ffmpeg6-jxl09.patch,2.45 KB, patch)
2024-02-04 00:54 UTC, Patrice Levesque
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2024-01-20 15:08:13 UTC
Please add the := to the ffmpeg ebuilds where that media-libs/libjxl slot operator is missing.
media-libs/libjxl-0.9.1 has now SLOT="0/$(ver_cut 1-2)"

!!! existing preserved libs:
>>> package: media-libs/libjxl-0.9.1
 *  - /usr/lib/libjxl.so.0.8
 *  - /usr/lib/libjxl.so.0.8.2
 *      used by /usr/lib/libavcodec.so.60.37.100 (media-video/ffmpeg-9999)
 *  - /usr/lib/libjxl_threads.so.0.8
 *  - /usr/lib/libjxl_threads.so.0.8.2
 *      used by /usr/lib/libavcodec.so.60.37.100 (media-video/ffmpeg-9999)
 *  - /usr/lib64/libjxl.so.0.8
 *  - /usr/lib64/libjxl.so.0.8.2
 *      used by /usr/lib64/gimp/2.99/plug-ins/gimp-org-file-jpegxl/gimp-org-file-jpegxl (media-gfx/gimp-9999)
 *      used by /usr/lib64/libavcodec.so.60.37.100 (media-video/ffmpeg-9999)
 *      used by /usr/lib64/qt5/plugins/imageformats/kimg_jxl.so (kde-frameworks/kimageformats-5.114.0)
 *  - /usr/lib64/libjxl_threads.so.0.8
 *  - /usr/lib64/libjxl_threads.so.0.8.2
 *      used by /usr/lib64/gimp/2.99/plug-ins/gimp-org-file-jpegxl/gimp-org-file-jpegxl (media-gfx/gimp-9999)
 *      used by /usr/lib64/libavcodec.so.60.37.100 (media-video/ffmpeg-9999)
 *      used by /usr/lib64/qt5/plugins/imageformats/kimg_jxl.so (kde-frameworks/kimageformats-5.114.0)
Comment 1 Patrice Levesque 2024-02-04 00:53:27 UTC
Meanwhile, here is a patch that adds =media-libs/libjxl-0.91 support to =media-video/ffmpeg-6.0.1-r2, inspired by https://patchwork.ffmpeg.org/project/ffmpeg/patch/fd749008-1aff-bb2a-3d7f-97928f96c148@reflexion.tv/

Quickly tested that decoding/encoding works with:

ffmpeg -i file1.jpg file1.jxl
ffmpeg -i file2.jxl file2.jpg
Comment 2 Patrice Levesque 2024-02-04 00:54:25 UTC
Created attachment 884159 [details, diff]
libjxl-0.9.1 support for ffmpeg-6.0.1-r2
Comment 3 jospezial 2025-02-14 11:23:32 UTC
https://github.com/gentoo/gentoo/commit/68fd9e3e43929acc14fc41a40dd91875b4dc516a
"media-video/ffmpeg: Add := dep on media-libs/libjxl to more versions"

grep -r media-libs/libjxl /var/db/repos/gentoo/media-video/ffmpeg/
/var/db/repos/gentoo/media-video/ffmpeg/ffmpeg-7.1.ebuild:      jpegxl? ( >=media-libs/libjxl-0.7.0:=[$MULTILIB_USEDEP] )
/var/db/repos/gentoo/media-video/ffmpeg/ffmpeg-7.0.2-r1.ebuild: jpegxl? ( >=media-libs/libjxl-0.7.0:=[$MULTILIB_USEDEP] )
/var/db/repos/gentoo/media-video/ffmpeg/ffmpeg-6.1.1-r8.ebuild: jpegxl? ( >=media-libs/libjxl-0.7.0:=[$MULTILIB_USEDEP] )
/var/db/repos/gentoo/media-video/ffmpeg/ffmpeg-9999.ebuild:     jpegxl? ( >=media-libs/libjxl-0.7.0:=[$MULTILIB_USEDEP] )
/var/db/repos/gentoo/media-video/ffmpeg/ffmpeg-6.1.2.ebuild:    jpegxl? ( >=media-libs/libjxl-0.7.0:=[$MULTILIB_USEDEP] )

Looks good now.