>>> Preparing source in /var/tmp/portage/sys-cluster/pacemaker-1.1.14/work/pacemaker-Pacemaker-1.1.14 ... /var/tmp/portage/sys-cluster/pacemaker-1.1.14/temp/environment: line 3849: epatch_user: command not found That call in src_prepare should simply be removed. default_src_prepare in EAPI 6 calls eapply_user which already takes care of user patches. Please check if inherit eutils is at all necessary, on first glance I see nothing in the ebuild that would need it.
There is no more epatch_user in Git master: $ fgrep epatch *.ebuild <no output> Closing as obsolete.