Having epatch_user after multilib_copy_sources results in whatever patches the user wanted to apply, gets applied, but in the source tree that the compilation is not going to be in. Reproducible: Always Steps to Reproduce: 1. add a patch in /etc/portage/patches/sys-auth/sssd 2. emerge sssd 3. Actual Results: Whatever user-supplied patch is applied in a source directory that isn't compiled in, thus the effect of the users patch is void to the compiled binary. Expected Results: The user-supplied patch is applied in the directory that is compiled and thus be able to affect the compiled binary. Just moving epatch_user to before multilib_copy_sources fixes the problem.
Created attachment 441552 [details] Move epatch_user to before multilib_copy_sources
with no-op src_prepare the bug does not make sense anymore