Hey, filing this after our IRC discussion about the subject. Our meson.eclass sets: --localstatedir "${EPREFIX}/var/lib" but upstream default sets it to /var. Upstream default path for sharedstatedir is /var/lib but we have not defined this at all. I believe our eclass is wrong, which gives us issues like bug #878603 and makes us fix the paths locally in ebuilds by defining --localstatedir. I feel like this should be fixed in the eclass, but points were raised that a fix now would perhaps break stuff more than fix stuff. I would suggest to get a tinderbox run with an updated eclass going for meson packages, but the linked bug was visible only in runtime. Opening this bug for awareness.
I would be open to fixing this in the eclass, but it would definitely at least require a tinderbox run and maybe testing after the fact.
I think it would be safer to do this with an EAPI bump. I also filed a PMS bug to see if we can fix the econf behavior this is modeled upon.