From nobody@FreeBSD.org  Tue Dec  7 13:43:02 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C183A1065672
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2010 13:43:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9A64D8FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2010 13:43:02 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oB7Dh1gN030790
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 Dec 2010 13:43:01 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oB7Dh13k030789;
	Tue, 7 Dec 2010 13:43:01 GMT
	(envelope-from nobody)
Message-Id: <201012071343.oB7Dh13k030789@red.freebsd.org>
Date: Tue, 7 Dec 2010 13:43:01 GMT
From: Kenneth Lind <exil@sasurai.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ** Sylpheed-WARNING: pgp_sign(): signing failed:
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152888
>Category:       ports
>Synopsis:       security/gpgme: add workaround for: ** Sylpheed-WARNING: pgp_sign(): signing failed:
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ehaupt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 13:50:09 UTC 2010
>Closed-Date:    Wed Jul 27 16:58:15 CEST 2011
>Last-Modified:  Wed Jul 27 15:00:23 UTC 2011
>Originator:     Kenneth Lind
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD zappa 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Thu Jul 22 18:28:17 CEST 2010     root@:/usr/obj/misc/shared/FreeBSD/8.1/src/sys/FLY  i386
>Description:
A long-time headache of mine has a solution.

Signing and encrypting in mail/sylpheed* with security/gpgme dependent
on security/gnupg fails, and gives only the following statement in the
sylpheed log:
"** Sylpheed-WARNING: pgp_sign(): signing failed: ..."

And "gpg --edit-key" results in "gpg-agent[5460]: can't connect to the
PIN entry module: ..."

Using security/gpgme with security/gnupg1 produces no such error.

After searching the web for a while, I found a solution. Adding
security/pinentry solved both those problems fairly easy.

So where am I going with this?

I am suggesting to add security/pinentry as a dependency when
security/gpgme is used in conjunction with security/gnupg.  Or at least
to make it an option.
>How-To-Repeat:
Install:
mail/sylpheed3
security/gnupg
security/gpgme

Create an account, a key, and try so send a signed and/or encrypted e-mail.
>Fix:
Install security/pinentry


>Release-Note:
>Audit-Trail:

From: Mark Linimon <linimon@lonesome.com>
To: Kenneth Lind <exil@sasurai.se>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/152888: ** Sylpheed-WARNING: pgp_sign(): signing failed:
Date: Wed, 8 Dec 2010 06:15:28 +0000

 To which of the 3 ports does your suggested fix apply?

From: Kenneth Lind <exil@sasurai.se>
To: Mark Linimon <linimon@lonesome.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/152888: ** Sylpheed-WARNING: pgp_sign(): signing failed:
Date: Wed, 8 Dec 2010 07:38:07 +0100

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 On Wed, 8 Dec 2010 06:15:28 +0000
 Mark Linimon <linimon@lonesome.com> wrote:
 
 > To which of the 3 ports does your suggested fix apply?
 
 To security/gpgme.
 
 Sorry about not stating that.
 
 - -- 
 
  I don't mind being accused of being an "escapist." On a planet
  that increasingly resembles one huge Maximum Security prison,
  the only intelligent choice is to plan a jail break.
                                     - Robert Anton Wilson
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.16 (FreeBSD)
 
 iEYEARECAAYFAkz/J9YACgkQh2Se1CB7M2FHJACfXWPiZhQ1eJZOFiJJHvXzUlN/
 Gq8AoIMDB+bFC9RRMH9twCNYlyS566L0
 =3zBQ
 -----END PGP SIGNATURE-----

From: "Jason E. Hale" <bsdkaffee@gmail.com>
To: bug-followup@freebsd.org,
 exil@sasurai.se
Cc: oliver@freebsd.org
Subject: Re: ports/152888: security/gpgme: add workaround for: ** Sylpheed-WARNING: pgp_sign(): signing failed:
Date: Fri, 7 Jan 2011 04:14:17 -0500

 I don't think adding security/pinentry as a dependency to security/gpgme is 
 the correct way to approach this.  Gpgme is sort of a "middle-man" application 
 and this sort of dependency either belongs at the very bottom or the very top.  
 Not every port that uses gpgme requires pinentry, nor is it a requirement for 
 gpgme itself to run properly.  Pinentry is required for use with gpg-agent 
 which is part of gnupg 2.x (this is stated in the pkg-message for 
 security/gnupg).  The biggest problem with adding security/pinentry as a 
 direct dependency is that it pulls in all the major x11 toolkits by default 
 (gtk1, gtk2, qt3, qt4) and I don't think most users want that.  Users should 
 install the flavor of pinentry that goes with their application.  I think 
 maybe the best solution would be for the maintainer of mail/sylpheed3 to add a 
 runtime dependency on security/pinentry-gtk2 if the GPGME option is selected 
 (I've CC'd him).
 
 - Jason
Responsible-Changed-From-To: freebsd-ports-bugs->oliver 
Responsible-Changed-By: arved 
Responsible-Changed-When: Tue Feb 22 15:41:08 UTC 2011 
Responsible-Changed-Why:  
over to sylpheed3 maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152888 
Responsible-Changed-From-To: oliver->ehaupt 
Responsible-Changed-By: ehaupt 
Responsible-Changed-When: Wed Jul 27 13:15:08 CEST 2011 
Responsible-Changed-Why:  
I will take care of it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152888 
State-Changed-From-To: open->closed 
State-Changed-By: ehaupt 
State-Changed-When: Wed Jul 27 16:58:14 CEST 2011 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152888 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/152888: commit references a PR
Date: Wed, 27 Jul 2011 14:57:19 +0000 (UTC)

 ehaupt      2011-07-27 14:57:10 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/sylpheed3       Makefile 
   Log:
   Add security/pinentry-gtk2 as a run dependency if the GPGME option is selected.
   This does not add any additional dependencies other than security/pinentry-gtk2
   itself as opposed to adding security/pinentry.
   
   PR:             152888 (based on)
   Submitted by:   Kenneth Lind <exil@sasurai.se>,
                   Jason E. Hale <bsdkaffee@gmail.com>
   
   Revision  Changes    Path
   1.182     +3 -1      ports/mail/sylpheed3/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
