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

Bug#941488: dbus-test-runner: autopkgtest fails with libglib2.0-0 (>= 2.62)



Source: dbus-test-runner
Version: 16.10.0~bzr100+repack1-4
Severity: serious
Justification: https://release.debian.org/bullseye/rc_policy.txt §6a
Tags: bullseye sid
Control: block 933548 by -1
X-Debbugs-CC: debian-ci@lists.debian.org
User: debian-ci@lists.debian.org
Usertags: regression

With the recent upload of GLib 2.62 to unstable, dbus-test-runner's
autopkgtest has started failing, because it uses deprecated macros in
conjuction with -Werror.

https://ci.debian.net/data/autopkgtest/testing/amd64/d/dbus-test-runner/3045286/log.gz
> test-libdbustest-mock.c: In function ‘test_signals’:
> test-libdbustest-mock.c:392:13: error: g_main_context_pending [-Werror]
>   392 |  while (g_main_pending())
>       |             ^~~~~~~~~~~~~           
> test-libdbustest-mock.c:393:13: error: g_main_context_iteration [-Werror]
>   393 |   g_main_iteration(TRUE);
>       |             ^~~~~~~~~~~~~             
> test-libdbustest-mock.c:413:13: error: g_main_context_pending [-Werror]
>   413 |  while (g_main_pending())
>       |             ^~~~~~~~~~~~~           
> test-libdbustest-mock.c:414:13: error: g_main_context_iteration [-Werror]
>   414 |   g_main_iteration(TRUE);
>       |             ^~~~~~~~~~~~~             

GLib recently gained a way to annotate macros as deprecated, so this
now raises warnings where it did not previously. However, the macros in
question have been deprecated since GLib 2.2, released in 2002.

A simple solution would be to not use -Werror here. A better solution
would be to use the suggested replacements (or of course you could
do both).

Regards,
    smcv


Reply to: