Please apply Index: xkaapi-2.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sci-libs/xkaapi/xkaapi-2.1.ebuild,v retrieving revision 1.1 diff -u -B -b -u -p -r1.1 xkaapi-2.1.ebuild --- xkaapi-2.1.ebuild 28 Jan 2014 12:47:39 -0000 1.1 +++ xkaapi-2.1.ebuild 28 Jan 2014 12:58:58 -0000 @@ -57,7 +57,7 @@ src_configure() { autotools-utils_src_configure } -src_test() { +_src_test() { cd "${BUILD_DIR}" || die emake check } And test run the test. It doesn't work although the defined src_test() basically reassembles what the eclass does. Ithink there is a bug somewhere in the eclass code
There's a problem with: make -n check "${@}" &>/dev/null in eclass src_test For some reasons, make check fails in 'dry run' mode. Sounds like a 'make' bug to me. We can work it around with -i parameter (will ignore recipe error and yet properly fail when target 'check' is not supported, still it should _not_ be necessary in dry-run mode) @Michał I'm going to commit the following: Index: autotools-utils.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v retrieving revision 1.73 diff -u -B -r1.73 autotools-utils.eclass --- autotools-utils.eclass 11 Mar 2014 23:55:44 -0000 1.73 +++ autotools-utils.eclass 31 Jul 2014 23:18:02 -0000 @@ -468,9 +468,9 @@ _check_build_dir pushd "${BUILD_DIR}" > /dev/null || die - if make -n check "${@}" &>/dev/null; then + if make -ni check "${@}" &>/dev/null; then emake check "${@}" || die 'emake check failed.' - elif make -n test "${@}" &>/dev/null; then + elif make -ni test "${@}" &>/dev/null; then emake test "${@}" || die 'emake test failed.' fi
" -n, --just-print, --dry-run, --recon Print the commands that would be executed, but do not execute them (except in certain circumstances)." We are hitting those "certain circumstances" it seems. Commiting then.
Also commited: @@ -56,8 +56,3 @@ ) autotools-utils_src_configure } - -src_test() { - cd "${BUILD_DIR}" || die - emake check -}
I'd dare say it's worth reporting to PMS.