You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2017/07/02 04:36:17 UTC
How to update tools/dist/security/_gnupg.py?
_gnupg.py is used by release.py and by advisory.py (the confidential pre-notification script).
I'm getting an error from it:
[[[
$ python2 tools/dist/release.py check-sigs --target=wc-of-dist 1.9.6
INFO:root:Checking 3 sig(s) in ./subversion-1.9.6.tar.bz2.asc
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/daniel/in/svn/t1/tools/dist/security/_gnupg.py", line 770, in _read_response
result.handle_status(keyword, value)
File "/home/daniel/in/svn/t1/tools/dist/security/_gnupg.py", line 292, in handle_status
raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: u'KEY_CONSIDERED'
BAD SIGNATURE for ./subversion-1.9.6.tar.bz2.asc
]]]
That error is from tools/dist/security/_gnupg.py. The error disappears when
I install that module via my OS packages, so I assume we should update our
import. How do we do that? I couldn't find any instructions, and the top
comments don't identify the homepage, so I'm not sure where the *canonical*
upstream is. (As opposed to possible forks)
Cheers,
Daniel
P.S. Incidentally, my OS packages also report that the module depends on the
deprecated gpg1 packages, so in the long term either the module will convert
to gpg2 or we'll have to switch to another module....
Re: How to update tools/dist/security/_gnupg.py?
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Philip Martin wrote on Mon, 10 Jul 2017 14:06 +0100:
> Branko Čibej <br...@apache.org> writes:
>
> > It works fine for me, and I only have a 'gpg' binary which is 'gpg2'.
> > The only issue is that 'release.py check-sigs' gets confused when a new
> > key is imported from the keyserver, and bails out; a second run, when
> > the key is already in my keyring, works fine.
>
> I get the same error as Daniel but an update to 0.4.1 from
> https://bitbucket.org/vinay.sajip/python-gnupg (the site mentioned in
> r1719107) makes things work. My system has gpg 2.1.18 as the only gpg
> installed.
In r1801492 you updated _gnupg.py to 0.4.1.
That seems to have fixed my problems. Before that revision, I was using
0.3.9 via OS packages, and with that set up, 'check-sigs' would only look
for public keys in gpg1 keyring files, not in gpg2 keybox files. I've
updated to r1801492 and removed the 0.3.9 OS version and the gpg1 binary
which was installed along with it, and now get-keys/check-sigs works.
Thanks!
Re: How to update tools/dist/security/_gnupg.py?
Posted by Philip Martin <ph...@codematters.co.uk>.
Branko Čibej <br...@apache.org> writes:
> It works fine for me, and I only have a 'gpg' binary which is 'gpg2'.
> The only issue is that 'release.py check-sigs' gets confused when a new
> key is imported from the keyserver, and bails out; a second run, when
> the key is already in my keyring, works fine.
I get the same error as Daniel but an update to 0.4.1 from
https://bitbucket.org/vinay.sajip/python-gnupg (the site mentioned in
r1719107) makes things work. My system has gpg 2.1.18 as the only gpg
installed.
--
Philip
Re: How to update tools/dist/security/_gnupg.py?
Posted by Branko Čibej <br...@apache.org>.
On 10.07.2017 12:37, Daniel Shahaf wrote:
> Daniel Shahaf wrote on Sun, 02 Jul 2017 04:36 +0000:
>> That error is from tools/dist/security/_gnupg.py. The error disappears when
>> I install that module via my OS packages, so I assume we should update our
>> import.
> Another issue: gnupg.py seems to only use gpg1 keyring files, so after running
> 'release.py get-keys' which populated a gpg2 keybox file in ~/.gnupg/, I had to
> run 'gpg2 --export | gpg1 --import' in order for 'release.py check-sigs' to work.
>
> This is a bit too fragile to my liking: it would be good for release.py to not need
> both gpg1 and gpg2 to be available and configured.
>
> I think release.py would Just Work if the 'gpg' binary in $PATH were a gpg1
> binary, but on my system that 'gpg' binary is gpg2.
It works fine for me, and I only have a 'gpg' binary which is 'gpg2'.
The only issue is that 'release.py check-sigs' gets confused when a new
key is imported from the keyserver, and bails out; a second run, when
the key is already in my keyring, works fine.
-- Brane
Re: How to update tools/dist/security/_gnupg.py?
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Daniel Shahaf wrote on Sun, 02 Jul 2017 04:36 +0000:
> That error is from tools/dist/security/_gnupg.py. The error disappears when
> I install that module via my OS packages, so I assume we should update our
> import.
Another issue: gnupg.py seems to only use gpg1 keyring files, so after running
'release.py get-keys' which populated a gpg2 keybox file in ~/.gnupg/, I had to
run 'gpg2 --export | gpg1 --import' in order for 'release.py check-sigs' to work.
This is a bit too fragile to my liking: it would be good for release.py to not need
both gpg1 and gpg2 to be available and configured.
I think release.py would Just Work if the 'gpg' binary in $PATH were a gpg1
binary, but on my system that 'gpg' binary is gpg2.
Cheers,
Daniel