| Newsgroups |
gmane.linux.lfs.beyond.devel |
| Message-ID |
<[email protected]> |
On Tue, 2024-11-19 at 22:23 +0800, Xi Ruoyao wrote:
> On Tue, 2024-11-19 at 13:56 +0100, Rainer Fiebig wrote:
> > Am 19.11.24 um 13:42 schrieb Xi Ruoyao ([email protected] via blfs-dev
> > Mailing List):
> > > On Tue, 2024-11-19 at 12:36 +0100, Rainer Fiebig wrote:
> > > > Am 19.11.24 um 06:00 schrieb Xi Ruoyao ([email protected] via blfs-dev
> > > > Mailing List):
> > > > > On Mon, 2024-11-18 at 21:58 +0800, Zhang Wen wrote:
> > > > > > On 11/18/24 21:42, Xi Ruoyao ([email protected] via blfs-dev Mailing
> > > > > > List) wrote:
> > > > > > > I just cannot see any way we can ever "fix" this. Raising gcr to
> > > > > > > recommended is not an option because GNOME is not used widely by BLFS
> > > > > > > users.
> > > > > > >
> > > > > > >
> > > > > > Maybe we can add some words on pinentry page, saying that the pinentry
> > > > > > built here is not full, and can be rebuilt to be more functionally after
> > > > > > installing some graphical environments, or on the thunderbird and git
> > > > > > page? it's really borning without this information.
> > > > >
> > > > > How's it different from all the optional dependencies in the book? Or
> > > > > are we going to add some text everywhere for every optional dependency?
> > > > The problem here is that Thunderbird (and perhaps other) needs a
> > > > graphical pinentry-box. Else one cannot enter the passphrase. To the
> > > > user this is rather confusing because this happens even though he has
> > > > followed the book to the point.
> > > >
> > > > I found this out the hard way in 2019 and ever since build pinentry
> > > > after GTK/QT. A note at least in ch. Thunderbird would have helped a
> > > > lot at the time.
> > >
> > > ch. Thunderbird is definitely a wrong location because it does not only
> > No, it's definitely _not_ a wrong location. It's not a coincidence that
> > the OP and I encountered the same problem with Thunderbird and not with
> > "git commit -S".
>
> Why it's not a coincidence?
>
> I do really sign my BLFS commits with GPG but your (and my) posts to
> blfs-dev are not signed. So I can logically consider the git use case
> more important here (while IMO both Git page and Thunderbird page are a
> wrong location).
I've fixed Git with:
commit 7c9e274a7ac1a97315bce625af2be40ef7afb1c3
Author: Xi Ruoyao <[email protected]>
Date: Wed Nov 20 12:57:16 2024 +0800
profile: Set GPG_TTY for GnuPG
diff --git a/postlfs/config/profile.xml b/postlfs/config/profile.xml
index 935d9308f9..0c6b058323 100644
--- a/postlfs/config/profile.xml
+++ b/postlfs/config/profile.xml
@@ -175,6 +175,10 @@ export XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/share}
export XDG_CONFIG_DIRS=${XDG_CONFIG_DIRS:-/etc/xdg}
export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/tmp/xdg-$USER}
+# GnuPG wants this or it'll fail with pinentry-curses under some
+# circumstances (for example signing a Git commit)
+tty -s && export GPG_TTY=$(tty)
+
# Set up a red prompt for root and a green one for users.
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
But obviously it doesn't help GUI apps.
--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University
--
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page