NetBSD Problem Report #53339

From www@NetBSD.org  Mon Jun  4 00:13:22 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 3560E7A159
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  4 Jun 2018 00:13:22 +0000 (UTC)
Message-Id: <20180604001321.2C13D7A1D7@mollari.NetBSD.org>
Date: Mon,  4 Jun 2018 00:13:21 +0000 (UTC)
From: uwe@NetBSD.org
Reply-To: uwe@NetBSD.org
To: gnats-bugs@NetBSD.org
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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 04 00:15:00 +0000 2018
>Closed-Date:    Thu Jan 14 12:44:15 +0000 2021
>Last-Modified:  Thu Jan 14 12:44:15 +0000 2021
>Originator:     Valery Ushakov
>Release:        pkgsrc-2018Q2
>Organization:
>Environment:
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

>Description:
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.

>How-To-Repeat:
Build on NetBSD 6.
>Fix:
As a workaround I just trimmed the PLIST to match what is actually built.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: nia@NetBSD.org
State-Changed-When: Thu, 14 Jan 2021 12:44:15 +0000
State-Changed-Why:
At some point last year I made gpgme require a version of gcc new enough
to compile C++11, so this no longer applies.

Sorry your bug wasn't dealt with quickly at the time.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.