According to PMS, DISTDIR is not legal in pkg_* phases: https://projects.gentoo.org/pms/6/pms.html#x1-11800011.1 Furthermore, it is not guaranteed to point to the original DISTDIR which is assigned in make.conf, but the package manager can use a temporary "shadow" directory instead. (The latter becomes important for ebuilds using a path in DISTDIR to assign the PATCHES variable in global scope, in order to use default_src_prepare patching in EAPI 6.)