The solution to my problem is to tell gpg which keyid to use. Of course, dpkg-buildpackage doesn't do that. Fix is attached. -- Joseph Carter <knghtbrd@debian.org> Debian GNU/Linux developer PGP: E8D68481E3A8BB77 8EE22996C9445FBE The Source Comes First! ------------------------------------------------------------------------- "Bruce McKinney, author of of Hardcore Visual Basic, has announced that he's fed up with VB and won't be writing a 3rd edition of his book. The best quote is at the end: 'I don't need a language designed by a focus group'."
--- /usr/bin/dpkg-buildpackage Mon May 31 15:31:29 1999 +++ dpkg-buildpackage Sun Jul 4 03:39:28 1999 @@ -14,6 +14,7 @@ Usage: dpkg-buildpackage [options] Options: -r<gain-root-command> -p<sign-command> + -k<keyid> the key to use for signing -sgpg the sign-command is called like GPG -spgp the sign-command is called like PGP -us unsigned source @@ -64,6 +65,7 @@ -h) usageversion; exit 0 ;; -r*) rootcommand="$value" ;; -p*) signcommand="$value"; warnpgp='' ;; + -k*) signkey="$value" ;; -sgpg) signinterface=gpg ;; -spgp) signinterface=pgp ;; -us) signsource=: ; warnpgp='' ;; @@ -121,11 +123,11 @@ # --textmode doesn't seem to work; we use perl to filter ^M; # this doesn't affect the actual signature. (cat "../$1" ; echo "") | \ - $signcommand --local-user "$maintainer" --clearsign --armor \ + $signcommand --local-user "${signkey:-$maintainer}" --clearsign --armor \ --textmode --output - - | \ perl -n -p -e 's/\r$//' > "../$1.asc" else - $signcommand -u "$maintainer" +clearsig=on -fast <"../$1" \ + $signcommand -u "${signkey:-$maintainer}" +clearsig=on -fast <"../$1" \ >"../$1.asc" fi echo
Attachment:
pgpRBpvR8gtsx.pgp
Description: PGP signature