Gentoo Archives: gentoo-dev

From: Alec Warner <antarus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] pkgdev commit and gpg-agent
Date: Mon, 01 Aug 2022 16:31:32
Message-Id: CAAr7Pr8LsTQjc_pvCUgF212onF=11j2yy2TUhbt3Yn2AnkEc0A@mail.gmail.com
In Reply to: [gentoo-dev] pkgdev commit and gpg-agent by Andrey Grozin
1 On Mon, Aug 1, 2022 at 8:49 AM Andrey Grozin
2 <grozin@×××××××××××××××××.org> wrote:
3 >
4 > Hello *,
5
6 Hi!
7
8 >
9 > Sorry for a very naive question.
10 >
11 > In the past, I used
12 > repoman commit
13 > to commit a new ebuild. I got a text screen in my terminal where I typed my
14 > passphraise (if I then committed something else within the timeout, I didn't
15 > have to re-type it).
16 >
17 > Now we are recommended to use
18 > pkgdev commit
19 > instead. But it does not ask for my passphraise, just writes an error message
20 > that it cannot sign my commit.
21
22 Can you please provide the error message? The rest is us guessing.
23
24 For example, with gpg I have problems unless I set GPG_TTY=$(tty) in
25 my .bashrc; if you run man gpg-agent you see a blurb about this being
26 'required' but it worked fine for years until it did not...I suspect
27 it is quite environment dependent.
28
29 -A
30
31 >
32 > If I commit something with repoman and then (within the timeout) commit
33 > something else with pkgdev, it works.
34 >
35 > My .gnupg/gpg-agent.conf is
36 >
37 > pinentry-program /usr/bin/pinentry-curses
38 > write-env-file
39 > default-cache-ttl 1000000
40 >
41 > My .gnupg/gpg.conf includes the line
42 >
43 > use-agent
44 >
45 > I can, of course, continue to use repoman for committing. But now it does not
46 > add the Signed-off-by: automatically. I have to add it by hand, in nano. This is
47 > definitely the most convenient way.
48 >
49 > Thanks in advance,
50 > Andrey
51 >