pkgsrc-Bugs archive

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

pkg/54612: security/gpgme not compatible with newer Pythons?

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


Home | Main Index | Thread Index | Old Index