Hi, Here's a not-so-quick batch of patches that adjust DISTDIR shadow dir handling to be alike the new handling of FILESDIR (and needs to be applied on top of that).
The idea is that DISTDIR has a consistent value throughout all the phases (as required by the PMS) and references the shadow directory. The directory itself is not created until src_unpack, so mistaken accesses in earlier phases are caught early. The accesses in pkg_pre/post phases are not caught yet. As usual, this patch can be applied after reasonable set of blockers in ::gentoo is resolved. -- Best regards, Michał Górny