monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Problem with 'monotone genkey <ID>'... newbie?


From: Will Robertson
Subject: [Monotone-devel] Problem with 'monotone genkey <ID>'... newbie?
Date: Sat, 13 Dec 2003 22:37:22 +0000

Hi there,
I am new to monotone. I've been a very keen user of Tom Lord's arch/ tla -- and I still think it's the current pretender to CVS' throne -- but I'm very, very interested by the extreme disconnectedness of Monotone's repository/patch structure, and the way version control is
by a SHA1 instead of explicit version-numbers.  As far as straight
source-control goes, it's probably overkill, but when you start using
it for other things, such as version control of system-configs, or
version-controlling master email spools, say guaranteeing email-spools
for legal reasons, these things become increbibly attractive.
 Which is are my main reasons for wanting to try it out seriously.

 Anyway, I'm having a strange problem with it on Gentoo Linux.
 I have compiled it against Boost 1.30.2 successfully using a default
config, and been able to successfully 'db init', but 'genkey' against
this init'd db appears to hang:

$ monotone --verbose --db=~/dev/VC/MT/ruby.db genkey 'address@hidden com'
monotone: opening rcfile '/home/wildjim/.monotonerc' ... monotone: ok
monotone: executing genkey command
monotone: db.execute("BEGIN")
monotone: db.fetch("SELECT id FROM public_keys WHERE id = 'address@hidden'") monotone: db.fetch("SELECT id FROM private_keys WHERE id = 'address@hidden'")
monotone: generating key-pair 'address@hidden'



 An strace shows this appears to happen straight after closing
/dev/urandom, so I tried adding the following to my .monotonerc:

function non_blocking_rng_ok()
 return false
end

 to make it use /dev/random instead of /dev/urandom, but it still
hangs after several reads:

...
open("/dev/urandom", O_RDONLY)          = 7
read(7, "\341\371\233\214\213C\313\344\350\33\235D \327\233\202"..., 32) = 32
close(7)                                = 0
brk(0x8487000)                          = 0x8487000

 or:
...
open("/dev/random", O_RDONLY)           = 7
read(7, "&\345\255\250\237$\247\271\264\10F\276o\20\313\5\321M\242"..., 32) = 32
close(7)                                = 0
brk(0x8487000)                          = 0x8487000

 I've also checked that $USER and $HOSTNAME are set, as per problems
on a Debian install.  Has anyone any ideas?

--
Will


PS I also want to compile this on Solaris (2.7 -> 2.9) and SunOS (if it'll work) but I'm having problems getting Boost to compile the test- suite...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]