pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/multimedia/libva
Module Name: pkgsrc
Committed By: ryoon
Date: Tue May 10 14:45:16 UTC 2022
Modified Files:
pkgsrc/multimedia/libva: Makefile distinfo
Added Files:
pkgsrc/multimedia/libva/patches: patch-va_drm_va__drm__utils.c
Log Message:
libva: Find /dev/dri/* nodes in display=drm (not x11) case under NetBSD
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/multimedia/libva/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/multimedia/libva/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/multimedia/libva/patches/patch-va_drm_va__drm__utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/multimedia/libva/Makefile
diff -u pkgsrc/multimedia/libva/Makefile:1.25 pkgsrc/multimedia/libva/Makefile:1.26
--- pkgsrc/multimedia/libva/Makefile:1.25 Tue Mar 8 08:57:04 2022
+++ pkgsrc/multimedia/libva/Makefile Tue May 10 14:45:15 2022
@@ -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}
Index: pkgsrc/multimedia/libva/distinfo
diff -u pkgsrc/multimedia/libva/distinfo:1.18 pkgsrc/multimedia/libva/distinfo:1.19
--- pkgsrc/multimedia/libva/distinfo:1.18 Tue Mar 8 08:57:04 2022
+++ pkgsrc/multimedia/libva/distinfo Tue May 10 14:45:15 2022
@@ -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
Added files:
Index: pkgsrc/multimedia/libva/patches/patch-va_drm_va__drm__utils.c
diff -u /dev/null pkgsrc/multimedia/libva/patches/patch-va_drm_va__drm__utils.c:1.1
--- /dev/null Tue May 10 14:45:16 2022
+++ pkgsrc/multimedia/libva/patches/patch-va_drm_va__drm__utils.c Tue May 10 14:45:16 2022
@@ -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