Source: python-pam
Version: 0.4.2-18
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13

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
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 
-I/usr/include/python3.13 -c PAMmodule.c -o 
build/temp.linux-aarch64-cpython-313/PAMmodule.o
PAMmodule.c: In function ‘PyPAM_conv’:
PAMmodule.c:63:16: error: implicit declaration of function ‘PyEval_CallObject’; 
did you mean ‘PyObject_CallObject’? [-Wimplicit-function-declaration]
   63 |     respList = PyEval_CallObject(self->callback, args);
      |                ^~~~~~~~~~~~~~~~~
      |                PyObject_CallObject
PAMmodule.c:63:14: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} 
from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   63 |     respList = PyEval_CallObject(self->callback, args);
      |              ^
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 
running build
running build_ext
building 'PAM' extension
creating build/temp.linux-aarch64-cpython-312
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 
-I/usr/include/python3.12 -c PAMmodule.c -o 
build/temp.linux-aarch64-cpython-312/PAMmodule.o
PAMmodule.c: In function ‘PyPAM_conv’:
PAMmodule.c:63:5: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated 
[-Wdeprecated-declarations]
   63 |     respList = PyEval_CallObject(self->callback, args);
      |     ^~~~~~~~
In file included from /usr/include/python3.12/Python.h:95,
                 from PAMmodule.c:11:
/usr/include/python3.12/ceval.h:27:43: note: declared here
   27 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -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/PAMmodule.o 
-L/usr/lib/aarch64-linux-gnu -lpam -lpam_misc -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pam/build/PAM.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:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-11T15:35:38Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/701285/

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

Reply via email to