net-im/ejabberd depends on pam (if pam-useflag is set), but doesn't DEPEND/RDEPEND on it. At the moment the correct way to depend on pam is virtual/pam unless the package is linking to libpam_misc. If it's linking to libpam_misc (which is an extension to the original PAM specs), then sys-libs/pam should be used (as openpam doesn't provide it). Reproducible: Always Steps to Reproduce:
Thanks for the bug report. All ejabberd ebuilds now RDEPEND on virtual/pam if the pam use flag is set.