Created attachment 517240 [details] build.log Trying to switch to the experimental 17.1 profile, at the last step (building /usr/lib32 /lib32), a bunch of packages including Mesa are failing for me. libva can't find libGL, and Mesa can't find libva, so it's an infinite loop. I'll now try building mesa with USE=-libva first so i can wrangle it to a saner state. Attached: output of emerge -av /usr/lib32 /lib32 (failing packages), emerge --info mesa, emerge -pqv mesa, build log.
Created attachment 517242 [details] emerge --info
Created attachment 517244 [details] emerge -pqv
Created attachment 517246 [details] emerge -av /lib32 /usr/lib32
Building mesa with USE=-libva, then building libva, and finally rebuilding mesa with USE=libva fixes this dependency. I think that the configure scripts should be adapted to search both old and new library locations (pre- and post-SYMLINK_LIB) so this doesn't happen.
(Sorry, that should be USE=[-]vaapi, not libva.)
I don't think it's tractable to solve this in the upstream projects' build systems.