From cc901a8ce7c6bfe97e3b4f048619693d360ae348 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 10 Feb 2024 11:34:01 +0000 Subject: gentoo auto-resync : 10:02:2024 - 11:34:00 --- media-libs/nvidia-vaapi-driver/Manifest | 3 ++- .../nvidia-vaapi-driver-0.0.11_musl-support.patch | 27 ++++++++++++++++++++++ .../nvidia-vaapi-driver-0.0.11.ebuild | 6 ++++- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch (limited to 'media-libs/nvidia-vaapi-driver') diff --git a/media-libs/nvidia-vaapi-driver/Manifest b/media-libs/nvidia-vaapi-driver/Manifest index 99828d00c8e6..41f7bde0fab6 100644 --- a/media-libs/nvidia-vaapi-driver/Manifest +++ b/media-libs/nvidia-vaapi-driver/Manifest @@ -1,3 +1,4 @@ +AUX nvidia-vaapi-driver-0.0.11_musl-support.patch 733 BLAKE2B 30f340231ccd3d83303094d04bf75035f069b487a7a617b224158764d68f677f11ab005251789b18df5eddc82f234d2eb2812d2aa52f111d0f8b1fd7089ab705 SHA512 546cf7680929aab8ec59b65a590e80e7a706fc6ed377dc769ab5aac21eaca4c50714576c7d68a3c5c42649e82ad6ec6faec558f0f478dfb535189d8964b30c36 DIST nvidia-vaapi-driver-0.0.11.tar.gz 182479 BLAKE2B d025473e200097e7370a8fb0892374d09aa3966cc788d9aa39a8fcaca790df22b13aed6dfe7a69f8a002883248a6a6cfd606fe7c64d0f4bb05f5d567a55934ff SHA512 87eed3d40c891793abccb753af50f0a0ef26bd7be1ccc851fe90657918d3c8440855b3f9bb58c6f44cb2e92eddf222350d26669360f5b8cfd46b80d5691c1a83 -EBUILD nvidia-vaapi-driver-0.0.11.ebuild 592 BLAKE2B 4984edba177fc92539e6a1412c99748276e300e5bf2a27c8cb4f82d7ca97fb1770a237cc4a6bf99b3b8c24fa8cfd3a2674fe79e73769a85f8b13e79bc0238285 SHA512 457bbe279b05608190da81a114172a2ad940c6c49fd495dada0cd1f398f32b06d901a6c5c2803a81e6fe7f15177fee20a6e6d4046399db49435b5c4489ceaeea +EBUILD nvidia-vaapi-driver-0.0.11.ebuild 671 BLAKE2B 462a3372b8a81c51809da0ff849565307caad0401807aa567f06ac6738b8b52397018e1e592a323fb5ee6cdff0b00c58aa12b40841c57b85d28db7c643adb607 SHA512 607ec2942e705a04f8fb6c0f4ff378d0ab0ed6f0fa468adef0dc95643e590f87d871dcdd724da5bd7392cd8e87fc2bd61b570aad66440bbcb1dbeee2042af383 MISC metadata.xml 600 BLAKE2B 780e519992c02718417c1de7ca5c966c4795088bb649d862277959602ea6744c3d78589dc70e5c3eaefc989f9afd7eccded785b7e6e253fc8ae591731634c596 SHA512 5c43e6438c06d5631837711047ca2ccaccda39871af1eaef5ff997a5c35c2ec9f86a0188f44e961095c44823b11847289d04e16575e6061d4c894762a81b1c63 diff --git a/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch b/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch new file mode 100644 index 000000000000..aa03fa825539 --- /dev/null +++ b/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch @@ -0,0 +1,27 @@ +From https://github.com/elFarto/nvidia-vaapi-driver/pull/273 +From: "Azamat H. Hackimov" +Date: Fri, 9 Feb 2024 20:54:17 +0300 +Subject: [PATCH] Fix building with musl + +qsort_r invocations uses `__compar_d_fn_t` typedef that defined only in +glibc. Added missing typedef to fix compilation on musl systems. + +See: https://bugs.gentoo.org/924146 + +Signed-off-by: Azamat H. Hackimov +--- a/src/hevc.c ++++ b/src/hevc.c +@@ -3,6 +3,10 @@ + #include "vabackend.h" + #include + ++#if !defined(__GLIBC__) ++typedef int (*__compar_d_fn_t) (const void *, const void *, void *); ++#endif ++ + static const uint8_t ff_hevc_diag_scan4x4_x[16] = { + 0, 0, 1, 0, + 1, 2, 0, 1, +-- +2.43.0 + diff --git a/media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.11.ebuild b/media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.11.ebuild index c5b44786dba1..6911c8563e08 100644 --- a/media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.11.ebuild +++ b/media-libs/nvidia-vaapi-driver/nvidia-vaapi-driver-0.0.11.ebuild @@ -1,4 +1,4 @@ -# Copyright 2023 Gentoo Authors +# Copyright 2023-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -20,3 +20,7 @@ RDEPEND="media-libs/gst-plugins-bad DEPEND="${RDEPEND} >=media-libs/nv-codec-headers-11.1.5.1" BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/nvidia-vaapi-driver-0.0.11_musl-support.patch" +) -- cgit v1.2.3