The test phase expects the package to be already installed. First it cannot find `fishd' but even with a corrected PATH variable it fails later on. I propose the following patch (but I am not sure whether all this is legal): Index: fish-1.23.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-shells/fish/fish-1.23.1.ebuild,v retrieving revision 1.2 diff -u -B -r1.2 fish-1.23.1.ebuild --- fish-1.23.1.ebuild 18 Apr 2010 12:58:23 -0000 1.2 +++ fish-1.23.1.ebuild 13 May 2010 17:38:35 -0000 @@ -44,6 +44,14 @@ --bindir="${EPREFIX}"/bin } +src_test() { + if has_version app-shells/fish ${PV}; then + emake test || die "emake test failed" + else + ewarn "The test suite only works when the package is already installed" + fi +} + src_install() { emake DESTDIR="${D}" install || die "make install failed" }
Created attachment 231341 [details] app-shells-fish-1.23.1:20100513-154414.log [not installed, fails tests]
Created attachment 231343 [details] app-shells-fish-1.23.1:20100513-170146.log [installed, succeeds]
Um, i think the general intentions is to actually test the to-be-installed blob, not the to-be-replaced installed version.
If it's the only way, then why not? media-gfx/imagemagick and probably other packages do this.
+ 11 Feb 2014; Lars Wendler <polynomial-c@gentoo.org> fish-2.1.0-r2.ebuild: + Tests only work when the package is already installed (bug #319571). +