- force libdrm to make the node perms useful to everyone
This commit is contained in:
parent
0028e5389b
commit
9fee969ca2
12
libdrm-make-dri-perms-okay.patch
Normal file
12
libdrm-make-dri-perms-okay.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up libdrm-20080303/libdrm/xf86drm.h.da libdrm-20080303/libdrm/xf86drm.h
|
||||||
|
--- libdrm-20080303/libdrm/xf86drm.h.da 2008-03-19 15:26:31.000000000 +1000
|
||||||
|
+++ libdrm-20080303/libdrm/xf86drm.h 2008-03-19 15:26:46.000000000 +1000
|
||||||
|
@@ -45,7 +45,7 @@
|
||||||
|
/* Default /dev/dri directory permissions 0755 */
|
||||||
|
#define DRM_DEV_DIRMODE \
|
||||||
|
(S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
|
||||||
|
-#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
|
||||||
|
+#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
|
||||||
|
|
||||||
|
#define DRM_DIR_NAME "/dev/dri"
|
||||||
|
#define DRM_DEV_NAME "%s/card%d"
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Direct Rendering Manager runtime library
|
Summary: Direct Rendering Manager runtime library
|
||||||
Name: libdrm
|
Name: libdrm
|
||||||
Version: 2.4.0
|
Version: 2.4.0
|
||||||
Release: 0.9%{?dist}
|
Release: 0.10%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://dri.sourceforge.net
|
URL: http://dri.sourceforge.net
|
||||||
@ -19,6 +19,9 @@ Source3: i915modeset
|
|||||||
|
|
||||||
Patch1: libdrm-modesetting.patch
|
Patch1: libdrm-modesetting.patch
|
||||||
Patch2: libdrm-2.4.0-no-freaking-mknod.patch
|
Patch2: libdrm-2.4.0-no-freaking-mknod.patch
|
||||||
|
# udev vs pam.console vs hal vs xml vs ConsoleKit
|
||||||
|
# - funk that just bash it direct for now -
|
||||||
|
Patch3: libdrm-make-dri-perms-okay.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Direct Rendering Manager runtime library
|
Direct Rendering Manager runtime library
|
||||||
@ -35,6 +38,7 @@ Direct Rendering Manager development package
|
|||||||
%setup -q -n %{name}-%{gitdate}
|
%setup -q -n %{name}-%{gitdate}
|
||||||
%patch1 -p1 -b .modesetting
|
%patch1 -p1 -b .modesetting
|
||||||
#patch2 -p1 -b .mknod
|
#patch2 -p1 -b .mknod
|
||||||
|
%patch3 -p1 -b .forceperms
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -v --install || exit 1
|
autoreconf -v --install || exit 1
|
||||||
@ -92,6 +96,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/pkgconfig/libdrm.pc
|
%{_libdir}/pkgconfig/libdrm.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 19 2008 Dave Airlie <airlied@redhat.com> 2.4.0-0.10
|
||||||
|
- force libdrm to make the node perms useful to everyone
|
||||||
|
|
||||||
* Fri Mar 07 2008 Dave Airlie <airlied@redhat.com> 2.4.0-0.9
|
* Fri Mar 07 2008 Dave Airlie <airlied@redhat.com> 2.4.0-0.9
|
||||||
- add support for new sysfs structure
|
- add support for new sysfs structure
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user