Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462362 - Repoman does not honors the PORTAGE_GPG_DIR when it signs the commit for git
Summary: Repoman does not honors the PORTAGE_GPG_DIR when it signs the commit for git
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 462382
  Show dependency tree
 
Reported: 2013-03-19 19:43 UTC by Agostino Sarubbo
Modified: 2013-03-19 23:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-03-19 19:43:38 UTC
I have not the gpg key in the default path (.gnupg) so when I try to sign the commit into my overlay, repoman fails to sign the commit (not the manifest).
The error is:

gpg: skipped "7194459F": No secret key
gpg: signing failed: No secret key
error: gpg failed to sign the data
fatal: failed to write commit object
!!! Exiting on git (shell) error code: 128


Now If I try to sign the commit manually with gpg commit -S I get:
gpg: skipped "7194459F": No secret key
gpg: signing failed: No secret key
error: gpg failed to sign the data
fatal: failed to write commit object


but with this alias I have no problem:
[alias]
        commitsign = !GNUPGHOME="/media/dati/gnupg/" git commit -S $*

So I guess portage does not honour the PORTAGE_GPG_DIR when it signs the commit.
Comment 2 Zac Medico gentoo-dev 2013-03-19 22:42:50 UTC
This is fixed in 2.1.11.56 and 2.2.0_alpha167.