In fact the libXdamage dep should be added to gtk3, which firefox in turn depends on - adjusted now
Thanks Juanito!
The llvm dep could be eliminated if software 3d acceleration were to be dropped - i.e. only have hardware 3d acceleration.
I'm not actually using hardware 3D acceleration on any of my TC installs. The libGL (libEGL, libGLESv2) deps are pulled in by extensions like librsvg.tcz, freeglut.tcz, and libva2.tcz even though I'm not using any 3D graphics, and often running Xvesa which doesn't support GLX so Mesa is useless anyway. Firefox (from firefox_getLatest.sh) actually works without any of the Mesa deps installed as well.
What I really want is a sort of dummy Mesa build that doesn't really need to do anything, but satisfies the deps for unavoidable (for me) graphical extensions like gtk2.tcz and jwm.tcz (also FFmpeg). I thought I might make substitute extensions to work without libgallium, which seems to be the key part requiring llvm19-lib.tcz. I found reference to "Stand-alone Mesa"
in their FAQ which sounds hopeful but I'm not sure how you build that (I found
your build notes but I can't find any more about "Stand-alone Mesa" in their docs to know what to change (maybe you just disable all drivers?)).