1 |
spock 09/08/03 03:58:20 |
2 |
|
3 |
Modified: nvidia-drivers-185.18.31.ebuild ChangeLog |
4 |
nvidia-drivers-185.18.29.ebuild |
5 |
Log: |
6 |
Add a device compatibility check (bug #280031, #279542). Users of graphics cards known to be incompatible with a particular version of the drivers will now be warned about the incompatibility when installing the package. |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 x11-drivers/nvidia-drivers/nvidia-drivers-185.18.31.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.31.ebuild?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.31.ebuild?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.31.ebuild?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: nvidia-drivers-185.18.31.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.31.ebuild,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- nvidia-drivers-185.18.31.ebuild 3 Aug 2009 00:47:30 -0000 1.2 |
23 |
+++ nvidia-drivers-185.18.31.ebuild 3 Aug 2009 03:58:20 -0000 1.3 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2009 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.31.ebuild,v 1.2 2009/08/03 00:47:30 cardoe Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.31.ebuild,v 1.3 2009/08/03 03:58:20 spock Exp $ |
29 |
|
30 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
31 |
|
32 |
@@ -143,6 +143,9 @@ |
33 |
|
34 |
S="${WORKDIR}/${NV_PACKAGE}${PKG_V}" |
35 |
|
36 |
+# PCI IDs of devices known not to work with this version of the drivers. |
37 |
+BROKEN_DEVICES="10de0429c" |
38 |
+ |
39 |
mtrr_check() { |
40 |
ebegin "Checking for MTRR support" |
41 |
linux_chkconfig_present MTRR |
42 |
@@ -159,6 +162,19 @@ |
43 |
fi |
44 |
} |
45 |
|
46 |
+compat_device_check() { |
47 |
+ [ ! -r /proc/bus/pci/devices -o -z "${BROKEN_DEVICES}" ] && return |
48 |
+ |
49 |
+ for dev_id in ${BROKEN_DEVICES} ; do |
50 |
+ if [ -n "$(grep ${dev_id} /proc/bus/pci/devices)" ]; then |
51 |
+ ewarn "It looks like you have a graphics card that is known not to work" |
52 |
+ ewarn "with this version of nvidia-drivers. Strongly consider using an" |
53 |
+ ewarn "older version for now." |
54 |
+ ebeep |
55 |
+ fi |
56 |
+ done |
57 |
+} |
58 |
+ |
59 |
pkg_setup() { |
60 |
# try to turn off distcc and ccache for people that have a problem with it |
61 |
export DISTCC_DISABLE=1 |
62 |
@@ -175,6 +191,7 @@ |
63 |
BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ |
64 |
SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" |
65 |
mtrr_check |
66 |
+ compat_device_check |
67 |
fi |
68 |
|
69 |
# On BSD userland it wants real make command |
70 |
|
71 |
|
72 |
|
73 |
1.165 x11-drivers/nvidia-drivers/ChangeLog |
74 |
|
75 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?rev=1.165&view=markup |
76 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?rev=1.165&content-type=text/plain |
77 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?r1=1.164&r2=1.165 |
78 |
|
79 |
Index: ChangeLog |
80 |
=================================================================== |
81 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v |
82 |
retrieving revision 1.164 |
83 |
retrieving revision 1.165 |
84 |
diff -u -r1.164 -r1.165 |
85 |
--- ChangeLog 3 Aug 2009 03:53:52 -0000 1.164 |
86 |
+++ ChangeLog 3 Aug 2009 03:58:20 -0000 1.165 |
87 |
@@ -1,6 +1,12 @@ |
88 |
# ChangeLog for x11-drivers/nvidia-drivers |
89 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
90 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.164 2009/08/03 03:53:52 cardoe Exp $ |
91 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.165 2009/08/03 03:58:20 spock Exp $ |
92 |
+ |
93 |
+ 03 Aug 2009; MichaĆ Januszewski <spock@g.o> |
94 |
+ nvidia-drivers-185.18.29.ebuild, nvidia-drivers-185.18.31.ebuild: |
95 |
+ Add a device compatibility check (bug #280031, #279542). Users of graphics |
96 |
+ cards known to be incompatible with a particular version of the drivers |
97 |
+ will now be warned about the incompatibility when installing the package. |
98 |
|
99 |
*nvidia-drivers-173.14.20 (03 Aug 2009) |
100 |
|
101 |
|
102 |
|
103 |
|
104 |
1.3 x11-drivers/nvidia-drivers/nvidia-drivers-185.18.29.ebuild |
105 |
|
106 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.29.ebuild?rev=1.3&view=markup |
107 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.29.ebuild?rev=1.3&content-type=text/plain |
108 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.29.ebuild?r1=1.2&r2=1.3 |
109 |
|
110 |
Index: nvidia-drivers-185.18.29.ebuild |
111 |
=================================================================== |
112 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.29.ebuild,v |
113 |
retrieving revision 1.2 |
114 |
retrieving revision 1.3 |
115 |
diff -u -r1.2 -r1.3 |
116 |
--- nvidia-drivers-185.18.29.ebuild 3 Aug 2009 00:47:30 -0000 1.2 |
117 |
+++ nvidia-drivers-185.18.29.ebuild 3 Aug 2009 03:58:20 -0000 1.3 |
118 |
@@ -1,6 +1,6 @@ |
119 |
# Copyright 1999-2009 Gentoo Foundation |
120 |
# Distributed under the terms of the GNU General Public License v2 |
121 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.29.ebuild,v 1.2 2009/08/03 00:47:30 cardoe Exp $ |
122 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-185.18.29.ebuild,v 1.3 2009/08/03 03:58:20 spock Exp $ |
123 |
|
124 |
inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver |
125 |
|
126 |
@@ -143,6 +143,9 @@ |
127 |
|
128 |
S="${WORKDIR}/${NV_PACKAGE}${PKG_V}" |
129 |
|
130 |
+# PCI IDs of devices known not to work with this version of the drivers. |
131 |
+BROKEN_DEVICES="10de0429c" |
132 |
+ |
133 |
mtrr_check() { |
134 |
ebegin "Checking for MTRR support" |
135 |
linux_chkconfig_present MTRR |
136 |
@@ -159,6 +162,19 @@ |
137 |
fi |
138 |
} |
139 |
|
140 |
+compat_device_check() { |
141 |
+ [ ! -r /proc/bus/pci/devices -o -z "${BROKEN_DEVICES}" ] && return |
142 |
+ |
143 |
+ for dev_id in ${BROKEN_DEVICES} ; do |
144 |
+ if [ -n "$(grep ${dev_id} /proc/bus/pci/devices)" ]; then |
145 |
+ ewarn "It looks like you have a graphics card that is known not to work" |
146 |
+ ewarn "with this version of nvidia-drivers. Strongly consider using an" |
147 |
+ ewarn "older version for now." |
148 |
+ ebeep |
149 |
+ fi |
150 |
+ done |
151 |
+} |
152 |
+ |
153 |
pkg_setup() { |
154 |
# try to turn off distcc and ccache for people that have a problem with it |
155 |
export DISTCC_DISABLE=1 |
156 |
@@ -175,6 +191,7 @@ |
157 |
BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ |
158 |
SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" |
159 |
mtrr_check |
160 |
+ compat_device_check |
161 |
fi |
162 |
|
163 |
# On BSD userland it wants real make command |