Package: src:python-greenlet
Version: 0.4.15-4.2
Severity: important
Tags: sid bullseye
User: debian-pyt...@lists.debian.org
Usertags: python3.9


Python 3.9 doesn't define _Py_DEC_REFTOTAL anymore [0]

A patch for upstream already was merged [1].

Please, consider new upstream release.

[0]
https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924
[1] https://github.com/python-greenlet/greenlet/pull/161/files

-----

Part of build:


[...]
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.9
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG
-g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat
-Werror=format-security -g -fwrapv -O2 -g -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/include/python3.9 -c greenlet.c -o
build/temp.linux-x86_64-3.9/greenlet.o
greenlet.c: In function ‘g_initialstub’:
greenlet.c:823:4: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated
[-Wdeprecated-declarations]
  823 |    result = PyEval_CallObjectWithKeywords(
      |    ^~~~~~
In file included from /usr/include/python3.9/Python.h:145,
                 from greenlet.h:8,
                 from greenlet.c:5:
/usr/include/python3.9/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *)
PyEval_CallObjectWithKeywords(
      |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
greenlet.c: In function ‘green_dealloc’:
greenlet.c:1046:4: error: ‘_Py_DEC_REFTOTAL’ undeclared (first use in
this function); did you mean ‘_Py_DECREF’?
 1046 |    _Py_DEC_REFTOTAL;
      |    ^~~~~~~~~~~~~~~~
      |    _Py_DECREF
greenlet.c:1046:4: note: each undeclared identifier is reported only
once for each function it appears in
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make[1]: *** [debian/rules:24: build-python3.9] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2020-10-11T09:31:29Z

Attachment: 0xFA9DEC5DE11C63F1.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to