NetBSD Problem Report #54612

From  Fri Oct 11 10:15:34 2019
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 EC2717A172
	for <>; Fri, 11 Oct 2019 10:15:33 +0000 (UTC)
Message-Id: <>
Date: Fri, 11 Oct 2019 10:15:32 +0000 (UTC)
Subject: security/gpgme not compatible with newer Pythons?
X-Send-Pr-Version: www-1.0

>Number:         54612
>Category:       pkg
>Synopsis:       security/gpgme not compatible with newer Pythons?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 11 10:20:00 +0000 2019
>Originator:     Joern Clausen
Bielefeld University
I'm trying to build security/gpgme (as dependency of mail/mutt), and it fails with

python3.4-gpg/gpgme_wrap.c: In function '_PySwigObject_type':
python3.4-gpg/gpgme_wrap.c:1749:3: error: 'cmpfunc' undeclared (first use in this function)
 1749 |  (cmpfunc)SwigPyObject_compare,     /* tp_compare */
      |   ^~~~~~~
python3.4-gpg/gpgme_wrap.c:1749:3: note: each undeclared identifier is reported only once for each function it appears in
python3.4-gpg/gpgme_wrap.c:1749:11: error: expected '}' before 'SwigPyObject_compare'
 1749 |  (cmpfunc)SwigPyObject_compare,     /* tp_compare */
      |           ^~~~~~~~~~~~~~~~~~~~

I have python37-3.7.4 installed, and looking at gpgme_wrap.c, I assume that PyTypeObject has changed and the code has not been adjusted.

Actually, the pkgsrc Makefile does not mention Python or Swig at all, or accepted or incompatible versions. So I guess the creation of Python bindings happens accidentally, depending on the presence of a usable Python. I think this dependency should be made mandatory for this package, or made an option: The configure script offers "--enable-languages=", which could be set.


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.