xf86-video-vmware doesn't built anymore in -current:
Code:
vmwgfx_tex_video.c:240:20: error: the comparison will always evaluate as ‘true’ for the address of ‘yuv’ will never be NULL [-Werror=address]
240 | if (priv->yuv[i]) {
| ^~~~
vmwgfx_tex_video.c:125:24: note: ‘yuv’ declared here
125 | struct xa_surface *yuv[2][3];
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:497: libvmwgfx_la-vmwgfx_tex_video.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/x11-build/xf86-video-vmware-13.3.0/vmwgfx'
make[1]: *** [Makefile:449: all-recursive] Error 1
make[1]: Leaving directory '/tmp/x11-build/xf86-video-vmware-13.3.0'
make: *** [Makefile:381: all] Error 2
This page gives a solution :
https://gitlab.freedesktop.org/xorg/...are/-/issues/9
Here is a small patch which solves the problem:
Code:
diff -aurN xf86-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c xf86-video-vmware-13.3.0-mod/vmwgfx/vmwgfx_tex_video.c
--- xf86-video-vmware-13.3.0/vmwgfx/vmwgfx_tex_video.c 2018-05-17 09:42:24.000000000 +0200
+++ xf86-video-vmware-13.3.0-mod/vmwgfx/vmwgfx_tex_video.c 2022-08-03 18:58:09.951798799 +0200
@@ -237,7 +237,7 @@
for (i=0; i<3; ++i) {
for (j=0; j<2; ++j) {
- if (priv->yuv[i]) {
+ if (priv->yuv[j][i]) {
xa_surface_destroy(priv->yuv[j][i]);
priv->yuv[j][i] = NULL;
}