This package is missing a dependency for the test phase. $ ebuild imv-2.1.0.ebuild clean cleanrm test Appending /home/gokturk/stuff/gentoo to PORTDIR_OVERLAY... Forcing test. * imv-2.1.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking imv-2.1.0.tar.gz to /var/tmp/portage/media-gfx/imv-2.1.0/work >>> Source unpacked in /var/tmp/portage/media-gfx/imv-2.1.0/work >>> Preparing source in /var/tmp/portage/media-gfx/imv-2.1.0/work/imv-2.1.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-gfx/imv-2.1.0/work/imv-2.1.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/media-gfx/imv-2.1.0/work/imv-2.1.0 ... make -j2 COMPILING build/texture.o COMPILING build/loader.o COMPILING build/viewport.o COMPILING build/main.o COMPILING build/util.o COMPILING build/navigator.o LINKING build/imv >>> Source compiled. >>> Test phase: media-gfx/imv-2.1.0 make -j2 check BUILDING build/test_loader BUILDING build/test_navigator test/loader.c:4:20: fatal error: cmocka.h: No such file or directory #include <cmocka.h> ^ compilation terminated. test/navigator.c:7:20: fatal error: cmocka.h: No such file or directory #include <cmocka.h> ^ compilation terminated. Makefile:50: recipe for target 'build/test_navigator' failed make: *** [build/test_navigator] Error 1 make: *** Waiting for unfinished jobs.... Makefile:50: recipe for target 'build/test_loader' failed make: *** [build/test_loader] Error 1
While I can replicate this, the point is that the test phase was never made part of the ebuild. Wherever the test run is being directed from, it is not in a test phase in the ebuild. Granted, one could be added.
(In reply to Ian Delaney from comment #1) > While I can replicate this, the point is that the test phase was never made > part of the ebuild. Wherever the test run is being directed from, it is not > in a test phase in the ebuild. Granted, one could be added. Per PMS [0]: """" The default implementation used when the ebuild lacks the src_test function must, if tests are enabled, run emake check if and only if such a target is available, or if not run emake test if and only if such a target is available. [...snip...] The src_test function may be disabled by RESTRICT. """ In this case, there is a 'check' target available and the default implementation is calling that. If tests are not to be utilized, I think they should be disabled with RESTRICT. [0] https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-1030009.1.8
Fixed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e518dbaccab4c4a8148993acf525e46e730dea