[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1057442: onboard ftbfs with Python 3.12



Package: src:onboard
Version: 1.4.1-5
Severity: serious
Tags: sid trixie
User: debian-python@lists.debian.org
Usertags: python3.12

onboard ftbfs with Python 3.12:

[...]
creating build
creating build/temp.linux-x86_64-cpython-312
creating build/temp.linux-x86_64-cpython-312/Onboard
creating build/temp.linux-x86_64-cpython-312/Onboard/osk
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMAJOR_VERSION=0 -DMINOR_VERSION=4 -DMICRO_VERSION=0 -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/cloudproviders -I/usr/include/dconf -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/include/gtk-3.0 -I/usr/include/harfbuzz -I/usr/include/hunspell -I/usr/include/libmount -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/webp -I/usr/include/x86_64-linux-gnu -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/python3.12 -c Onboard/osk/osk_audio.c -o build/temp.linux-x86_64-cpython-312/Onboard/osk/osk_audio.o -Wsign-compare -Wdeclaration-after-statement -Werror=declaration-after-statement
In file included from /usr/include/python3.12/Python.h:44,
                 from Onboard/osk/osk_module.h:25,
                 from Onboard/osk/osk_audio.c:21:
/usr/include/python3.12/object.h: In function ‘Py_SIZE’:
/usr/include/python3.12/object.h:233:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
  233 |     PyVarObject *var_ob = _PyVarObject_CAST(ob);
      |     ^~~~~~~~~~~
In file included from /usr/include/python3.12/Python.h:53:
/usr/include/python3.12/cpython/longintrepr.h: In function ‘_PyLong_CompactValue’: /usr/include/python3.12/cpython/longintrepr.h:121:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] 121 | Py_ssize_t sign = 1 - (op->long_value.lv_tag & _PyLong_SIGN_MASK);
      |     ^~~~~~~~~~
Onboard/osk/osk_audio.c: In function ‘osk_audio_init_canberra’:
Onboard/osk/osk_audio.c:70:5: warning: ‘gdk_screen_get_number’ is deprecated [-Wdeprecated-declarations]
   70 |     nr = gdk_screen_get_number(screen);
      |     ^~
In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkx.h:28,
                 from Onboard/osk/osk_audio.c:23:
/usr/include/gtk-3.0/gdk/gdkscreen.h:56:14: note: declared here
56 | gint gdk_screen_get_number (GdkScreen *screen);
      |              ^~~~~~~~~~~~~~~~~~~~~
Onboard/osk/osk_audio.c: In function ‘osk_audio_play’:
Onboard/osk/osk_audio.c:101:5: warning: ‘gdk_screen_get_width’ is deprecated [-Wdeprecated-declarations]
  101 |     sw = gdk_screen_get_width(screen);
      |     ^~
/usr/include/gtk-3.0/gdk/gdkscreen.h:58:14: note: declared here
58 | gint gdk_screen_get_width (GdkScreen *screen);
      |              ^~~~~~~~~~~~~~~~~~~~
Onboard/osk/osk_audio.c:102:5: warning: ‘gdk_screen_get_height’ is deprecated [-Wdeprecated-declarations]
  102 |     sh = gdk_screen_get_height(screen);
      |     ^~
/usr/include/gtk-3.0/gdk/gdkscreen.h:60:14: note: declared here
60 | gint gdk_screen_get_height (GdkScreen *screen);
      |              ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:395: build: plugin distutils failed with: exit code=1: /usr/bin/python3.12 setup.py build
I: pybuild base:310: /usr/bin/python3 setup.py build


Reply to: