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

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