Unlike epatch_user, the eapply_user implementation added in f188c989317a58ffc54cc0c022c728c100de9000 applies patches from multiple directories. Also, it applies more-specific patches before less-specific patches. In order to enhance the existing behavior, it would make sense to: * create a combined list of patches from all matched directories, and apply them all using the sorted order of basenames of the patches * allow more-specific directories to override or mask patches from less-specific directories (patches would be masked by creating a symlink to /dev/null, having the same basename as the matched patch) These enhancements would allow more control, while keeping the behavior roughly compatible with the existing behavior.
Patch posted for review: https://archives.gentoo.org/gentoo-portage-dev/message/1bfdbe198248c62949e90a21b80f102c https://github.com/gentoo/portage/pull/186
This is in the master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=7d2c4fb609454b76d30c42fc7a0bb720decc39a3