FreeBSD Bugzilla – Attachment 203347 Details for
Bug 236933
graphics/libdrm: drmGetNodeTypeFromFd always fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix, v2
libdrm.drmGetNodeTypeFromFd.diff (text/plain), 1.16 KB, created by
Jan Beich
on 2019-04-03 14:37:28 UTC
(
hide
)
Description:
fix, v2
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2019-04-03 14:37:28 UTC
Size:
1.16 KB
patch
obsolete
>From 802baa8261c04b7e56cb6459d06eec32f2e31afa Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Wed, 3 Apr 2019 12:24:11 +0000 >Subject: [PATCH] graphics/libdrm: make drmGetNodeTypeFromFd actually work > >PR: 236933 >Reviewed by: manu >Approved by: x11 (???) >--- > graphics/libdrm/Makefile | 1 + > graphics/libdrm/files/patch-xf86drm.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/graphics/libdrm/Makefile b/graphics/libdrm/Makefile >index e09714cc4fd12..a211a970c7975 100644 >--- a/graphics/libdrm/Makefile >+++ b/graphics/libdrm/Makefile >@@ -3,6 +3,7 @@ > > PORTNAME= libdrm > PORTVERSION= 2.4.96 >+PORTREVISION= 1 > PORTEPOCH= 1 > CATEGORIES= graphics x11 > MASTER_SITES= http://dri.freedesktop.org/libdrm/ >diff --git a/graphics/libdrm/files/patch-xf86drm.c b/graphics/libdrm/files/patch-xf86drm.c >index 8e5135bf901bd..17886d34fe3b1 100644 >--- a/graphics/libdrm/files/patch-xf86drm.c >+++ b/graphics/libdrm/files/patch-xf86drm.c >@@ -328,7 +328,7 @@ > + return -1; > + } > + >-+ int type = drmGetNodeType(name); >++ int type = drmGetNodeType(strrchr(name, '/') + 1); > + free(name); > + if (type < 0) > + errno = ENODEV;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236933
:
203295
|
203343
| 203347