Just a quick for an ebuild patch. When you try to compile mesa on a brandy-new system, without some other package calling it, mesa tries to compile and breaks becasue it can't find several header files, including libxdamage.h Building libXdamage resolves the issue.
Created attachment 119376 [details] My complete build log
Committed, thanks!