From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#67012: 29.1;
 epa-sign-file pinentry loopback mode does not work with S/MIME
Date: Sat, 25 Nov 2023 11:53:24 +0200
Message-ID: <83wmu6cg6j.fsf@gnu.org>
References: <u4jhvqus0@gentoo.org> <83jzqjqfma.fsf@gnu.org>
 <87leaz9hrv.fsf@gmx.de> <83h6lnq7y7.fsf@gnu.org>
 <u34x6nhuq@gentoo.org> <uy1ewmwve@gentoo.org> <8334x2mh5s.fsf@gnu.org>
 <uttpim1x7@gentoo.org>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="33369"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 67012@debbugs.gnu.org, michael.albinus@gmx.de
To: Ulrich Mueller <ulm@gentoo.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 25 10:54:13 2023
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1r6pMa-0008Rr-WE
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Nov 2023 10:54:13 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1r6pMM-0003xn-Ui; Sat, 25 Nov 2023 04:53:58 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1r6pML-0003xa-MM
 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 04:53:57 -0500
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1r6pML-0003fW-DL
 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 04:53:57 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1r6pMP-0004Vn-Vl
 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 04:54:01 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 25 Nov 2023 09:54:01 +0000
Resent-Message-ID: <handler.67012.B67012.170090602217307@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 67012
X-GNU-PR-Package: emacs
Original-Received: via spool by 67012-submit@debbugs.gnu.org id=B67012.170090602217307
 (code B ref 67012); Sat, 25 Nov 2023 09:54:01 +0000
Original-Received: (at 67012) by debbugs.gnu.org; 25 Nov 2023 09:53:42 +0000
Original-Received: from localhost ([127.0.0.1]:37871 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1r6pM5-0004V5-Pr
 for submit@debbugs.gnu.org; Sat, 25 Nov 2023 04:53:42 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44964)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1r6pM3-0004Ur-Eh
 for 67012@debbugs.gnu.org; Sat, 25 Nov 2023 04:53:40 -0500
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1r6pLs-0003Si-Jo; Sat, 25 Nov 2023 04:53:28 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=JAo3+ctjR1PBvqSkBFNQ7MEWsUzjqdkKQJzbzYGlJ7A=; b=ZKyBTX3RzBaW
 eQ8jODpjbgqRacKLoTOCPfoEnRMrwRlJRFPuNwbNRSL+tKT4/l2vmNqEKteM00vDVfSZqoA+OtqUQ
 w0g+A++3fCiqrONpIO4dQIieVRzoiKVB1ZQM6llN8sqada/KFB0EuPADrvIv4wpZt97UXl+gdUWTO
 coxMl3dblJHSfuF28Nh+uOIPbzQVGlsZ78LH4VPynH+OOZnZgVix8pBU7EGyfpFlxC1xU482jYasx
 FO19e54Phb6oTF+tmz57o1R2eg64zSxQqXSskrHh/Oi3Lv5+aQHyxhdfc7iLfjpALPh0n+o4AZYi7
 GfXJqlUDMttFfLl9ZxTwZg==;
In-Reply-To: <uttpim1x7@gentoo.org> (message from Ulrich Mueller on Sun, 19
 Nov 2023 12:13:08 +0100)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:274942
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/274942>

> From: Ulrich Mueller <ulm@gentoo.org>
> Cc: 67012@debbugs.gnu.org,  michael.albinus@gmx.de
> Date: Sun, 19 Nov 2023 12:13:08 +0100
> 
> >>>>> On Sun, 19 Nov 2023, Eli Zaretskii wrote:
> 
> > I have difficulty making a decision about this, as I don't feel I
> > understand the situation well enough.  Can you please help me by
> > answering the following questions:
> 
> >   . are we talking about a single problem or about several ones? the
> >     original report was about invoking gpgsm, but then you started
> >     talking about gpg2 as well?
> 
> Single problem, and it affects only gpgsm. I've mentioned gpg2 only
> for the reason that any fix or workaround shouldn't change existing
> behaviour with gpg2. (So, for example, omitting "--pinentry-mode
> loopback" should be conditional on the CMS protocol.)
> 
> >   . is this a recent regression in Emacs, or did this problem exist in
> >     older versions of Emacs as well? or is this due to some recent
> >     change in GnuPG?
> 
> AFAICS it is an old problem, not related to any recent changes in Emacs
> or GnuPG. And IIUC properly fixing it would require major changes for
> either EasyPG or gpgsm, because the design of EasyPG relies on the
> status messages output by gpg2 with the --status-fd option. gpgsm
> doesn't output most of these messages (see the examples in message #32
> above).

OK, thanks.  So please install this on the master branch.

Should we perhaps have something about this in etc/PROBLEMS?  That is,
after you install your changes?  If so, feel free to add there
whatever you think is appropriate.