pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/libva libva: Find /dev/dri/* nodes in displ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5db6f451471d
branches:  trunk
changeset: 379013:5db6f451471d
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue May 10 14:45:15 2022 +0000

description:
libva: Find /dev/dri/* nodes in display=drm (not x11) case under NetBSD

Bump PKGREVISION.

diffstat:

 multimedia/libva/Makefile                              |   3 ++-
 multimedia/libva/distinfo                              |   3 ++-
 multimedia/libva/patches/patch-va_drm_va__drm__utils.c |  18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 3838113dc2cd -r 5db6f451471d multimedia/libva/Makefile
--- a/multimedia/libva/Makefile Tue May 10 14:34:59 2022 +0000
+++ b/multimedia/libva/Makefile Tue May 10 14:45:15 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2022/03/08 08:57:04 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2022/05/10 14:45:15 ryoon Exp $
 
 DISTNAME=      libva-2.14.0
+PKGREVISION=   1
 CATEGORIES=    multimedia
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=intel/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}
diff -r 3838113dc2cd -r 5db6f451471d multimedia/libva/distinfo
--- a/multimedia/libva/distinfo Tue May 10 14:34:59 2022 +0000
+++ b/multimedia/libva/distinfo Tue May 10 14:45:15 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.18 2022/03/08 08:57:04 wiz Exp $
+$NetBSD: distinfo,v 1.19 2022/05/10 14:45:15 ryoon Exp $
 
 BLAKE2s (libva-2.14.0.tar.bz2) = 2e7046698272e3386795f77b2362dda3ec191b59126d79ccd3dfea73d185f0a7
 SHA512 (libva-2.14.0.tar.bz2) = 7ee6f0711929d1c6f6436b69ad0fedcee7e8a450be907d90a7c9741d55de824de471efbc20a398a47af03f5bbacb927daa1f2f780fce6ddfe6bbee21729c95ca
 Size (libva-2.14.0.tar.bz2) = 502518 bytes
+SHA1 (patch-va_drm_va__drm__utils.c) = 5a269316c42ea12afef83636947700d972900fbe
diff -r 3838113dc2cd -r 5db6f451471d multimedia/libva/patches/patch-va_drm_va__drm__utils.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libva/patches/patch-va_drm_va__drm__utils.c    Tue May 10 14:45:15 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-va_drm_va__drm__utils.c,v 1.1 2022/05/10 14:45:16 ryoon Exp $
+
+* Enable display=drm under NetBSD. Do not use fstat case, but name case.
+
+--- va/drm/va_drm_utils.c.orig 2022-01-28 16:00:00.000000000 +0000
++++ va/drm/va_drm_utils.c
+@@ -120,9 +120,11 @@ VA_DRM_IsRenderNodeFd(int fd)
+     struct stat st;
+     const char *name;
+ 
++#if !defined(__NetBSD__)
+     /* Check by device node */
+     if (fstat(fd, &st) == 0)
+         return S_ISCHR(st.st_mode) && (st.st_rdev & 0x80);
++#endif
+ 
+     /* Check by device name */
+     name = drmGetDeviceNameFromFd(fd);



Home | Main Index | Thread Index | Old Index