NetBSD Problem Report #50035

From www@NetBSD.org  Sun Jul  5 16:44:52 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7D8F1A654F
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  5 Jul 2015 16:44:52 +0000 (UTC)
Message-Id: <20150705164450.EC0D5A65BE@mollari.NetBSD.org>
Date: Sun,  5 Jul 2015 16:44:50 +0000 (UTC)
From: ishit@oak.dti.ne.jp
Reply-To: ishit@oak.dti.ne.jp
To: gnats-bugs@NetBSD.org
Subject: add some options security/gnupg21
X-Send-Pr-Version: www-1.0

>Number:         50035
>Category:       pkg
>Synopsis:       add some options security/gnupg21
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 05 16:45:00 +0000 2015
>Last-Modified:  Tue Jul 07 09:25:01 +0000 2015
>Originator:     ISIHARA Takanori
>Release:        pkgsrc -current 2015/7/5
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD ishitPc14.home 7.0_RC1 NetBSD 7.0_RC1 (ISHITPC14) #11: Sun Jun 21 05:45:10 JST 2015  sysbuild@ishitPc14.home:/opt/sysbuild/netbsd-7/obj/amd64/sys/arch/amd64/compile/ISHITPC14 amd64

>Description:
security/gnupg21 is like a security/gnupg2 with some options. I want.

Before:
        GnuPG v2.1.6 has been configured as follows:

        Revision:  a499eeb  (42137)
        Platform:  NetBSD (x86_64--netbsd)

        OpenPGP:   yes
        S/MIME:    yes
        Agent:     yes
        Smartcard: yes (without internal CCID driver)
        G13:       yes
        Dirmngr:   yes
        Gpgtar:    yes

        Protect tool:      (default)
        LDAP wrapper:      (default)
        Default agent:     (default)
        Default pinentry:  (default)
        Default scdaemon:  (default)
        Default dirmngr:   (default)

        Dirmngr auto start:  yes
        Readline support:    no
        LDAP support:        yes
        DNS SRV support:     yes
        TLS support:         no


After:
        GnuPG v2.1.6 has been configured as follows:

        Revision:  a499eeb  (42137)
        Platform:  NetBSD (x86_64--netbsd)

        OpenPGP:   yes
        S/MIME:    yes
        Agent:     yes
        Smartcard: yes
        G13:       yes
        Dirmngr:   yes
        Gpgtar:    yes

        Protect tool:      (default)
        LDAP wrapper:      (default)
        Default agent:     (default)
        Default pinentry:  (default)
        Default scdaemon:  (default)
        Default dirmngr:   (default)

        Dirmngr auto start:  yes
        Readline support:    yes
        LDAP support:        yes
        DNS SRV support:     yes
        TLS support:         gnutls



>How-To-Repeat:
cd /usr/pkgsrc/security/gnupg21
make install

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/gnupg21/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- Makefile	4 Jul 2015 23:21:27 -0000	1.2
+++ Makefile	5 Jul 2015 16:40:50 -0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2015/07/04 23:21:27 ryoon Exp $
+# $NetBSD: Makefile,v 1.1 2015/07/04 05:26:21 ryoon Exp $

 DISTNAME=	gnupg-2.1.6
 PKGNAME=	${DISTNAME:S/gnupg-/gnupg2-/}
@@ -20,13 +20,28 @@
 INFO_FILES=		yes
 GNU_CONFIGURE=		yes

+TEST_TARGET=	check
+
 .include "../../mk/bsd.prefs.mk"

-BUILDLINK_API_DEPENDS.libgpg-error+=	libgpg-error>=1.4
+BUILDLINK_API_DEPENDS.libgcrypt+=	libgcrypt>=1.6.0
+BUILDLINK_API_DEPENDS.libksba+=	libksba>=1.2.0
+BUILDLINK_API_DEPENDS.libgpg-error+=	libgpg-error>=1.16
 BUILDLINK_API_DEPENDS.npth+=		npth>=0.91

-.include "../../security/libgpg-error/buildlink3.mk"
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../databases/openldap-client/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/libgetopt/buildlink3.mk"
+.include "../../devel/libusb/buildlink3.mk"
+.include "../../devel/npth/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
 .include "../../security/libassuan22/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../security/libgpg-error/buildlink3.mk"
 .include "../../security/libksba/buildlink3.mk"
-.include "../../devel/npth/buildlink3.mk"
+.include "../../security/pinentry/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/gnupg21/distinfo,v
retrieving revision 1.1
diff -u -u -r1.1 distinfo
--- distinfo	4 Jul 2015 05:26:21 -0000	1.1
+++ distinfo	5 Jul 2015 16:40:50 -0000
@@ -3,4 +3,4 @@
 SHA1 (gnupg-2.1.6.tar.bz2) = 9e8157b3386da04760657ce3117fc4dc570c57c5
 RMD160 (gnupg-2.1.6.tar.bz2) = 42db712fe0669caf246dbf46aca429b392614e2b
 Size (gnupg-2.1.6.tar.bz2) = 4917722 bytes
-SHA1 (patch-doc_Makefile.in) = 1f5dc55c6751322e2a5436b0a66a530d231b4a75
+SHA1 (patch-doc_Makefile.in) = 8bf500e815658b184ee6c6cd6ee43364899f1cd4
Index: patches/patch-doc_Makefile.in
===================================================================
RCS file: /cvsroot/pkgsrc/security/gnupg21/patches/patch-doc_Makefile.in,v
retrieving revision 1.1
diff -u -u -r1.1 patch-doc_Makefile.in
--- patches/patch-doc_Makefile.in	4 Jul 2015 05:26:21 -0000	1.1
+++ patches/patch-doc_Makefile.in	5 Jul 2015 16:40:50 -0000
@@ -1,6 +1,6 @@
 $NetBSD: patch-doc_Makefile.in,v 1.1 2015/07/04 05:26:21 ryoon Exp $

-* gpg-zip command is not installed. Rmove man page too.
+* gpg-zip command is not installed. Remove man page too.

 --- doc/Makefile.in.orig	2015-07-01 12:17:03.000000000 +0000
 +++ doc/Makefile.in

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/50035: add some options security/gnupg21
Date: Mon, 6 Jul 2015 12:34:41 +0200

 Hi!

 On Sun, Jul 05, 2015 at 04:45:00PM +0000, ishit@oak.dti.ne.jp wrote:
 > security/gnupg21 is like a security/gnupg2 with some options. I want.

 At least some of these should stay options.

 For example openldap:

 > +.include "../../databases/openldap-client/buildlink3.mk"

 Why is this needed?

 > +.include "../../devel/libgetopt/buildlink3.mk"

 Should be an option too:

 > +.include "../../devel/libusb/buildlink3.mk"


 Why is this needed?

 > +.include "../../security/pinentry/buildlink3.mk"

 Can you please suggest an options.mk file for the package?

 Thanks,
  Thomas

From: Ryosuke Moro <szptvlfn@a-net.email.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50035
Date: Tue, 7 Jul 2015 02:33:01 +0900

 Generate a new key pair procedure[1] has stopped due to this error:
 gpg: agent_genkey failed: No pinentry
 Key generation failed: No pinentry

 [1] $ gpg2 --full-gen-key

 -- 
  Ryosuke

From: Ryosuke Moro <szptvlfn@a-net.email.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50035: add some options security/gnupg21
Date: Tue, 7 Jul 2015 18:22:59 +0900

 From https://www.gnupg.org/download/index.html
   'Pinentry is a collection of passphrase entry dialogs which is required for
    almost all usages of GnuPG stable or modern (2.x).'

 Generate a new key pair procedure[1] has stopped due to this error:
   gpg: agent_genkey failed: No pinentry
   Key generation failed: No pinentry

 [1] `gpg2 --full-gen-key` or `gpg2 --gen-key`

 ps. there are three branches of GnuPG:
     GnuPG "modern" (2.1), GnuPG "stable" (2.0), GnuPG "classic" (1.4)
 pps. for new gpg users
      https://emailselfdefense.fsf.org/

 -- 
  Ryosuke
  Key fingerprint = 6530 B10F 4777 2703 F013  0281 EF77 B61D E971 4F94

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.