Source: py-lmdb Version: 1.4.1-2 Severity: normal Tags: upstream patch User: debian-pyt...@lists.debian.org Usertags: python3.13 Forwarded: https://github.com/jnwatson/py-lmdb/issues/362
This package failed build from source when test-built against a version of python3-defaults that incudes 3.13 as a supported version. To reproduce this issue, build against python3-defaults (python3-all-dev etc.) from Debian experimental. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html Log snippet: creating build/temp.linux-aarch64-cpython-313/lmdb aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilib/py-lmdb -I/usr/include/python3.13 -c lmdb/cpython.c -o build/temp.linux-aarch64-cpython-313/lmdb/cpython.o -UNDEBUG -w lmdb/cpython.c: In function ‘val_from_buffer’: lmdb/cpython.c:586:12: error: implicit declaration of function ‘PyObject_AsReadBuffer’; did you mean ‘PyObject_GetBuffer’? [-Wimplicit-function-declaration] 586 | return PyObject_AsReadBuffer(buf, | ^~~~~~~~~~~~~~~~~~~~~ | PyObject_GetBuffer error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1 E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: /usr/bin/python3.13 setup.py build I: pybuild base:311: /usr/bin/python3 setup.py build py-lmdb: Using system version of liblmdb. py-lmdb: Using CPython extension; override with LMDB_FORCE_CFFI=1. running build running build_py creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_lmdb/build/lmdb copying lmdb/tool.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_lmdb/build/lmdb copying lmdb/cffi.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_lmdb/build/lmdb copying lmdb/_config.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_lmdb/build/lmdb copying lmdb/__main__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_lmdb/build/lmdb copying lmdb/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_lmdb/build/lmdb running build_ext building 'cpython' extension creating build/temp.linux-aarch64-cpython-312 creating build/temp.linux-aarch64-cpython-312/lmdb aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilib/py-lmdb -I/usr/include/python3.12 -c lmdb/cpython.c -o build/temp.linux-aarch64-cpython-312/lmdb/cpython.o -UNDEBUG -w aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-cpython-312/lmdb/cpython.o -L/usr/lib/aarch64-linux-gnu -llmdb -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_lmdb/build/lmdb/cpython.cpython-312-aarch64-linux-gnu.so dh_auto_build: error: pybuild --build -i python{version} -p "3.13 3.12" returned exit code 13 make: *** [debian/rules:8: build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-11T14:56:50Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/700684/ This bug has been filed at "normal" severity, as we haven't started the transition to add 3.13 as a supported version, yet. This will be raised to RC as soon as that happens, hopefully well before trixie. Thanks, Stefano