cmake/modules/FindFFMPEG.cmake:240 (find_package_handle_standard_args) cmake/scripts/common/Macros.cmake:403 (find_package) cmake/scripts/common/Macros.cmake:417 (find_package_with_ver) CMakeLists.txt:261 (core_require_dep) -- Configuring incomplete, errors occurred! * ERROR: media-tv/kodi-21.2-r2::gentoo failed (configure phase): * cmake failed ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop-20250313-145002 KEYWORDED/UNMASKED [gcc-15] Requested by sam <sys-devel/gcc-15.0.9999:15 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- GENTOO_VM=openjdk-bin-21 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.6_p7" JAVACFLAGS="-source 21 -target 21" COMPILER="" gcc-config -l: [1] x86_64-pc-linux-gnu-15 * clang version 20.1.0 llvm-config: 20.1.0 Python 3.12.9 go version go1.24.1 linux/amd64 Available Ruby profiles: [1] ruby32 (with Rubygems) [2] ruby34 (with Rubygems) * Available Rust versions: [1] rust-bin-1.85.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21] 3) Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-17 [3] openjdk-bin-21 system-vm HEAD of ::gentoo commit 6631bf3c5cd4284d7bfe5daf54135b04b21c7855 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Mar 16 23:33:54 2025 +0000 2025-03-16 23:33:54 UTC emerge -qpvO =media-tv/kodi-21.2-r2 [ebuild N ] media-tv/kodi-21.2-r2 USE="X alsa bluetooth cec css dbus eventclients gbm lcms lirc mariadb optical system-ffmpeg udev wayland xslt -airplay -bluray -caps -doc -gles -libusb -mysql -nfs -pipewire -pulseaudio -samba -soc -test -udf -upnp -vaapi -vdpau -webserver -zeroconf" CPU_FLAGS_X86="avx avx2 sse sse2 sse3 sse4_1 sse4_2" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"
Created attachment 920961 [details] emerge-info.txt
Created attachment 920962 [details] emerge-history.txt
Created attachment 920963 [details] environment
Created attachment 920964 [details] etc.clang.tar.xz
Created attachment 920965 [details] etc.portage.tar.xz
Created attachment 920966 [details] logs.tar.xz
Created attachment 920967 [details] media-tv:kodi-21.2-r2:20250317-025226.log
Created attachment 920968 [details] qlist-info.txt.xz
Created attachment 920969 [details] temp.tar.xz
Clearer with a few additional lines from the build log: CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message): FFmpeg undef not found, please consider using -DENABLE_INTERNAL_FFMPEG=ON (missing: FFMPEG_INCLUDE_DIRS) (found version "undef") Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindFFMPEG.cmake:240 (find_package_handle_standard_args) cmake/scripts/common/Macros.cmake:403 (find_package) cmake/scripts/common/Macros.cmake:417 (find_package_with_ver) CMakeLists.txt:261 (core_require_dep) I also get this with media-video/ffmpeg-compat-6.1.2 installed and no media-video/ffmpeg. Fixed for me by adding to mycmakeargs: -DFFMPEG_INCLUDE_DIRS=/usr/lib/ffmpeg6/include
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9af09ff7e09ef103b5f15e902396158569409b commit 7c9af09ff7e09ef103b5f15e902396158569409b Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2025-03-18 01:19:41 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2025-03-18 01:56:47 +0000 media-tv/kodi: fix ffmpeg-compat detection The right include dir was passed either way, but cmake use has its own logic (not using pkg-config) and fails to find it if non-compat ffmpeg is not also installed. Note it is possible there are other cmake-using packages broken in a similar way given they almost all do their own (different) custom thing. Ultimately they'd have needed to be tested with both installed and not installed to ensure they both do not use the wrong one if present, and detect the right one properly -- only did the former so far (might review a few). Thanks-to: Chris Mayo Closes: https://bugs.gentoo.org/951504 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> media-tv/kodi/kodi-21.2-r2.ebuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
>Note it is possible there are other cmake-using packages broken in a similar way Well, I retried every package that had to rely on "ffmpeg_compat_add_flags" to work (implying not using pkg-config or not properly), but seems the only other package with a "similar" issue was dvdstyler (fixed), so not too bad. Not to say may not have overlooked something.