On 03/12/2013 00:25, Christoph Egger wrote: > If you are about to change this, please give me the patch for testing > beforehand. I did try to clean up things there in summer and still > needed what is left in libdrm to get the intel driver working.
Here. It's only supposed to improve things for radeonkms though. -- Robert Millan
diff -Nur libdrm-2.4.49/debian/patches/03_kbsd_modeset_dummy.diff libdrm-2.4.49.new/debian/patches/03_kbsd_modeset_dummy.diff --- libdrm-2.4.49/debian/patches/03_kbsd_modeset_dummy.diff 1970-01-01 01:00:00.000000000 +0100 +++ libdrm-2.4.49.new/debian/patches/03_kbsd_modeset_dummy.diff 2013-12-03 11:53:28.364330750 +0100 @@ -0,0 +1,24 @@ + +Disable the check on kFreeBSD until the sysctl interface is implemented +for radeonkms. See #731144. + +--- a/xf86drmMode.c ++++ b/xf86drmMode.c +@@ -704,7 +704,7 @@ + */ + int drmCheckModesettingSupported(const char *busid) + { +-#ifdef __linux__ ++#if defined(__linux__) + char pci_dev_dir[1024]; + int domain, bus, dev, func; + DIR *sysdir; +@@ -754,6 +754,8 @@ + closedir(sysdir); + if (found) + return 0; ++#elif defined(__FreeBSD_kernel__) ++ return 0; + #endif + return -ENOSYS; + diff -Nur libdrm-2.4.49/debian/patches/series libdrm-2.4.49.new/debian/patches/series --- libdrm-2.4.49/debian/patches/series 2013-12-03 11:52:36.000000000 +0100 +++ libdrm-2.4.49.new/debian/patches/series 2013-12-03 11:51:10.387330378 +0100 @@ -1,2 +1,3 @@ 01_default_perms.diff -02_kbsd_modeset.diff +#02_kbsd_modeset.diff +03_kbsd_modeset_dummy.diff