NetBSD Problem Report #53160

From www@NetBSD.org  Thu Apr  5 22:18:15 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9ABF17A16A
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  5 Apr 2018 22:18:15 +0000 (UTC)
Message-Id: <20180405221814.42D9F7A21F@mollari.NetBSD.org>
Date: Thu,  5 Apr 2018 22:18:14 +0000 (UTC)
From: uwe@NetBSD.org
Reply-To: uwe@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: security/gpgme fails to build with security/gnupg
X-Send-Pr-Version: www-1.0

>Number:         53160
>Category:       pkg
>Synopsis:       security/gpgme fails to build with security/gnupg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 05 22:20:00 +0000 2018
>Closed-Date:    Fri Jun 08 11:06:15 +0000 2018
>Last-Modified:  Fri Jun 08 11:06:16 +0000 2018
>Originator:     Valery Ushakov
>Release:        pkgsrc-2018Q1
>Organization:
>Environment:
>Description:
gpgme can be built with either gnupg or gnupg2, but as part of the
build process the "test" target is made and the "test" target assumes
gnupg2 and fails if the package is being built against gnupg.

Making all in gpgsm
gmake[3]: Entering directory '/export/netbsd/cvs/pkgsrc-quarterly/security/gpgme
/work.powerpc/gpgme-1.10.0/tests/gpgsm'
echo disable-crl-checks > ./gpgsm.conf
echo faked-system-time 1008241200 >> ./gpgsm.conf
echo "agent-program `which gpg-agent`|--debug-quick-random" >> ./gpgsm.conf
echo 32100C27173EF6E9C4E9A25D3D69F86D37A4F939 > ./trustlist.txt
echo >> ./trustlist.txt
echo "# CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE" >
> ./trustlist.txt
echo "3CF405464F66ED4A7DF45BBDD1E4282E33BDB76E S" >> ./trustlist.txt
gpgconf --kill all
gmake[3]: gpgconf: Command not found
Makefile:925: recipe for target 'private-keys-v1.d/gpg-sample.stamp' failed
gmake[3]: [private-keys-v1.d/gpg-sample.stamp] Error 127 (ignored)
../../build-aux/install-sh -c -d ./private-keys-v1.d
cp ./32100C27173EF6E9C4E9A25D3D69F86D37A4F939 private-keys-v1.d/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key
echo x > ./private-keys-v1.d/gpg-sample.stamp
gpgsm --import ./cert_g10code_test1.der
gmake[3]: gpgsm: Command not found
Makefile:916: recipe for target 'pubring-stamp' failed
gmake[3]: *** [pubring-stamp] Error 127
gmake[3]: Leaving directory '/export/netbsd/cvs/pkgsrc-quarterly/security/gpgme/work.powerpc/gpgme-1.10.0/tests/gpgsm'
Makefile:693: recipe for target 'all-recursive' failed
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory '/export/netbsd/cvs/pkgsrc-quarterly/security/gpgme/work.powerpc/gpgme-1.10.0/tests'
Makefile:507: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/export/netbsd/cvs/pkgsrc-quarterly/security/gpgme/work.powerpc/gpgme-1.10.0'
Makefile:438: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /export/netbsd/cvs/pkgsrc-quarterly/security/gpgme
*** Error code 1

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Sun, 03 Jun 2018 21:21:18 +0000
Responsible-Changed-Why:
Take (I have committed a possible patch that should fix it)


State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Sun, 03 Jun 2018 21:21:18 +0000
State-Changed-Why:
I think that:

 cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/gpgme/options.mk

fixes this problem.

Valery, can you please apply it and let us know if that fixes the PR?
Thank you!


From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53160 CVS commit: pkgsrc/security/gpgme
Date: Sun, 3 Jun 2018 21:18:34 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Sun Jun  3 21:18:34 UTC 2018

 Modified Files:
 	pkgsrc/security/gpgme: options.mk

 Log Message:
 gpgme: Disable tests that needs gpg-agent when built with gnupg1 option

 When building with the gnupg1 option some tests force the need of
 gpg-agent and fails as noticed by <uwe> via PR pkg/53160.

 Adjust options.mk accordingly disabling gpgsm tests for the gnupg1
 option.

 Should fix PR pkg/53160 reported by <uwe>.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/gpgme/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: leot@NetBSD.org
Subject: Re: pkg/53160 (security/gpgme fails to build with security/gnupg)
Date: Mon, 4 Jun 2018 02:53:47 +0300

 On Sun, Jun 03, 2018 at 21:21:19 +0000, leot@NetBSD.org wrote:

 > I think that:
 > 
 >  cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/gpgme/options.mk
 > 
 > fixes this problem.

 That seems to help.  Thanks!

 -uwe

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53160 (security/gpgme fails to build with security/gnupg)
Date: Thu, 07 Jun 2018 10:17:26 +0200

 Hello Valery,

 Valery Ushakov writes:
 >  On Sun, Jun 03, 2018 at 21:21:19 +0000, leot@NetBSD.org wrote:
 >  
 >  > I think that:
 >  > 
 >  >  cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/gpgme/options.mk
 >  > 
 >  > fixes this problem.
 >  
 >  That seems to help.  Thanks!
 >  

 Thanks for the quick feedback!
 Should we ask a pullup request for pkgsrc-2018Q1 or should we close
 it?


 Thanks again!

From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: leot@NetBSD.org
Subject: Re: pkg/53160 (security/gpgme fails to build with security/gnupg)
Date: Thu, 7 Jun 2018 11:31:18 +0300

 On Thu, Jun 07, 2018 at 08:20:01 +0000, Leonardo Taccari wrote:

 >  Valery Ushakov writes:
 >  >  On Sun, Jun 03, 2018 at 21:21:19 +0000, leot@NetBSD.org wrote:
 >  >  
 >  >  > I think that:
 >  >  > 
 >  >  >  cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/gpgme/options.mk
 >  >  > 
 >  >  > fixes this problem.
 >  >  
 >  >  That seems to help.  Thanks!
 >  
 >  Thanks for the quick feedback!
 >  Should we ask a pullup request for pkgsrc-2018Q1 or should we close
 >  it?

 With Q2 branch just around the corner I'm not sure it's worth the
 trouble.  But it's your call.

 -uwe

From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: Leonardo Taccari <leot@netbsd.org>, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, 
	uwe@netbsd.org
Subject: Re: pkg/53160 (security/gpgme fails to build with security/gnupg)
Date: Thu, 7 Jun 2018 11:00:10 +0200

 >  Should we ask a pullup request for pkgsrc-2018Q1 or should we close
 >  it?

 Do it! :)


 -- 
 Benny

State-Changed-From-To: feedback->pending-pullups
State-Changed-By: leot@NetBSD.org
State-Changed-When: Thu, 07 Jun 2018 18:05:15 +0000
State-Changed-Why:
pullup-pkgsrc #5770


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53160 CVS commit: [pkgsrc-2018Q1] pkgsrc/security/gpgme
Date: Fri, 8 Jun 2018 10:47:40 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Fri Jun  8 10:47:40 UTC 2018

 Modified Files:
 	pkgsrc/security/gpgme [pkgsrc-2018Q1]: options.mk

 Log Message:
 Pullup ticket #5770 - requested by leot
 security/gpgme: build fix

 Revisions pulled up:
 - security/gpgme/options.mk                                     1.10

 ---
    Module Name:	pkgsrc
    Committed By:	leot
    Date:		Sun Jun  3 21:18:34 UTC 2018

    Modified Files:
    	pkgsrc/security/gpgme: options.mk

    Log Message:
    gpgme: Disable tests that needs gpg-agent when built with gnupg1 option

    When building with the gnupg1 option some tests force the need of
    gpg-agent and fails as noticed by <uwe> via PR pkg/53160.

    Adjust options.mk accordingly disabling gpgsm tests for the gnupg1
    option.

    Should fix PR pkg/53160 reported by <uwe>.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.9.4.1 pkgsrc/security/gpgme/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Fri, 08 Jun 2018 11:06:15 +0000
State-Changed-Why:
Fixed in pkgsrc-current and pulled up in 2018Q1.

Thank you Valery for the PR and feedback and thanks
to Benny for the pullup!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.