1 |
commit: 4b78f04f21cbfcc3ac3a890dc8955c779c227bd2 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 28 11:24:53 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 28 11:53:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b78f04f |
7 |
|
8 |
x11-drivers/nvidia-drivers: remove coolbits postinst warning |
9 |
|
10 |
This is not solved and still happening with 495.46 (doesn't seem |
11 |
like anything can reasonably do about it from a packaging end, |
12 |
and NVIDIA hasn't done anything), but the postinst message itself |
13 |
wasn't shown unless updating 6+ months old nvidia-drivers with |
14 |
coolbits in xorg.conf and is now mostly unused cruft. |
15 |
|
16 |
If this is going to be a permanent state of affair, may be better |
17 |
documented elsewhere and bug closed as an upstream issue (albeit |
18 |
keeping open a bit longer for tracking). |
19 |
|
20 |
Bug: https://bugs.gentoo.org/784248 |
21 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
22 |
|
23 |
.../nvidia-drivers/nvidia-drivers-390.144-r1.ebuild | 16 ---------------- |
24 |
x11-drivers/nvidia-drivers/nvidia-drivers-390.147.ebuild | 16 ---------------- |
25 |
.../nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild | 16 ---------------- |
26 |
.../nvidia-drivers/nvidia-drivers-470.62.16.ebuild | 16 ---------------- |
27 |
.../nvidia-drivers/nvidia-drivers-470.86-r2.ebuild | 16 ---------------- |
28 |
x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild | 16 ---------------- |
29 |
.../nvidia-drivers/nvidia-drivers-495.44-r2.ebuild | 16 ---------------- |
30 |
.../nvidia-drivers/nvidia-drivers-495.46-r10.ebuild | 16 ---------------- |
31 |
.../nvidia-drivers/nvidia-drivers-495.46-r20.ebuild | 16 ---------------- |
32 |
x11-drivers/nvidia-drivers/nvidia-drivers-495.46.ebuild | 16 ---------------- |
33 |
10 files changed, 160 deletions(-) |
34 |
|
35 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild |
36 |
index 1004d1b629b8..2818b9a31cbd 100644 |
37 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild |
38 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild |
39 |
@@ -402,20 +402,4 @@ pkg_postinst() { |
40 |
elog "Support for EGLStream (egl-wayland) is no longer offered with legacy" |
41 |
elog "nvidia-drivers. It is recommended to use nouveau drivers for wayland." |
42 |
fi |
43 |
- |
44 |
- # Try to show this message only to users that may really need it |
45 |
- # given the workaround is discouraged and usage isn't widespread. |
46 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
47 |
- ver_test ${REPLACING_VERSIONS} -lt 390.143 && |
48 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
49 |
- elog |
50 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
51 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
52 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
53 |
- elog |
54 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
55 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
56 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
57 |
- elog "Bug: https://bugs.gentoo.org/784248" |
58 |
- fi |
59 |
} |
60 |
|
61 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.147.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.147.ebuild |
62 |
index 14c8a94612ac..e2113aa452bb 100644 |
63 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.147.ebuild |
64 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.147.ebuild |
65 |
@@ -407,20 +407,4 @@ pkg_postinst() { |
66 |
elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
67 |
elog "with app-emulation/wine-* or steam). Re-enable if needed." |
68 |
fi |
69 |
- |
70 |
- # Try to show this message only to users that may really need it |
71 |
- # given the workaround is discouraged and usage isn't widespread. |
72 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
73 |
- ver_test ${REPLACING_VERSIONS} -lt 390.143 && |
74 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
75 |
- elog |
76 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
77 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
78 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
79 |
- elog |
80 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
81 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
82 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
83 |
- elog "Bug: https://bugs.gentoo.org/784248" |
84 |
- fi |
85 |
} |
86 |
|
87 |
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 |
88 |
index 416d84b7d48a..9fff7447aca1 100644 |
89 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild |
90 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild |
91 |
@@ -417,20 +417,4 @@ pkg_postinst() { |
92 |
elog "use nvidia-drivers for acceleration without it (e.g. commonly used" |
93 |
elog "with app-emulation/wine-*). Re-enable if needed." |
94 |
fi |
95 |
- |
96 |
- # Try to show this message only to users that may really need it |
97 |
- # given the workaround is discouraged and usage isn't widespread. |
98 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
99 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
100 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
101 |
- elog |
102 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
103 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
104 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
105 |
- elog |
106 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
107 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
108 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
109 |
- elog "Bug: https://bugs.gentoo.org/784248" |
110 |
- fi |
111 |
} |
112 |
|
113 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.16.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.16.ebuild |
114 |
index 3d69f2220850..fd2f86147ae7 100644 |
115 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.16.ebuild |
116 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.16.ebuild |
117 |
@@ -430,20 +430,4 @@ pkg_postinst() { |
118 |
elog "This version of ${PN} only supports EGLStream which is only" |
119 |
elog "supported by a few wayland compositors (e.g. kwin / mutter, not sway)." |
120 |
fi |
121 |
- |
122 |
- # Try to show this message only to users that may really need it |
123 |
- # given the workaround is discouraged and usage isn't widespread. |
124 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
125 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
126 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
127 |
- elog |
128 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
129 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
130 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
131 |
- elog |
132 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
133 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
134 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
135 |
- elog "Bug: https://bugs.gentoo.org/784248" |
136 |
- fi |
137 |
} |
138 |
|
139 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r2.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r2.ebuild |
140 |
index 6fc46d5276eb..4b35afdaa2c5 100644 |
141 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r2.ebuild |
142 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r2.ebuild |
143 |
@@ -463,20 +463,4 @@ pkg_postinst() { |
144 |
elog "If you experience issues, please comment out the option from nvidia.conf." |
145 |
elog "Of note, may possibly cause issues with SLI and Reverse PRIME." |
146 |
fi |
147 |
- |
148 |
- # Try to show this message only to users that may really need it |
149 |
- # given the workaround is discouraged and usage isn't widespread. |
150 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
151 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
152 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
153 |
- elog |
154 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
155 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
156 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
157 |
- elog |
158 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
159 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
160 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
161 |
- elog "Bug: https://bugs.gentoo.org/784248" |
162 |
- fi |
163 |
} |
164 |
|
165 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild |
166 |
index c0b8c31abf93..8b978b4e3911 100644 |
167 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild |
168 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild |
169 |
@@ -430,20 +430,4 @@ pkg_postinst() { |
170 |
elog "This version of ${PN} only supports EGLStream which is only" |
171 |
elog "supported by a few wayland compositors (e.g. kwin / mutter, not sway)." |
172 |
fi |
173 |
- |
174 |
- # Try to show this message only to users that may really need it |
175 |
- # given the workaround is discouraged and usage isn't widespread. |
176 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
177 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
178 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
179 |
- elog |
180 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
181 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
182 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
183 |
- elog |
184 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
185 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
186 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
187 |
- elog "Bug: https://bugs.gentoo.org/784248" |
188 |
- fi |
189 |
} |
190 |
|
191 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild |
192 |
index 45f7181d5c6c..cb68478d1349 100644 |
193 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild |
194 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild |
195 |
@@ -487,22 +487,6 @@ pkg_postinst() { |
196 |
elog "Of note, may possibly cause issues with SLI and Reverse PRIME." |
197 |
fi |
198 |
|
199 |
- # Try to show this message only to users that may really need it |
200 |
- # given the workaround is discouraged and usage isn't widespread. |
201 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
202 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
203 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
204 |
- elog |
205 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
206 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
207 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
208 |
- elog |
209 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
210 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
211 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
212 |
- elog "Bug: https://bugs.gentoo.org/784248" |
213 |
- fi |
214 |
- |
215 |
ewarn |
216 |
ewarn "This revision of ${PN} is applying a binary patch to prevent heavy" |
217 |
ewarn "dbus spamming while using OpenGL. If you experience issues, please try to" |
218 |
|
219 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r10.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r10.ebuild |
220 |
index dd05555ba26e..02a6354ec0a0 100644 |
221 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r10.ebuild |
222 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r10.ebuild |
223 |
@@ -443,22 +443,6 @@ pkg_postinst() { |
224 |
elog "Of note, may possibly cause issues with SLI and Reverse PRIME." |
225 |
fi |
226 |
|
227 |
- # Try to show this message only to users that may really need it |
228 |
- # given the workaround is discouraged and usage isn't widespread. |
229 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
230 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
231 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
232 |
- elog |
233 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
234 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
235 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
236 |
- elog |
237 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
238 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
239 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
240 |
- elog "Bug: https://bugs.gentoo.org/784248" |
241 |
- fi |
242 |
- |
243 |
ewarn |
244 |
ewarn "This revision of ${PN} is applying a binary patch to prevent heavy" |
245 |
ewarn "dbus spamming while using OpenGL. If you experience issues, please try to" |
246 |
|
247 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild |
248 |
index 3e93e2f0a367..5506a22853f2 100644 |
249 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild |
250 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild |
251 |
@@ -441,22 +441,6 @@ pkg_postinst() { |
252 |
elog "Of note, may possibly cause issues with SLI and Reverse PRIME." |
253 |
fi |
254 |
|
255 |
- # Try to show this message only to users that may really need it |
256 |
- # given the workaround is discouraged and usage isn't widespread. |
257 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
258 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
259 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
260 |
- elog |
261 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
262 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
263 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
264 |
- elog |
265 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
266 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
267 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
268 |
- elog "Bug: https://bugs.gentoo.org/784248" |
269 |
- fi |
270 |
- |
271 |
ewarn |
272 |
ewarn "This revision of ${PN} is applying a binary patch to prevent heavy" |
273 |
ewarn "dbus spamming while using OpenGL. If you experience issues, please try to" |
274 |
|
275 |
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46.ebuild |
276 |
index cf5827d21dcf..f1b40b9e892b 100644 |
277 |
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46.ebuild |
278 |
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46.ebuild |
279 |
@@ -431,20 +431,4 @@ pkg_postinst() { |
280 |
elog "If you experience issues, either disable wayland or edit nvidia.conf." |
281 |
elog "Of note, may possibly cause issues with SLI and Reverse PRIME." |
282 |
fi |
283 |
- |
284 |
- # Try to show this message only to users that may really need it |
285 |
- # given the workaround is discouraged and usage isn't widespread. |
286 |
- if use X && [[ ${REPLACING_VERSIONS} ]] && |
287 |
- ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && |
288 |
- grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then |
289 |
- elog |
290 |
- elog "Coolbits support with ${PN} has been restricted to require Xorg" |
291 |
- elog "with root privilege by NVIDIA (being in video group is not sufficient)." |
292 |
- elog "e.g. attempting to change fan speed with nvidia-settings would fail." |
293 |
- elog |
294 |
- elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" |
295 |
- elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" |
296 |
- elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' |
297 |
- elog "Bug: https://bugs.gentoo.org/784248" |
298 |
- fi |
299 |
} |