pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/54612: security/gpgme not compatible with newer Pythons?
On Fri, Oct 11, 2019 at 10:20:00AM +0000, joern.clausen%uni-bielefeld.de@localhost wrote:
> 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.
This failure is a result of using a too-old version of swig; swig 1.x
doesn't support python3.
> 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.
This part was fixed recently, so I guess the issue is resolved...
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index