Thanks, neko. I followed exactly this approach, so your module, like mine, is a copy from Arch's Mesa build.

But after figuring out wayland missing lib, I'm facing now an error when trying to execute any OpenGL app (libGL error: unable to load driver: i965_dri.so). However using the old libGL together with the new /usr/lib64/xorg/modules/dri/i965_dri.so it works flawlessly and glxinfo tells me that I'm currently using Mesa 17.0.1. So maybe libGL is just a collection of OpenGL extensions pointing to the real drivers found inside /usr/lib64/xorg/modules/dri/

Reason i ask is because when i was playing about with Slackware Nvidia drivers from USM it also installed a extra Wayland package so there is one for Slackware if you want to try it to see if it makes any difference.

@fulalas
I guess that the library missing problem was caused from directory array difference.
/usr/lib64, /lib64 are assigned to /usr/lib in Arch.
Therefore there is a possility that setting symbolic link as following may avoid this issue.

neko wrote:I guess that the library missing problem was caused from directory array difference.
/usr/lib64, /lib64 are assigned to /usr/lib in Arch.
Therefore there is a possility that setting symbolic link as following may avoid this issue.