Skip to content
Snippets Groups Projects
Commit b6d89731 authored by Emmanuel Vadot's avatar Emmanuel Vadot
Browse files

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 df10dcef ("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
parent 233b1b78
No related branches found
No related tags found
No related merge requests found
PORTNAME= xf86-video-vesa
PORTVERSION= 2.5.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org
......
--- 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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment