* [gentoo-commits] repo/gentoo:master commit in: media-libs/libva-intel-media-driver/files/, media-libs/libva-intel-media-driver/
@ 2024-03-12 18:57 Matt Turner
0 siblings, 0 replies; 2+ messages in thread
From: Matt Turner @ 2024-03-12 18:57 UTC (permalink / raw
To: gentoo-commits
commit: b3e39753ba5a7be293189a72c2556934ba6cf82c
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 12 18:55:50 2024 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 18:57:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3e39753
media-libs/libva-intel-media-driver: Apply newer patches to live ebuild
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
...va-intel-media-driver-20.2.0_x11_optional.patch | 16 --------
...l-media-driver-20.4.5_testing_in_src_test.patch | 46 ----------------------
...edia-driver-21.4.2-Remove-unwanted-CFLAGS.patch | 43 --------------------
.../libva-intel-media-driver-9999.ebuild | 9 ++---
4 files changed, 4 insertions(+), 110 deletions(-)
diff --git a/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.2.0_x11_optional.patch b/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.2.0_x11_optional.patch
deleted file mode 100644
index 81c80d80f902..000000000000
--- a/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.2.0_x11_optional.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/media_driver/media_top_cmake.cmake
-+++ b/media_driver/media_top_cmake.cmake
-@@ -21,7 +21,12 @@
- project( media )
-
- find_package(PkgConfig)
-+if(NOT DEFINED USE_X11 OR USE_X11)
- find_package(X11)
-+endif(NOT DEFINED USE_X11 OR USE_X11)
-+if(USE_X11 AND NOT X11_FOUND)
-+ message(FATAL_ERROR "Usage of X11 is required by USE_X11 variable, but X11 package is not found")
-+endif(USE_X11 AND NOT X11_FOUND)
-
- bs_set_if_undefined(LIB_NAME iHD_drv_video)
-
-
diff --git a/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.4.5_testing_in_src_test.patch b/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.4.5_testing_in_src_test.patch
deleted file mode 100644
index 3c6d500f2fbf..000000000000
--- a/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-20.4.5_testing_in_src_test.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-Run tests in src_test() instead of src_compile() and src_install()
-
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -37,6 +37,8 @@ if("${os_name}" STREQUAL "clear-linux-os")
- set(CMAKE_INSTALL_SYSCONFDIR "usr/share/defaults/etc")
- endif()
-
-+include(CTest)
-+
- include(CMakeDependentOption)
-
- option (ENABLE_KERNELS "Build driver with shaders (kernels) support" ON)
---- a/media_driver/linux/ult/CMakeLists.txt
-+++ b/media_driver/linux/ult/CMakeLists.txt
-@@ -52,9 +52,3 @@ endif ()
- add_subdirectory(libdrm_mock)
- add_subdirectory(ult_app)
-
--enable_testing()
--add_test(NAME test_devult COMMAND devult ${UMD_PATH})
--set_tests_properties(test_devult
-- PROPERTIES PASS_REGULAR_EXPRESSION "PASS")
--set_tests_properties(test_devult
-- PROPERTIES FAIL_REGULAR_EXPRESSION "FAIL")
---- a/media_driver/linux/ult/ult_app/CMakeLists.txt
-+++ b/media_driver/linux/ult/ult_app/CMakeLists.txt
-@@ -68,13 +68,11 @@ if (DEFINED BYPASS_MEDIA_ULT AND "${BYPASS_MEDIA_ULT}" STREQUAL "yes")
- message("-- media -- BYPASS_MEDIA_ULT = ${BYPASS_MEDIA_ULT}")
- else ()
- if (ENABLE_NONFREE_KERNELS)
-- add_custom_target(RunULT ALL DEPENDS ${LIB_NAME} devult)
-
-- add_custom_command(
-- TARGET RunULT
-- POST_BUILD
-- COMMAND LD_PRELOAD=../libdrm_mock/libdrm_mock.so ./devult ../../../${LIB_NAME}.so
-+ add_test(
-+ NAME RunULT
-+ COMMAND "${CMAKE_COMMAND}" -E env "LD_PRELOAD=${CMAKE_CURRENT_BINARY_DIR}/../libdrm_mock/libdrm_mock.so" "${CMAKE_CURRENT_BINARY_DIR}/devult" "${CMAKE_CURRENT_BINARY_DIR}/../../../${LIB_NAME}.so"
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-- COMMENT "Running devult...")
-+ )
- endif ()
- endif ()
-
diff --git a/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-21.4.2-Remove-unwanted-CFLAGS.patch b/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-21.4.2-Remove-unwanted-CFLAGS.patch
deleted file mode 100644
index 288fe2d7f517..000000000000
--- a/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-21.4.2-Remove-unwanted-CFLAGS.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From f1c5c12d866783f7a3079be440c06fdb8a931ed2 Mon Sep 17 00:00:00 2001
-From: Matt Turner <mattst88@gmail.com>
-Date: Tue, 23 Nov 2021 12:28:05 -0800
-Subject: [PATCH] Remove unwanted CFLAGS
-
----
- media_driver/cmake/linux/media_compile_flags_linux.cmake | 7 -------
- 1 file changed, 7 deletions(-)
-
-diff --git a/media_driver/cmake/linux/media_compile_flags_linux.cmake b/media_driver/cmake/linux/media_compile_flags_linux.cmake
-index 512ef17b..e8ade76d 100755
---- a/media_driver/cmake/linux/media_compile_flags_linux.cmake
-+++ b/media_driver/cmake/linux/media_compile_flags_linux.cmake
-@@ -52,16 +52,12 @@ set(MEDIA_COMPILER_FLAGS_COMMON
- -ffunction-sections
- -Wl,--gc-sections
-
-- # -m32 or -m64
-- -m${ARCH}
--
- # Global defines
- -DLINUX=1
- -DLINUX
- -DNO_RTTI
- -DNO_EXCEPTION_HANDLING
- -DINTEL_NOT_PUBLIC
-- -g
- )
-
-
-@@ -189,9 +185,6 @@ include(${MEDIA_EXT_CMAKE}/ext/linux/media_compile_flags_linux_ext.cmake OPTIONA
- if(${PLATFORM} STREQUAL "linux")
- #set predefined compiler flags set
- add_compile_options("${MEDIA_COMPILER_FLAGS_COMMON}")
-- add_compile_options("$<$<CONFIG:Debug>:${MEDIA_COMPILER_FLAGS_DEBUG}>")
-- add_compile_options("$<$<CONFIG:Release>:${MEDIA_COMPILER_FLAGS_RELEASE}>")
-- add_compile_options("$<$<CONFIG:ReleaseInternal>:${MEDIA_COMPILER_FLAGS_RELEASEINTERNAL}>")
-
- foreach (flag ${MEDIA_COMPILER_CXX_FLAGS_COMMON})
- SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
---
-2.32.0
-
diff --git a/media-libs/libva-intel-media-driver/libva-intel-media-driver-9999.ebuild b/media-libs/libva-intel-media-driver/libva-intel-media-driver-9999.ebuild
index 1a647aa323ec..c39052ca1e08 100644
--- a/media-libs/libva-intel-media-driver/libva-intel-media-driver-9999.ebuild
+++ b/media-libs/libva-intel-media-driver/libva-intel-media-driver-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -35,9 +35,8 @@ DEPEND=">=media-libs/gmmlib-22.3.14:=[${MULTILIB_USEDEP}]
RDEPEND="${DEPEND}"
PATCHES=(
- "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch
- "${FILESDIR}"/${PN}-21.4.2-Remove-unwanted-CFLAGS.patch
- "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch
+ "${FILESDIR}"/${PN}-23.3.4-Remove-unwanted-CFLAGS.patch
+ "${FILESDIR}"/${PN}-23.3.4_testing_in_src_test.patch
)
multilib_src_configure() {
@@ -49,7 +48,7 @@ multilib_src_configure() {
-DMEDIA_RUN_TEST_SUITE=$(usex test)
-DBUILD_TYPE=Release
-DPLATFORM=linux
- -DUSE_X11=$(usex X)
+ -DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex !X)
-DENABLE_NONFREE_KERNELS=$(usex redistributable)
-DLATEST_CPP_NEEDED=ON # Seems to be the best option for now
)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libva-intel-media-driver/files/, media-libs/libva-intel-media-driver/
@ 2024-12-19 18:42 Matt Turner
0 siblings, 0 replies; 2+ messages in thread
From: Matt Turner @ 2024-12-19 18:42 UTC (permalink / raw
To: gentoo-commits
commit: 0abe35a4e7059d824290747180be5cdf2e825898
Author: Ian Jordan <immoloism <AT> gmail <DOT> com>
AuthorDate: Tue Dec 17 10:02:52 2024 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Dec 19 18:42:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0abe35a4
media-libs/libva-intel-media-driver: GCC15 c23 fix
Closes: https://bugs.gentoo.org/938537
Closes: https://github.com/gentoo/gentoo/pull/39751
Signed-off-by: Ian Jordan <immoloism <AT> gmail.com>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
.../files/libva-intel-media-driver-24.4.4-c23-fix.patch | 15 +++++++++++++++
.../libva-intel-media-driver-24.4.4.ebuild | 1 +
2 files changed, 16 insertions(+)
diff --git a/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-24.4.4-c23-fix.patch b/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-24.4.4-c23-fix.patch
new file mode 100644
index 000000000000..7152c47ce0b0
--- /dev/null
+++ b/media-libs/libva-intel-media-driver/files/libva-intel-media-driver-24.4.4-c23-fix.patch
@@ -0,0 +1,15 @@
+From https://patch-diff.githubusercontent.com/raw/intel/media-driver/pull/1849.patch
+From: Blackteahamburger <blackteahamburger@outlook.com>
+Date: Thu, 29 Aug 2024 17:04:55 +0800
+Subject: [PATCH] Fix missing cstdint for GCC 15
+
+--- a/media_common/linux/common/os/mos_defs_specific.h
++++ b/media_common/linux/common/os/mos_defs_specific.h
+@@ -29,6 +29,7 @@
+
+ #include <pthread.h>
+ #include <semaphore.h>
++#include <cstdint>
+ #include <string>
+
+ typedef pthread_mutex_t MOS_MUTEX, *PMOS_MUTEX; //!< mutex pointer
diff --git a/media-libs/libva-intel-media-driver/libva-intel-media-driver-24.4.4.ebuild b/media-libs/libva-intel-media-driver/libva-intel-media-driver-24.4.4.ebuild
index 42f6583e9710..10dc34ee39cf 100644
--- a/media-libs/libva-intel-media-driver/libva-intel-media-driver-24.4.4.ebuild
+++ b/media-libs/libva-intel-media-driver/libva-intel-media-driver-24.4.4.ebuild
@@ -37,6 +37,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-23.3.4-Remove-unwanted-CFLAGS.patch
"${FILESDIR}"/${PN}-23.3.4_testing_in_src_test.patch
+ "${FILESDIR}"/${PN}-24.4.4-c23-fix.patch
)
multilib_src_configure() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-19 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-19 18:42 [gentoo-commits] repo/gentoo:master commit in: media-libs/libva-intel-media-driver/files/, media-libs/libva-intel-media-driver/ Matt Turner
-- strict thread matches above, loose matches on Subject: below --
2024-03-12 18:57 Matt Turner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox