$ emerge -1 =net-misc/openssh-5.5_p1-r2 [...snip...] run test connect.sh ... /home/dan/.gentoo/var/empty must be owned by root and not group or world-writable. FATAL: sshd_proxy broken make[1]: *** [t-exec] Error 1 make[1]: Target `tests' not remade because of errors. make[1]: Leaving directory `/home/dan/.gentoo/var/tmp/portage/net-misc/openssh-5.5_p1-r2/work/openssh-5.5p1/regress' make: *** [tests] Error 2 * Passed tests: compat-tests * Skipped tests: * Failed tests: interop-tests tests * ERROR: net-misc/openssh-5.5_p1-r2 failed: * Some tests failed: interop-tests tests [...snip...] Can post more details if required. Am on x86, but I don't think that's relevant.
Looks like this message comes from sshd itself. See line 1669 of sshd.c: dan@gordo:~/.gentoo/var/tmp/portage/net-misc/openssh-5.5_p1-r2/work/openssh-5.5p1$ grep -FC7 "must be owned" sshd.c #ifdef HAVE_CYGWIN if (check_ntsec(_PATH_PRIVSEP_CHROOT_DIR) && (st.st_uid != getuid () || (st.st_mode & (S_IWGRP|S_IWOTH)) != 0)) #else if (st.st_uid != 0 || (st.st_mode & (S_IWGRP|S_IWOTH)) != 0) #endif fatal("%s must be owned by root and not group or " "world-writable.", _PATH_PRIVSEP_CHROOT_DIR); } if (test_flag > 1) { if (test_user != NULL && test_addr != NULL && test_host != NULL) parse_server_match_config(&options, test_user, test_host, test_addr); dan@gordo:~/.gentoo/var/tmp/portage/net-misc/openssh-5.5_p1-r2/work/openssh-5.5p1$
hmmm, yeah, but it is questionable if these tests can run when being non-root, isn't it?
I thought that (on regular Gentoo at least) with FEATURES=userpriv, configure & compilation & tests are run as portage:portage. But it makes sense that FEATURES=userpriv not be supported in prefix. Unfortunately I don't have a regular Gentoo box at hand just now to check which user runs these tests over there. Perhaps prefix should have RESTRICT=test for this ebuild.
I just disabled the tests for prefix, thanks