diff --git a/dev-libs/intel-compute-runtime/files/25.40.9999-intel-compute-runtime-test.patch b/dev-libs/intel-compute-runtime/files/25.40.9999-intel-compute-runtime-test.patch new file mode 100644 index 0000000..eda1354 --- /dev/null +++ b/dev-libs/intel-compute-runtime/files/25.40.9999-intel-compute-runtime-test.patch @@ -0,0 +1,8 @@ +--- a/cmake/setup_ult_global_flags.cmake ++++ b/cmake/setup_ult_global_flags.cmake +@@ -15,1 +15,1 @@ +- string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_upper) ++ string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_upper) +@@ -18,1 +18,1 @@ +- string(REGEX REPLACE "-O[1-3]" "" CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper}}) ++ string(REGEX REPLACE "-O[1-3]" "" CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper} "${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_upper}}") diff --git a/dev-libs/intel-compute-runtime/intel-compute-runtime-25.40.9999.ebuild b/dev-libs/intel-compute-runtime/intel-compute-runtime-25.40.9999.ebuild index 3dbf0aa..ab1f8af 100644 --- a/dev-libs/intel-compute-runtime/intel-compute-runtime-25.40.9999.ebuild +++ b/dev-libs/intel-compute-runtime/intel-compute-runtime-25.40.9999.ebuild @@ -22,7 +22,7 @@ S="${WORKDIR}/${PN}-${PV}" LICENSE="MIT" SLOT="0/1.6" KEYWORDS="~amd64" -IUSE="disable-mitigations +l0 +vaapi test" +IUSE="disable-mitigations +l0 legacy lto +vaapi test" RDEPEND=" !dev-libs/intel-compute-runtime:legacy @@ -49,9 +49,9 @@ BDEPEND="virtual/pkgconfig" DOCS=( "README.md" "FAQ.md" ) -#PATCHES=( -# "${FILESDIR}/${PN}-test.patch" -#) +PATCHES=( + "${FILESDIR}/${PV}-${PN}-test.patch" +) src_prepare() { # Remove '-Werror' from default @@ -70,16 +70,16 @@ src_configure() { # Filtered for two reasons: # 1) https://github.com/intel/compute-runtime/issues/528 # 2) bug #930199 - filter-lto + #filter-lto local mycmakeargs=( - -DCCACHE_ALLOWED="OFF" + -DCCACHE_ALLOWED="ON" -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" -DCMAKE_INSTALL_LIBDIR="$(get_libdir)" -DBUILD_WITH_L0="$(usex l0)" -DDISABLE_LIBVA="$(usex !vaapi)" - -DNEO_ALLOW_LEGACY_PLATFORMS_SUPPORT="ON" - -DNEO_DISABLE_LTO="ON" + -DNEO_ALLOW_LEGACY_PLATFORMS_SUPPORT="$(usex legacy)" + -DNEO_DISABLE_LTO="$(usex !lto)" -DNEO_DISABLE_MITIGATIONS="$(usex disable-mitigations)" -DNEO_ENABLE_REFERENCE_TRACKING="OFF" -DNEO__METRICS_LIBRARY_INCLUDE_DIR="${ESYSROOT}/usr/include" @@ -99,3 +99,7 @@ src_configure() { cmake_src_configure } + +src_test() { + ewarn "The test must run AFTER the package is installed." +}