The actual ejabberd ebuilds create the mod_statsdx files into the ${WORKDIR}/${P}/src/b/src directory, because the S variabile is altered. Thus they will be ignored, mod_statsdx module will not be built. Just adding the following variable to the ebuild will solve the issue: EPATCH_OPTS="-p 2" Reproducible: Always Steps to Reproduce: 1. # USE="mod_statsdx" emerge ejabberd 2. Enable the mod_statsdx module in the /etc/jabber/ejabberd.cfg: {modules, [ ... {mod_statsdx, []} ]}. 3. /etc/init.d/ejabberd start Actual Results: The server will fail to start with the following message: C(<0.38.0>:gen_mod:75) : Problem starting the module mod_statsdx for host ... Expected Results: The server should start. Add the EPATCH_OPTS="-p 2" variable to each ejabberd ebuild.
Fixed in CVS.