Source: xpra
Version: 3.1.5+dfsg1-0.2
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13
Tags: fixed-upstream

This package failed build from source when test-built against a version of
python3-defaults that includes 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

The file in question is long gone in newer major versions, so upgrading
to a newer version will do the trick...

For the 3.1 LTS branch, it looks like upstream hasn't looked at this,
yet.

Log snippet:

exec_pkgconfig(('libavutil',),{})={'include_dirs': 
['/usr/include/aarch64-linux-gnu'], 'libraries': ['avutil'], 
'extra_compile_args': ['-Wall', '-Werror', '-Wno-error=strict-prototypes', 
'-Wno-error=deprecated-declarations', '-fPIC', '-g', '-O2', 
'-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig(('libavcodec', 'libavutil', 'libavformat'),{})={'include_dirs': 
['/usr/include/aarch64-linux-gnu'], 'libraries': ['avcodec', 'avutil', 
'avformat'], 'extra_compile_args': ['-Wall', '-Werror', 
'-Wno-error=strict-prototypes', '-Wno-error=deprecated-declarations', '-fPIC', 
'-g', '-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig(('libswscale', 'libavutil'),{})={'include_dirs': 
['/usr/include/aarch64-linux-gnu'], 'libraries': ['swscale', 'avutil'], 
'extra_compile_args': ['-Wall', '-Werror', '-Wno-error=strict-prototypes', 
'-Wno-error=deprecated-declarations', '-fPIC', '-g', '-O2', 
'-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig(('vpx',),{})={'libraries': ['vpx', 'm'], 'extra_compile_args': 
['-Wall', '-Werror', '-Wno-error=strict-prototypes', 
'-Wno-error=deprecated-declarations', '-fPIC', '-g', '-O2', 
'-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig(('libavcodec', 'libavformat', 'libavutil'),{})={'include_dirs': 
['/usr/include/aarch64-linux-gnu'], 'libraries': ['avcodec', 'avformat', 
'avutil'], 'extra_compile_args': ['-Wall', '-Werror', 
'-Wno-error=strict-prototypes', '-Wno-error=deprecated-declarations', '-fPIC', 
'-g', '-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig((),{})={'extra_compile_args': ['-Wall', '-Werror', 
'-Wno-error=strict-prototypes', '-Wno-error=deprecated-declarations', '-fPIC', 
'-g', '-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig((),{'optimize': 3})={'extra_compile_args': ['-O3', '-Wall', 
'-Werror', '-Wno-error=strict-prototypes', 
'-Wno-error=deprecated-declarations', '-fPIC', '-g', '-O2', 
'-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig((),{'optimize': 3})={'extra_compile_args': ['-O3', '-Wall', 
'-Werror', '-Wno-error=strict-prototypes', 
'-Wno-error=deprecated-declarations', '-fPIC', '-g', '-O2', 
'-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig((),{})={'extra_compile_args': ['-Wall', '-Werror', 
'-Wno-error=strict-prototypes', '-Wno-error=deprecated-declarations', '-fPIC', 
'-g', '-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig((),{})={'extra_compile_args': ['-Wall', '-Werror', 
'-Wno-error=strict-prototypes', '-Wno-error=deprecated-declarations', '-fPIC', 
'-g', '-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
exec_pkgconfig((),{})={'extra_compile_args': ['-Wall', '-Werror', 
'-Wno-error=strict-prototypes', '-Wno-error=deprecated-declarations', '-fPIC', 
'-g', '-O2', '-Werror=implicit-function-declaration', 
'-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', 
'-fstack-clash-protection', '-Wformat', '-Werror=format-security', 
'-mbranch-protection=standard'], 'extra_link_args': ['-Wall', '-Wl,-z,relro', 
'-Wl,-z,now', '-Wl,--as-needed']}
xpra/buffers/buffers.c: In function ‘_object_as_buffer’:
xpra/buffers/buffers.c:43:5: warning: ‘PyObject_AsReadBuffer’ is deprecated 
[-Wdeprecated-declarations]
   43 |     return PyObject_AsReadBuffer(obj, buffer, buffer_len);
      |     ^~~~~~
In file included from /usr/include/python3.12/Python.h:100,
                 from xpra/buffers/buffers.c:8:
/usr/include/python3.12/abstract.h:369:17: note: declared here
  369 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
      |                 ^~~~~~~~~~~~~~~~~~~~~
xpra/buffers/buffers.c: In function ‘_object_as_write_buffer’:
xpra/buffers/buffers.c:56:5: warning: ‘PyObject_AsWriteBuffer’ is deprecated 
[-Wdeprecated-declarations]
   56 |     return PyObject_AsWriteBuffer(obj, buffer, buffer_len);
      |     ^~~~~~
/usr/include/python3.12/abstract.h:380:17: note: declared here
  380 | PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
      |                 ^~~~~~~~~~~~~~~~~~~~~~
xpra/gtk_common/gtk3/gdk_atoms.c: In function 
‘__pyx_pf_4xpra_10gtk_common_4gtk3_9gdk_atoms_gdk_atom_objects_from_gdk_atom_array’:
xpra/gtk_common/gtk3/gdk_atoms.c:2679:5: warning: ‘PyObject_AsReadBuffer’ is 
deprecated [-Wdeprecated-declarations]
 2679 |     __pyx_t_1 = PyObject_AsReadBuffer(__pyx_v_atom_string, ((void const 
**)(&__pyx_v_array)), (&__pyx_v_array_len_bytes)); if (unlikely(__pyx_t_1 == 
((int)-1))) __PYX_ERR(0, 39, __pyx_L1_error)
      |     ^~~~~~~~~
In file included from /usr/include/python3.12/Python.h:100,
                 from xpra/gtk_common/gtk3/gdk_atoms.c:92:
/usr/include/python3.12/abstract.h:369:17: note: declared here
  369 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
      |                 ^~~~~~~~~~~~~~~~~~~~~
xpra/codecs/enc_x265/encoder.c: In function ‘__pyx_pymod_exec_encoder’:
xpra/codecs/enc_x265/encoder.c:11165:36: error: ‘NAL_UNIT_CODED_SLICE_TLA_R’ 
undeclared (first use in this function); did you mean 
‘NAL_UNIT_CODED_SLICE_TSA_R’?
11165 |   __pyx_t_4 = __Pyx_PyInt_From_int(NAL_UNIT_CODED_SLICE_TLA_R); if 
(unlikely(!__pyx_t_4)) __PYX_ERR(0, 237, __pyx_L1_error)
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                    NAL_UNIT_CODED_SLICE_TSA_R
xpra/codecs/enc_x265/encoder.c:11165:36: note: each undeclared identifier is 
reported only once for each function it appears in
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 setup.py build --with-verbose --with-Xdummy 
--without-Xdummy_wrapper --with-html5 --without-minify --without-html5_gzip 
dh_auto_build: error: pybuild --build -i python{version} -p "3.13 3.12" 
returned exit code 13
make: *** [debian/rules:21: binary-arch] Error 25
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2024-10-27T02:22:22Z


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

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