Subject: pkg/35088: security/gnupg2: PLIST.gpgsm is wrong
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
List: pkgsrc-bugs
Date: 11/20/2006 20:15:00
>Number:         35088
>Category:       pkg
>Synopsis:       security/gnupg2: PLIST.gpgsm is wrong
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 20 20:15:00 +0000 2006
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 4.99.3, pkgsrc-current
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 4.99.3 NetBSD 4.99.3 (BONNIE.MPACPI) #35: Fri Nov 10 13:53:42 JST 2006 ryoh@bonnie.jaist.ac.jp:/sys/arch/i386/compile/BONNIE.MPACPI i386
Architecture: i386
Machine: i386
>Description:
gnupg2 fails to file-check with gpgsm option as follows:

$ make package
...
===> depends-message [gnupg2-2.0.0nb1] ===> Installing dependencies for gnupg2-2.0.0nb1
==========================================================================
The supported build options for gnupg2 are:

        gpgsm

The currently selected options are:

        gpgsm

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

        PKG_OPTIONS.gnupg2 (not defined)

==========================================================================
...
=> Checking file-check results for gnupg2-2.0.0nb1
ERROR: ************************************************************
ERROR: The following files are in /usr/pkg but not in the PLIST:
ERROR:         /usr/pkg/bin/gpg2
ERROR:         /usr/pkg/bin/gpgv2
ERROR:         /usr/pkg/libexec/gpg2keys_curl
ERROR:         /usr/pkg/libexec/gpg2keys_finger
ERROR:         /usr/pkg/libexec/gpg2keys_hkp
ERROR:         /usr/pkg/libexec/gpg2keys_ldap
ERROR:         /usr/pkg/man/man1/gpg-agent.1
ERROR:         /usr/pkg/man/man1/gpg-connect-agent.1
ERROR:         /usr/pkg/man/man1/gpg-preset-passphrase.1
ERROR:         /usr/pkg/man/man1/gpg2.1
ERROR:         /usr/pkg/man/man1/gpgconf.1
ERROR:         /usr/pkg/man/man1/gpgparsemail.1
ERROR:         /usr/pkg/man/man1/gpgsm-gencert.sh.1
ERROR:         /usr/pkg/man/man1/gpgsm.1
ERROR:         /usr/pkg/man/man1/gpgv2.1
ERROR:         /usr/pkg/man/man1/scdaemon.1
ERROR:         /usr/pkg/man/man1/symcryptrun.1
ERROR:         /usr/pkg/man/man1/watchgnupg.1
ERROR:         /usr/pkg/man/man8/addgnupghome.8
ERROR:         /usr/pkg/share/info/dir
ERROR:         /usr/pkg/share/info/gnupg.info
ERROR:         /usr/pkg/share/info/gnupg.info-1
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/gnupg2
*** Error code 1
	
>How-To-Repeat:
	
>Fix:
Index: Makefile
===================================================================
RCS file: /usr/cvsup/pkgsrc/security/gnupg2/Makefile,v
retrieving revision 1.3
diff -d -p -u -r1.3 Makefile
--- Makefile    19 Nov 2006 19:03:56 -0000      1.3
+++ Makefile    20 Nov 2006 15:00:37 -0000
@@ -20,6 +20,7 @@ COMMENT=              GNUpg with OpenPGP and S/MIME
 PKG_INSTALLATION_TYPES=        overwrite pkgviews

 GNU_CONFIGURE=         yes
+INFO_FILES=            yes
 USE_TOOLS+=            gmake
 USE_TOOLS+=            autoconf
 USE_TOOLS+=            automake
Index: PLIST.gpgsm
===================================================================
RCS file: /usr/cvsup/pkgsrc/security/gnupg2/PLIST.gpgsm,v
retrieving revision 1.1.1.1
diff -d -p -u -r1.1.1.1 PLIST.gpgsm
--- PLIST.gpgsm 17 Nov 2006 12:13:11 -0000      1.1.1.1
+++ PLIST.gpgsm 20 Nov 2006 17:48:28 -0000
@@ -1,14 +1,34 @@
 @comment $NetBSD: PLIST.gpgsm,v 1.1.1.1 2006/11/17 12:13:11 shannonjr Exp $
 bin/gpg-connect-agent
+bin/gpg2
 bin/gpgconf
 bin/gpgkey2ssh
 bin/gpgparsemail
 bin/gpgsm
 bin/gpgsm-gencert.sh
+bin/gpgv2
 bin/kbxutil
 bin/scdaemon
 bin/watchgnupg
+info/gnupg.info
 lib/gnupg/pcsc-wrapper
+libexec/gpg2keys_curl
+libexec/gpg2keys_finger
+libexec/gpg2keys_hkp
+libexec/gpg2keys_ldap
+man/man1/gpg-agent.1
+man/man1/gpg-connect-agent.1
+man/man1/gpg-preset-passphrase.1
+man/man1/gpg2.1
+man/man1/gpgconf.1
+man/man1/gpgparsemail.1
+man/man1/gpgsm-gencert.sh.1
+man/man1/gpgsm.1
+man/man1/gpgv2.1
+man/man1/scdaemon.1
+man/man1/symcryptrun.1
+man/man1/watchgnupg.1
+man/man8/addgnupghome.8
 sbin/addgnupghome
 share/gnupg/FAQ
 share/gnupg/com-certs.pem