From b5d310772d71f547146684673c7113f208a31b5f Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 24 Feb 2023 17:40:53 +0100 Subject: [PATCH] package/intel-gmmlib: needs threads threads are mandatory since version 19.1.1 and https://github.com/intel/gmmlib/commit/9e4aa143fb7e7e87332fcb7c9871040ff4a1a1da resulting in the following build failure since commit cd206d9b808a322a00294b4caad203a892ed4c92: CMake Error at /home/thomas/autobuild/instance-2/output-1/host/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Threads (missing: Threads_FOUND) Fixes: - http://autobuild.buildroot.org/results/c1120932e8c212820b239ee8cd4a057623a73376 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/intel-gmmlib/Config.in | 6 ++++-- package/intel-mediadriver/Config.in | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package/intel-gmmlib/Config.in b/package/intel-gmmlib/Config.in index b6f93f7416..a3d0d2610b 100644 --- a/package/intel-gmmlib/Config.in +++ b/package/intel-gmmlib/Config.in @@ -3,6 +3,7 @@ config BR2_PACKAGE_INTEL_GMMLIB depends on BR2_x86_64 depends on !BR2_STATIC_LIBS depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS help The Intel(R) Graphics Memory Management Library provides device specific and buffer management for the Intel(R) @@ -11,5 +12,6 @@ config BR2_PACKAGE_INTEL_GMMLIB https://github.com/intel/gmmlib -comment "intel-gmmlib needs a toolchain w/ dynamic library, C++" - depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP +comment "intel-gmmlib needs a toolchain w/ dynamic library, C++, threads" + depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/intel-mediadriver/Config.in b/package/intel-mediadriver/Config.in index ad56590008..537e4abd2f 100644 --- a/package/intel-mediadriver/Config.in +++ b/package/intel-mediadriver/Config.in @@ -4,7 +4,7 @@ config BR2_PACKAGE_INTEL_MEDIADRIVER depends on !BR2_STATIC_LIBS # mesa3d, libva depends on BR2_INSTALL_LIBSTDCPP # intel-gmmlib, mesa3d depends on BR2_TOOLCHAIN_HAS_SYNC_1 # mesa3d - depends on BR2_TOOLCHAIN_HAS_THREADS # libva + depends on BR2_TOOLCHAIN_HAS_THREADS # intel-gmmlib, libva depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # mesa3d select BR2_PACKAGE_INTEL_GMMLIB select BR2_PACKAGE_LIBPCIACCESS