Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280292 - net-misc/openssh-5.2_p1-r1 and p1-r2 banner test fail
Summary: net-misc/openssh-5.2_p1-r1 and p1-r2 banner test fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 309725 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-04 10:52 UTC by Attila Stehr
Modified: 2015-03-22 05:17 UTC (History)
2 users (show)

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


Attachments
log #1 (openssh-r1.log,7.59 KB, text/plain)
2009-08-04 10:53 UTC, Attila Stehr
Details
log #2 (openssh-r2.log,7.59 KB, text/plain)
2009-08-04 10:54 UTC, Attila Stehr
Details
emerge --info (emerge--info,3.13 KB, text/plain)
2009-08-04 10:55 UTC, Attila Stehr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Stehr 2009-08-04 10:52:46 UTC
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
Comment 1 Attila Stehr 2009-08-04 10:53:35 UTC
Created attachment 200130 [details]
log #1
Comment 2 Attila Stehr 2009-08-04 10:54:13 UTC
Created attachment 200132 [details]
log #2
Comment 3 Attila Stehr 2009-08-04 10:55:28 UTC
Created attachment 200133 [details]
emerge --info
Comment 4 SpanKY gentoo-dev 2009-08-23 10:07:09 UTC
maybe related to Bug 244222
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-11-11 12:21:13 UTC
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.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-11-11 12:28:40 UTC
Also, nb, my comments are for 5.3_p1-r1, but the problem appears the same.
Comment 7 Markus Lischka 2011-01-28 12:45:16 UTC
I was able to work around this problem (for openssh-5.6_p1-r2) by creating /root/.ssh manually, cf. bug #309725
Comment 8 SpanKY gentoo-dev 2015-03-22 05:15:26 UTC
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/
Comment 9 SpanKY gentoo-dev 2015-03-22 05:17:25 UTC
*** Bug 309725 has been marked as a duplicate of this bug. ***