summaryrefslogtreecommitdiff
path: root/system/nvidia-driver/skip_conflict-GPU_detect.patch
blob: b98a12ccbbc13125f4c940773f0b02e98c13a648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -uaN nvidia-installer-375.66/command-list.c nvidia-installer-375.66.new/command-list.c
--- nvidia-installer-375.66/command-list.c	2017-05-01 16:41:24.000000000 -0700
+++ nvidia-installer-375.66.new/command-list.c	2017-07-01 18:15:25.087868229 -0700
@@ -903,6 +903,8 @@
     // Allocate enough space for the whole file list, plus two extra files and
     // a NULL at the end.
     cfList = nvalloc((p->num_entries + 3) * sizeof(ConflictingFileInfo));
+/* let's just return an empty list!  */
+    return cfList;
 
     for (i = 0; i < p->num_entries; i++) {
         PackageEntry *entry = &p->entries[i];
Common subdirectories: nvidia-installer-375.66/common-utils and nvidia-installer-375.66.new/common-utils
diff -uaN nvidia-installer-375.66/misc.c nvidia-installer-375.66.new/misc.c
--- nvidia-installer-375.66/misc.c	2017-05-01 16:41:24.000000000 -0700
+++ nvidia-installer-375.66.new/misc.c	2017-07-01 18:19:22.310846284 -0700
@@ -2290,7 +2290,10 @@
                  "For further details, please see the appendix SUPPORTED "
                  "NVIDIA GRAPHICS CHIPS in the README available on the Linux "
                  "driver download page at www.nvidia.com.", p->version);
-        return FALSE;
+  /*        return FALSE;
++ * We're just going to keep the message but skip the result
++ * so we can run this in a VM.
++ */
     }
 
     if (!found_vga_device)