[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using git-buildpackage --git-keyid

I think the --git-keyid is used only for tagging of the git repository. The 
error message comes from debsign, which doesn't know that you're building from 
a GIT repo.
debsign needs a gpg key to sign the package and tries to get the key of the 
uploader, mentioned in the most recent debian/changelog line.
You can however also give a gpg id to debsign: man debsign

Options for debsign could be given to git-buildpackage and should be 
propagated down the line.

> Hi there,
>   I am trying to use git-buildpackage, but I cannot understand how I
> am supposed to pass my gpg keyid. Steps:
> $ svn co
> https://gdcm.svn.sourceforge.net/svnroot/gdcm/Sandbox/debian-med/cdash $ cd
> cdash
> $ svn-buildpackage --svn-override=origDir=.. --svn-ignore-new
> -rfakeroot -k0EA23F2B
> ...
> dpkg-buildpackage: full upload (original source is included)
> build command was successful; binaries are in
> /home/mathieu/Perso/gdcm/Sandbox/debian-med/build-area/. The changes
> file is:
> /home/mathieu/Perso/gdcm/Sandbox/debian-med/build-area/cdash_1.4.2-1_amd64.
>changes Binary package:
> /home/mathieu/Perso/gdcm/Sandbox/debian-med/build-area/cdash_1.4.2-1_all.de
>b rm -rf /home/mathieu/Perso/gdcm/Sandbox/debian-med/build-area/cdash-1.4.2
> I then use the generated .dsc file to build up a git rep (*)
> $ git-buildpackage  --git-keyid=0x0EA23F2B  --git-tag
> ...
> Finished running lintian.
> Now signing changes and any dsc files...
>  signfile cdash_1.4.2-1.dsc Mathieu Malaterre <mathieu.malaterre@gmail.com>
> gpg: skipped "Mathieu Malaterre <mathieu.malaterre@gmail.com>": secret
> key not available
> gpg: /tmp/debsign.FCRVdJdL/cdash_1.4.2-1.dsc: clearsign failed: secret
> key not available
> debsign: gpg error occurred!  Aborting....
> debuild: fatal error at line 1245:
> running debsign failed
> debuild -i\.git/ -I.git returned 29
> Couldn't run 'debuild -i\.git/ -I.git'
> My GPG key is actually Mathieu Malaterre (malat)
> <mathieu.malaterre@gmail.com>, so string matching does not work, but
> in my case I explicitely state which GPG key id to use.
> What am I missing ?
> Thanks,
> --
> Mathieu
> (*)http://wiki.debian.org/PackagingWithGit
Thomas Koch, http://www.koch.ro

Reply to: