Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335343 - net-misc/openssh-5.5_p1-r2 fails tests on prefix
Summary: net-misc/openssh-5.5_p1-r2 fails tests on prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 00:44 UTC by Dan Wallis
Modified: 2010-09-02 18:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Wallis 2010-08-31 00:44:56 UTC
$ 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.
Comment 1 Dan Wallis 2010-08-31 00:53:01 UTC
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$ 
Comment 2 Fabian Groffen gentoo-dev 2010-08-31 06:40:07 UTC
hmmm, yeah, but it is questionable if these tests can run when being non-root, isn't it?
Comment 3 Dan Wallis 2010-08-31 21:56:51 UTC
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.
Comment 4 Fabian Groffen gentoo-dev 2010-09-02 18:55:31 UTC
I just disabled the tests for prefix, thanks