The attached patch adds support in eutils.eclass for cross-helper utility (bug# 302570) so enewuser and enewgroup will work properly during cross-compilation on a native system. egetent will check for the existence of cross-helper and if found use a grep statement, or else it will default to getent. enewuser and enewgroup existence will check for the existence of cross-helper and use it. Or it will emit an ewarn/ebeep message and proceed as usual. I assumed I needed to file this in two bugs, thoough they are related, so please reference the bug# above. Reproducible: Always
Created attachment 217697 [details, diff] patch for eutils.eclass
this isnt a cross-compiling specific issue. any emerge where ROOT!=/ is a problem. same answer as the referenced bug -- enhance shadow.