1 |
commit: bc69df3fdbdb024eda98a3dd9f22d8e9973af99a |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 24 04:57:58 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 24 05:56:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc69df3f |
7 |
|
8 |
x11-drivers/nvidia-drivers: warn when abi_x86_32 is disabled |
9 |
|
10 |
Profile had abi_x86_32 enabled by default for ~7 years (now removed), |
11 |
and users may not necessarily have realized whether they needed it. |
12 |
|
13 |
steam-overlay's steam-client-meta depends on nvidia's [abi_x86_32] |
14 |
but wine* and other 32bit applications generally do not (typically |
15 |
only check for virtual/opengl which only checks if mesa has it set, |
16 |
or may check neither if depends on libglvnd directly). |
17 |
|
18 |
Warn to miminize poor surprises to some extend. |
19 |
|
20 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
21 |
|
22 |
x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild | 11 ++++++++++- |
23 |
.../nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild | 9 +++++++++ |
24 |
x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild | 12 ++++++++++-- |
25 |
x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild | 12 ++++++++++-- |
26 |
x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild | 12 ++++++++++-- |
27 |
x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild | 12 ++++++++++-- |
28 |
x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild | 12 ++++++++++-- |
29 |
7 files changed, 69 insertions(+), 11 deletions(-) |
30 |
|
31 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild |
32 |
index 64ade35d122d..1004d1b629b8 100644 |
33 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild |
34 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild |
35 |
@@ -359,7 +359,8 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" |
36 |
} |
37 |
|
38 |
pkg_preinst() { |
39 |
- has_version "x11-drivers/nvidia-drivers[wayland]" && NV_HAD_WAYLAND=1 |
40 |
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1 |
41 |
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1 |
42 |
|
43 |
use driver || return |
44 |
linux-mod_pkg_preinst |
45 |
@@ -389,7 +390,15 @@ pkg_postinst() { |
46 |
elog "Other functions, like OpenGL, will continue to work." |
47 |
fi |
48 |
|
49 |
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then |
50 |
+ elog |
51 |
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to" |
52 |
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
53 |
+ elog "with app-emulation/wine-*). Re-enable if needed." |
54 |
+ fi |
55 |
+ |
56 |
if [[ ${NV_HAD_WAYLAND} ]]; then |
57 |
+ elog |
58 |
elog "Support for EGLStream (egl-wayland) is no longer offered with legacy" |
59 |
elog "nvidia-drivers. It is recommended to use nouveau drivers for wayland." |
60 |
fi |
61 |
|
62 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild |
63 |
index 965d65172955..416d84b7d48a 100644 |
64 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild |
65 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild |
66 |
@@ -360,6 +360,8 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" |
67 |
} |
68 |
|
69 |
pkg_preinst() { |
70 |
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1 |
71 |
+ |
72 |
use driver || return |
73 |
linux-mod_pkg_preinst |
74 |
|
75 |
@@ -409,6 +411,13 @@ pkg_postinst() { |
76 |
ewarn "https://www.nvidia.com/object/IO_32667.html" |
77 |
fi |
78 |
|
79 |
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then |
80 |
+ elog |
81 |
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to" |
82 |
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
83 |
+ elog "with app-emulation/wine-*). Re-enable if needed." |
84 |
+ fi |
85 |
+ |
86 |
# Try to show this message only to users that may really need it |
87 |
# given the workaround is discouraged and usage isn't widespread. |
88 |
if use X && [[ ${REPLACING_VERSIONS} ]] && |
89 |
|
90 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild |
91 |
index b3b8df4650d8..0cc7549b27a9 100644 |
92 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild |
93 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild |
94 |
@@ -392,6 +392,9 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" |
95 |
} |
96 |
|
97 |
pkg_preinst() { |
98 |
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1 |
99 |
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1 |
100 |
+ |
101 |
use driver || return |
102 |
linux-mod_pkg_preinst |
103 |
|
104 |
@@ -413,8 +416,6 @@ pkg_preinst() { |
105 |
fi |
106 |
done |
107 |
rm "${ED}"/usr/share/nvidia/supported-gpus.json || die |
108 |
- |
109 |
- has_version "x11-drivers/nvidia-drivers[wayland]" && NV_HAD_WAYLAND=1 |
110 |
} |
111 |
|
112 |
pkg_postinst() { |
113 |
@@ -448,6 +449,13 @@ pkg_postinst() { |
114 |
ewarn "https://www.nvidia.com/object/IO_32667.html" |
115 |
fi |
116 |
|
117 |
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then |
118 |
+ elog |
119 |
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to" |
120 |
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
121 |
+ elog "with app-emulation/wine-*). Re-enable if needed." |
122 |
+ fi |
123 |
+ |
124 |
if use wayland && use driver && [[ ! ${NV_HAD_WAYLAND} ]]; then |
125 |
elog |
126 |
elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1" |
127 |
|
128 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild |
129 |
index 9be8a4d57429..09afc857b0b1 100644 |
130 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild |
131 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild |
132 |
@@ -387,6 +387,9 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" |
133 |
} |
134 |
|
135 |
pkg_preinst() { |
136 |
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1 |
137 |
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1 |
138 |
+ |
139 |
use driver || return |
140 |
linux-mod_pkg_preinst |
141 |
|
142 |
@@ -408,8 +411,6 @@ pkg_preinst() { |
143 |
fi |
144 |
done |
145 |
rm "${ED}"/usr/share/nvidia/supported-gpus.json || die |
146 |
- |
147 |
- has_version "x11-drivers/nvidia-drivers[wayland]" && NV_HAD_WAYLAND=1 |
148 |
} |
149 |
|
150 |
pkg_postinst() { |
151 |
@@ -445,6 +446,13 @@ pkg_postinst() { |
152 |
ewarn "https://www.nvidia.com/object/IO_32667.html" |
153 |
fi |
154 |
|
155 |
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then |
156 |
+ elog |
157 |
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to" |
158 |
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
159 |
+ elog "with app-emulation/wine-*). Re-enable if needed." |
160 |
+ fi |
161 |
+ |
162 |
if use wayland && use driver && [[ ! ${NV_HAD_WAYLAND} ]]; then |
163 |
elog |
164 |
elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1" |
165 |
|
166 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild |
167 |
index 9be8a4d57429..09afc857b0b1 100644 |
168 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild |
169 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild |
170 |
@@ -387,6 +387,9 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" |
171 |
} |
172 |
|
173 |
pkg_preinst() { |
174 |
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1 |
175 |
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1 |
176 |
+ |
177 |
use driver || return |
178 |
linux-mod_pkg_preinst |
179 |
|
180 |
@@ -408,8 +411,6 @@ pkg_preinst() { |
181 |
fi |
182 |
done |
183 |
rm "${ED}"/usr/share/nvidia/supported-gpus.json || die |
184 |
- |
185 |
- has_version "x11-drivers/nvidia-drivers[wayland]" && NV_HAD_WAYLAND=1 |
186 |
} |
187 |
|
188 |
pkg_postinst() { |
189 |
@@ -445,6 +446,13 @@ pkg_postinst() { |
190 |
ewarn "https://www.nvidia.com/object/IO_32667.html" |
191 |
fi |
192 |
|
193 |
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then |
194 |
+ elog |
195 |
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to" |
196 |
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
197 |
+ elog "with app-emulation/wine-*). Re-enable if needed." |
198 |
+ fi |
199 |
+ |
200 |
if use wayland && use driver && [[ ! ${NV_HAD_WAYLAND} ]]; then |
201 |
elog |
202 |
elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1" |
203 |
|
204 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild |
205 |
index d1398cc45309..08e975e6beb8 100644 |
206 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild |
207 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild |
208 |
@@ -410,6 +410,9 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" |
209 |
} |
210 |
|
211 |
pkg_preinst() { |
212 |
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1 |
213 |
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1 |
214 |
+ |
215 |
use driver || return |
216 |
linux-mod_pkg_preinst |
217 |
|
218 |
@@ -431,8 +434,6 @@ pkg_preinst() { |
219 |
fi |
220 |
done |
221 |
rm "${ED}"/usr/share/nvidia/supported-gpus.json || die |
222 |
- |
223 |
- has_version "x11-drivers/nvidia-drivers[wayland]" && NV_HAD_WAYLAND=1 |
224 |
} |
225 |
|
226 |
pkg_postinst() { |
227 |
@@ -468,6 +469,13 @@ pkg_postinst() { |
228 |
ewarn "https://www.nvidia.com/object/IO_32667.html" |
229 |
fi |
230 |
|
231 |
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then |
232 |
+ elog |
233 |
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to" |
234 |
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
235 |
+ elog "with app-emulation/wine-*). Re-enable if needed." |
236 |
+ fi |
237 |
+ |
238 |
if use wayland && use driver && [[ ! ${NV_HAD_WAYLAND} ]]; then |
239 |
elog |
240 |
elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1" |
241 |
|
242 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild |
243 |
index 9e444bda2a40..7d5b9d3dfce6 100644 |
244 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild |
245 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild |
246 |
@@ -399,6 +399,9 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" |
247 |
} |
248 |
|
249 |
pkg_preinst() { |
250 |
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1 |
251 |
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1 |
252 |
+ |
253 |
use driver || return |
254 |
linux-mod_pkg_preinst |
255 |
|
256 |
@@ -420,8 +423,6 @@ pkg_preinst() { |
257 |
fi |
258 |
done |
259 |
rm "${ED}"/usr/share/nvidia/supported-gpus.json || die |
260 |
- |
261 |
- has_version "x11-drivers/nvidia-drivers[wayland]" && NV_HAD_WAYLAND=1 |
262 |
} |
263 |
|
264 |
pkg_postinst() { |
265 |
@@ -457,6 +458,13 @@ pkg_postinst() { |
266 |
ewarn "https://www.nvidia.com/object/IO_32667.html" |
267 |
fi |
268 |
|
269 |
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then |
270 |
+ elog |
271 |
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to" |
272 |
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
273 |
+ elog "with app-emulation/wine-*). Re-enable if needed." |
274 |
+ fi |
275 |
+ |
276 |
if use wayland && use driver && [[ ! ${NV_HAD_WAYLAND} ]]; then |
277 |
elog |
278 |
elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1" |