I see three problems here: * To even run the testcases libsemanage needs dev-util/cunit-2.0 merged. * tests/Makefile refers to "../../libselinux/src/libselinux.a" and "../../libsepol/src/libsepol.a", two files it will not find. As the ebuild depends on those libs anyway, it maybe should use the ones provided by the dependecies? * Since it plays with static libraries it should add "-static" to LDFLAGS in the abow mentioned Makefile, else a hardened compiler tries to build it as PIE, failing. It also seems like the testcase does not error out even if it fails, but that is a diffrent story...
fixed in cvs. can't run tests in ebuild as they are meant to be run on the entire selinux userland repo, not individual parts