Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I'm making an ssh.com ebuild...but....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Wed Jun 25, 2003 10:53 pm    Post subject: I'm making an ssh.com ebuild...but.... Reply with quote

Like many other's I'm getting the access violation
I've traced it down to the makefile calling ssh-keygen which then tries to write to /root/.ssh2/random_seed
The man pages says that it does this based on $HOME/.ssh2/random_seed
The code doesn't quite do that... It's actually fairly smart. Resetting $HOME in the ebuild does not fool the program and it still tries to write to /root.
Needless to say portage says "Oh hell no" tosses an access violation and the install fails *sigh*
The next trick I guess I'd like to try is chroot the bastard, but I'm not sure if that will work correctly nor do I have an idea on how to do that in the first place.
Any suggestions?

Side note: I'm not entirely sure if ssh.com would allow an ebuild to be made so for now I'm just using it internally for their non-commercial license. Having an ebuild just makes my life as a sysadmin easier ^_~
I'll actually look into seeing if I could release it to the world after I get the darn thing working

Thanks in advance!

Petyr Rahl
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Thu Jun 26, 2003 2:11 am    Post subject: Re: I'm making an ssh.com ebuild...but.... Reply with quote

How about using sed to change the line in the Makefile?
Back to top
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Thu Jun 26, 2003 5:39 pm    Post subject: Reply with quote

I think I'm going to do that actually because there doesn't appear to be anyway that I can force ssh-keygen to play nice. Therefore I'll just add a line in there for a person to do
ebuild <package> configure (I think that's it... doing this off the top of my head ^^;;; )
Thanks for the tip =)

Petyr Rahl
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum