NetBSD Problem Report #53339

From  Mon Jun  4 00:13:22 2018
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 3560E7A159
	for <>; Mon,  4 Jun 2018 00:13:22 +0000 (UTC)
Message-Id: <>
Date: Mon,  4 Jun 2018 00:13:21 +0000 (UTC)
Subject: security/gpgme requires C++ 11
X-Send-Pr-Version: www-1.0

>Number:         53339
>Category:       pkg
>Synopsis:       security/gpgme requires C++ 11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 04 00:15:00 +0000 2018
>Originator:     Valery Ushakov
>Release:        pkgsrc-2018Q2
NetBSD pony 6.1_STABLE NetBSD 6.1_STABLE (GENERIC) #0: Thu May 17 00:18:58 MSK 2018  uwe@sampo:/home/uwe/work/netbsd/build6/obj/macppc/sys/arch/macppc/compile/GENERIC macppc

security/gpgme is configured without explicit --enable-languages which
means it will try to autodetect.

The PLIST for the package is written with the assumption that the C++
bindings will be compiled.  However gpgme C++ support requires C++ 11.
On NetBSD 6 the system compiler is too old, so configure decides it
will not build C++ support.  Since --enable-languages was not
specified, that's not considered an error.  But the PLIST still wants
those files, so building the package ultimately fails.

I guest many packages that depend on gpgme only need the C version.  I
definitely don't want to build pkgsrc g++ just to be able to read mail
with mutt.

I think the package should build just the plain C code there should be
a separate C++ package.  The separate C++ package should explicitely
specify --enable-languages=c++ and property request a C++ 11 compiler.

Build on NetBSD 6.
As a workaround I just trimmed the PLIST to match what is actually built.

NetBSD Home
NetBSD PR Database Search

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