-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have generated some rpm's for the SuSE 9.0 release. However, I am having a
serious problem getting them to accept my gpg signatures.
Here's what i have got:
I altered /usr/lib/rpm/macros to utilize the following
%_signature gpg
%_gpg_name "Thomas Jones
-----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
" 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. 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! ;) Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAOPijQT2komo99ukRAnKfAKDW8AL4+1pWNVVAxayBHSCopTCm5wCg8mX6 ydTwXwADWQYEiZG6QHOHnl4= =6+IX -----END PGP SIGNATURE-----
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
" 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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 23 February 2004 00:53, Anders Johansson wrote: <snip>
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
" it will be sent to gpg as ""foo bar "" which it will error out on. put that in a howto
WHOA!!!! Sounds like somebody has been at their computer a little TOO long. Chill out, man!!! I just stated what I did. Obviously it worked; you see the output. If you are gonna fly of the handle about nothing...than don't reply. It's just that easy. And you wonder why people don't want to listen to various "troll's" here on the list?! Shhesshh!!! Have a good day! Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAOP7dQT2komo99ukRAsY4AJ0RJRe22iIzBytevHkNgYs3IzUqWQCggTMU pgSZFReLybE2bo8VqK4z1Nc= =1szs -----END PGP SIGNATURE-----
participants (2)
-
Anders Johansson
-
Thomas Jones