Blame SOURCES/0001-xfree86-Don-t-autoconfigure-vesa-or-fbdev.patch

f34ecf
From e4dce2bfaf4a61dd8a8ac099638489d4fdff9024 Mon Sep 17 00:00:00 2001
f34ecf
From: Adam Jackson <ajax@redhat.com>
f34ecf
Date: Tue, 29 May 2018 15:05:10 -0400
f34ecf
Subject: [PATCH] xfree86: Don't autoconfigure vesa or fbdev
f34ecf
f34ecf
Signed-off-by: Adam Jackson <ajax@redhat.com>
f34ecf
---
f34ecf
 hw/xfree86/loader/loadmod.c | 3 +++
f34ecf
 1 file changed, 3 insertions(+)
f34ecf
f34ecf
diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c
f34ecf
index a6356bd..1c1c2b1 100644
f34ecf
--- a/hw/xfree86/loader/loadmod.c
f34ecf
+++ b/hw/xfree86/loader/loadmod.c
f34ecf
@@ -383,6 +383,9 @@ LoaderListDir(const char *subdir, const char **patternlist)
f34ecf
                 strcpy(fp, dp->d_name);
f34ecf
                 if (!(stat(buf, &stat_buf) == 0 && S_ISREG(stat_buf.st_mode)))
f34ecf
                     continue;
f34ecf
+                if (!strcmp(subdir, "drivers") &&
f34ecf
+                            (strstr(dp->d_name, "vesa") || strstr(dp->d_name, "fbdev")))
f34ecf
+                    continue;
f34ecf
                 for (p = patterns; p->pattern; p++) {
f34ecf
                     if (regexec(&p->rex, dp->d_name, 2, match, 0) == 0 &&
f34ecf
                         match[1].rm_so != -1) {
f34ecf
-- 
f34ecf
2.17.0
f34ecf