test named "banner" fails Maybe because of "Could not create directory '/root/.ssh'" output: "missing banner file" ... "banner size 0 mismatch" Reproducible: Always Steps to Reproduce: 1.FEATURES="test" USE="hpn pam X" emerge --oneshot -v openssh 2. 3. Actual Results: test "banner" fails Expected Results: all tests pass
Created attachment 200130 [details] log #1
Created attachment 200132 [details] log #2
Created attachment 200133 [details] emerge --info
maybe related to Bug 244222
Encountered this bug upgrading a clean install from amd64 to ~amd64. Its entirely likely data is already sufficient for diagnosis, so I won't clutter it up with extra attachments, however, if you want a peek, http://gist.github.com/231886 contains full copies of emerge --info / -pvq , environment and build.log Based on what I've read of the code however, this is where the problem lies: trace "test missing banner file" verbose "test $tid: missing banner file" ( ${SSH} -2 -F $OBJ/ssh_proxy otherhost true 2>$OBJ/banner.out && \ cmp $OBJ/empty.in $OBJ/banner.out ) || \ fail "missing banner file" However, it doesn't appear to be a problem with the banner itself, more the ssh_proxy call might be failing. chdir'ing into the code and running "make tests" as a privileged user results in the tests passing. test remote exit status: proto 2 status 5 test remote exit status: proto 2 status 44 ok remote exit status run test envpass.sh ... test environment passing: pass env, don't accept test environment passing: don't pass env, accept test environment passing: pass single env, accept single env test environment passing: pass multiple env, accept multiple env ok environment passing run test transfer.sh ... transfer data: proto 1 transfer data: proto 2 ok transfer data run test banner.sh ... test banner: missing banner file test banner: size 0 test banner: size 10 test banner: size 100 test banner: size 1000 test banner: size 10000 test banner: size 100000 test banner: suppress banner (-q) ok banner run test rekey.sh ... ok rekey during transfer data run test stderr-data.sh ... Hope this helps.
Also, nb, my comments are for 5.3_p1-r1, but the problem appears the same.
I was able to work around this problem (for openssh-5.6_p1-r2) by creating /root/.ssh manually, cf. bug #309725
Robin fixed this starting in 5.9_p1-r1: http://sources.gentoo.org/net-misc/openssh/openssh-5.9_p1-r1.ebuild?revision=1.1 # It will also attempt to write to the homedir .ssh local oldhome=$HOMEDIR export HOMEDIR="${T}/homedir" mkdir -pv $HOMEDIR/.ssh/
*** Bug 309725 has been marked as a duplicate of this bug. ***