pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53339: security/gpgme requires C++ 11



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



Home | Main Index | Thread Index | Old Index