[darcs-users] Re: darcs and GnuPG

Nimrod Abing nimrod_layer6 at yahoo.com
Fri Dec 10 04:09:50 UTC 2004


Replying to myself...

I have managed to build darcs-1.0.1pre1 on SuSE Linux
9.1 after hours
of trial and error and the issue I mention below seems
to still be
present.

Anyone here using SuSE Linux 9.1? Here are the RPMS
which I built:

http://sti-capiz.dyndns.info/~nimrod/files/RPMS/SuSE-9.1/darcs-1.0.1pre1-1.i586.rpm
http://sti-capiz.dyndns.info/~nimrod/files/RPMS/SuSE-9.1/darcs-server-1.0.1pre1-1.i586.rpm

If you want to build the RPMs yourself, you can find
the RPM spec file
I used here:

http://sti-capiz.dyndns.info/~nimrod/files/RPMS/SuSE-9.1/darcs.spec

Here are further details:
[--
nimrod at midway:~/trees/tests/sample2> darcs send --sign
Creating patch to ../sample...
Sending by email to Sample
<nimrod at sti-capiz.dyndns.info>

Fri Dec 10 11:14:30 PHT 2004  nimrod.abing at gmail.com
 * test3
Shall I send this patch? (1/1) [ynWvxqadjk], or ? for
help: y

You need a passphrase to unlock the secret key for
user: "Nimrod A. Abing (Office)
<nimrod at sti-capiz.dyndns.info>"
1024-bit DSA key, ID F1FC17FA, created 2004-12-08

darcs failed:  Error running external program 'gpg'
--]
As can be plainly seen, darcs is able to run gpg since
it has asked me
for my passphrase. But then for some unknown reason,
it fails with the
above error. I did this several times, even signing
something else
with gpg to be sure there is nothing wrong with my gpg
setup. Note
that darcs send only fails if the gpg key is
passphrase protected. But
if you remove the passphrase...
[--
nimrod at midway:~/trees/tests/sample2> darcs send --sign
Creating patch to ../sample...
Sending by email to Sample
<nimrod at sti-capiz.dyndns.info>

Fri Dec 10 11:14:30 PHT 2004  nimrod.abing at gmail.com
 * test3
Shall I send this patch? (1/1) [ynWvxqadjk], or ? for
help: a
Successfully sent patch bundle to Sample
<nimrod at sti-capiz.dyndns.info>.
--]
Someone please clarify on whether or not this is a
known issue, my gpg
key is open without a passphrase and the private key
is stored on a
machine shared with other co-workers. If this is a
known issue and no
workarounds are present, then I would have to create a
separate key
for signing patches.
- Show quoted text -

On Thu, 9 Dec 2004 11:03:48 +0800, Nimrod A. Abing
<nimrod.abing at gmail.com> wrote:
> Hello,
>
> I was trying out the method for using darcs to
automatically apply a
> patch sent via email if it is signed with the
correct gpg key. For
> reference I used this:
>
>
http://www.darcs.net/manual/node4.html#SECTION00455000000000000000
>
> And more or less followed the steps outlined there.
I already have an
> existing gnupg setup and I have been using it for a
while now so I
> know gpg is not the culprit here. The problem is
that darcs dies with
> an error message saying there was an error running
gpg. But it does
> run gpg because it prompts me for my passphrase, it
is after I enter
> my passphrase that darcs fails. I even tried
changing my passphrase to
> a single character, but still the error was there.
Before deciding to
> give up, I decided to remove the gpg key passphrase,
tried `darcs
> send' again and it worked! But now my gpg key does
not have a
> passphrase :(
>
> Is this a known issue?
>
> My setup:
>
> OS: SuSE Linux Professional 9.1
> darcs: version 1.0.0 grabbed from
> http://www.carpetcode.org/get-carpet-darcs.html
> gpg: GnuPG 1.2.4
>
> I use a prebuilt binary from carpetcode which is
only available for
> 1.0.0 version because there seem to be no RPMS for
ghc prebuild for
> SuSE 9.1.
> --
> _nimrod_a_abing_
>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the darcs-users mailing list