RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ CHANGES rpm/lib/ depends.c rpmns.c tpgp.c

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Sun 30 Dec 2007 - 18:25:12 CET
Message-ID: <20071230172512.GA32103@engelschall.com>
On Sun, Dec 30, 2007, Jeff Johnson wrote:

> On Dec 29, 2007, at 4:45 PM, Jeff Johnson wrote:
>>
>> (aside) Hmmm, perhaps enough time before rpm-5.0 to collect some
>> additional
>> keyring sources in rpmtsFindPubkey():
>>     1) drill a FTS file walk through /etc/pki/rpm-gpg
>>     2) slurp up ~/.gnupg/pubring.gpg
>> as I suggested privately a couple months back.
>
> The fts(3) implementation is a file tree walk lazily initialized on
> first call to rpmtsFindPubkey() using a path specified by a macro
> (with usual undef/%{nil} disabling) that does a per-file callback that
> attempts rpmReadPkts() which (if a pubkey is successfully read)
> loads the pubkey(s) into the keyutils cache. Reading a pubkey from
> a file is already commented out in rpmdb/pkgio.c.
>
> Ditto slurping pubring.gpg specified by macro path (with usual disablers),
> the only complexity is loop over the possibly multiple pubkey packets
> returned from pgpReadPkts() in the pgpDig structure before loading into
> keyutils cache.
>
> For extra credit I'm likely to loop over multiple fts(3) roots and
> pubring.gpg
> files.
>
> Hmm, actually the above implementations are actually identical, just loops
> within
> loops, not really different. One can walk a single file using fts(3) too.
>
> What say ye? Shall I chase these two issues for rpm-5.0 (or leave for
> rpm-5.1)?

I'm still busy in checking the signature(...) stuff (it fails for one
particular PGP key and I still do not understand it, will tell you more
if I'm unable to debug myself) -- so, CHASE IT FOR RPM 5.0 as I'll not
be able to roll 5.0b4 before Monday morning as it looks now...

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Sun Dec 30 18:26:01 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.