Mailinglist Archive: opensuse (3863 mails)
| < Previous | Next > |
Re: [SLE] GPG signing SuSE rpm's [SOLVED]
- From: Anders Johansson <andjoh@xxxxxxxxxx>
- Date: Mon, 23 Feb 2004 07:53:48 +0100
- Message-id: <1077519227.27621.11.camel@xxxxxxxxxxxxxxxxx>
On Sun, 2004-02-22 at 12:44 -0600, Thomas Jones wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday 23 February 2004 00:25, Anders Johansson wrote:
> > On Sun, 2004-02-22 at 12:05 -0600, Thomas Jones wrote:
> > > %_gpg_name "Thomas Jones <thomas.jones@xxxxxxxxxxxxxxxx>"
> >
> > Remove the " marks
>
> I just got it to work! This is what i did. I assumed that because i was
> building as root that maybe it was querying /root/.gnupg for my key as well.
Well obviously, you had ~ in the macro
>
> So I copied the rpm to my $HOME. Then generated my own .rpmmacros file. All I
> put in it was _gpg_name, and _gpg_path. If you put in _signature etc....it
> will error out. Just utilize those two parameters.
>
> Next you can issue the command:
> rpm --resign (rpm-name).rpm
>
> And all should be good!!!!!!!!!!
>
> thomas@suse:~> rpm -vv -K osirismd-3.0.4-current.i586.rpm
> D: Expected size: 1168784 = lead(96)+sigs(180)+pad(4)+data(1168504)
> D: Actual size: 1168784
> osirismd-3.0.4-current.i586.rpm:
> Header SHA1 digest: OK (f297c97912e728ef0aa2ee79f0bf406778d280af)
> MD5 digest: OK (dd5b4992a21eb4ec74a7b84963ffb08f)
> thomas@suse:~>
>
> The quotes don't seem to be a problem; as I have them in my files. Thanks for
> your help though, Anders!
Believe what you want. I have %_signature set, it works without ", but
not with " in the gpg_name, and I'll tell you why
In suse's default /usr/lib/rpm/macros they use -u "${_gpg_name}". In
other words, they have a " in the command. So if You have a gpg_name
"foo bar <baz@com>" it will be sent to gpg as ""foo bar <baz@com>""
which it will error out on.
put that in a howto
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday 23 February 2004 00:25, Anders Johansson wrote:
> > On Sun, 2004-02-22 at 12:05 -0600, Thomas Jones wrote:
> > > %_gpg_name "Thomas Jones <thomas.jones@xxxxxxxxxxxxxxxx>"
> >
> > Remove the " marks
>
> I just got it to work! This is what i did. I assumed that because i was
> building as root that maybe it was querying /root/.gnupg for my key as well.
Well obviously, you had ~ in the macro
>
> So I copied the rpm to my $HOME. Then generated my own .rpmmacros file. All I
> put in it was _gpg_name, and _gpg_path. If you put in _signature etc....it
> will error out. Just utilize those two parameters.
>
> Next you can issue the command:
> rpm --resign (rpm-name).rpm
>
> And all should be good!!!!!!!!!!
>
> thomas@suse:~> rpm -vv -K osirismd-3.0.4-current.i586.rpm
> D: Expected size: 1168784 = lead(96)+sigs(180)+pad(4)+data(1168504)
> D: Actual size: 1168784
> osirismd-3.0.4-current.i586.rpm:
> Header SHA1 digest: OK (f297c97912e728ef0aa2ee79f0bf406778d280af)
> MD5 digest: OK (dd5b4992a21eb4ec74a7b84963ffb08f)
> thomas@suse:~>
>
> The quotes don't seem to be a problem; as I have them in my files. Thanks for
> your help though, Anders!
Believe what you want. I have %_signature set, it works without ", but
not with " in the gpg_name, and I'll tell you why
In suse's default /usr/lib/rpm/macros they use -u "${_gpg_name}". In
other words, they have a " in the command. So if You have a gpg_name
"foo bar <baz@com>" it will be sent to gpg as ""foo bar <baz@com>""
which it will error out on.
put that in a howto
| < Previous | Next > |