the current apache-module_src_install func changes the working dir which makes it messy for packages that use it simple fix: in apache-module_src_install, change: - cd "${CD_DIR}" || die "cd ${CD_DIR} failed" + pushd "${CD_DIR}" >/dev/null || die "cd ${CD_DIR} failed" and at the end of the func add: popd >/dev/null
http://sources.gentoo.org/eclass/apache-module.eclass?r1=1.25&r2=1.26