mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
x11-drivers/xf86-video-vesa: Add patch for ignoring if kernel as a driver
The vesa driver checks if the kernel as a driver attached to the pci device.
This used to work before df10dcefa4
("devel/libpciaccess: Update to 0.17")
because we had a patch in libpciaccess that always said that the kernel didn't
had any driver attached. This is obviously not a correct way.
The problem is that vgapci is always attached for us so for pci video devices
we always have a driver attached.
Ignoring the check in xf86-video-vesa seems the best way for us.
PR: 270509
Sponsored by: Beckhoff Automation GmbH & Co. KG
This commit is contained in:
parent
233b1b789d
commit
b6d89731d5
2 changed files with 16 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= xf86-video-vesa
|
||||
PORTVERSION= 2.5.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= x11-drivers
|
||||
|
||||
MAINTAINER= x11@FreeBSD.org
|
||||
|
|
15
x11-drivers/xf86-video-vesa/files/patch-src_vesa.c
Normal file
15
x11-drivers/xf86-video-vesa/files/patch-src_vesa.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- src/vesa.c.orig 2023-03-30 07:58:49 UTC
|
||||
+++ src/vesa.c
|
||||
@@ -464,10 +464,12 @@ VESAPciProbe(DriverPtr drv, int entity_num, struct pci
|
||||
if (pScrn != NULL) {
|
||||
VESAPtr pVesa;
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
if (pci_device_has_kernel_driver(dev)) {
|
||||
ErrorF("vesa: Ignoring device with a bound kernel driver\n");
|
||||
return FALSE;
|
||||
}
|
||||
+#endif
|
||||
|
||||
pVesa = VESAGetRec(pScrn);
|
||||
VESAInitScrn(pScrn);
|
Loading…
Add table
Reference in a new issue