Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57915 - ssh-3.2.9 fresh install causes access violation (/root/.ssh2)
Summary: ssh-3.2.9 fresh install causes access violation (/root/.ssh2)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 17:20 UTC by Paul Collins
Modified: 2004-09-17 16:15 UTC (History)
0 users

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


Attachments
ssh-3.2.9.1.ebuild (ssh-3.2.9.1.ebuild,1.27 KB, text/plain)
2004-07-22 10:04 UTC, Gustavo Felisberto (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Collins 2004-07-21 17:20:44 UTC
This ebuild is broken when the user is doing a fresh install of ssh, if however the user already has a install of ssh and is just doing an upgrade, then there is no problem. It seems the issue is tied to how the apps/ssh/Makefile is trying to do a ssh-keygen, which for some reason or another tries to write to /root/.ssh2 while creating the /etc/ssh2/hostkey
This problem does NOT manifest itself IFF the user already has an existing /etc/ssh2/hostkey{,.pub}

Possible solution to this would be force a dummy one to be created so the makefile doesn't cause portage to wig out, then in the init.d file, place some logic that checks for the files and copies / creates them if needed.

Reproducible: Always
Steps to Reproduce:
1. Delete /etc/ssh2 (or simply back it up somewhere else)
2. emerge ssh
watch it toss an access violation
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-22 10:04:05 UTC
Created attachment 35953 [details]
ssh-3.2.9.1.ebuild

Please try this, i dont like the addwrite but it is a quick fix.
Comment 2 Paul Collins 2004-07-26 10:44:17 UTC
Sorry for the delay. That does appear to fix it on my box, however I do agree with you about the addwrite. Foro now I'd say this is a valid fix, but I'll probably go back and hack up a different solution in the next couple days so we can avoid the addwrite command in there.

Regards,

Paul
Comment 3 Gustavo Felisberto (RETIRED) gentoo-dev 2004-09-17 16:15:54 UTC
I tried some other hacks and did not like them. This does not seem that "hardcore" to me so will leave it there.