I did a zypper dup today with Mesa locked and it all went OK until I rebooted and Wayland will not start I have to use X11. I had no conflicts show up in the output so assumed all was OK. Now Wayland issue a message
DRI driver not from this Mesa build (‘24.1.1’ vs ‘24.1.2’)
Looking at the zypp log 3 items which were not locked installed from packman-essentials
libgdm1
libvdpau_r600
libvdpau_radeonsi
now all re-installed from openSUSE and locked. Now Wayland runs fine!
Should this have been caught by zypper when I did the dup?
Your locking of Mesa packages is no longer needed as openSUSE and packman already provided fixed packages.
If you lock packages you must be aware of such side effects. You need to know package dependencys or you will get version mismatches as you encountered. If you only lock a subset of packages you will run into issues. Mesa is a complex set of packages…it is hard to catch all of them if you want to lock them all.