I started thinking a lot about usefulness of use_system_mesa=1 gyp option.
Note that it's not about annoying bugs, but whether this makes sense at all. While use_system_mesa=1 makes the build system use system headers, dlopen is still used, and it can load either libGL.so, or libGLESv2.so, or libEGL.so. There are a lot of assumptions about function signatures in the Chromium mesa bindings anyway, so I'm not sure how much trying to use system headers actually helps. :-/
You can see the following chromium-dev threads for some context:
I'm looking for feedback whether this has any chance of being useful (at this point I probably wouldn't have cycles to work on it though), or a confirmation that it doesn't make sense.
My current plan is to start removing support for this build option.
Paweł