Dear Maintainer,
After upgrading unattended-upgrades from 2.12+nmu1 to 2.13 on Debian
testing/unstable (forky/sid), the unattended-upgrades-shutdown daemon
throws a PyGIDeprecationWarning in the system logs:
"PyGIDeprecationWarning: GLib.unix_signal_add is deprecated; use
GLibUnix.signal_add instead"
The attached DEP-3 patch migrates the code cleanly to
GLibUnix.signal_add while safely maintaining fallback signature
compliance (*args positional parameter swallowing) for setups running
without python3-gi. Tested successfully on a live unit with SIGHUP handling.
Description: Fix GLib.unix_signal_add deprecation warning
Under newer PyGObject/GLib releases (such as those in Debian
trixie/forky),
calling GLib.unix_signal_add issues a PyGIDeprecationWarning because the
function has been relocated to the platform-specific GLibUnix namespace.
.
This patch migrates the call to GLibUnix.signal_add. To maintain runtime
fallback compatibility with environments lacking python3-gi (which relies
on native python signal.signal), the internal signal_handler
signature has
been modified to use *args, ensuring it safely handles both standard Unix
frame arguments and GLib user_data contexts.
Author: Florian Neumeyer <flone@flone.de>
Forwarded: no
Last-Update: 2026-08-30