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

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