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

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