Because setting suid bit was followed by changing owner suid is reset.
Change the order of commands.
It is a small change so I assume it can be made in stable ebuild.
Rev-bump will come after more bug fixes.
Gentoo-Bug: 592218
Package-Manager: portage-2.3.0
newbin epam-wrapper epam
# PAM helper module permissions
# https://www.process-one.net/docs/ejabberd/guide_en.html#pam
- fperms 4750 "${epam_path}"
fowners root:jabber "${epam_path}"
+ fperms 4750 "${epam_path}"
fi
newconfd "${FILESDIR}/${PN}-3.confd" "${PN}"