Package: urfkill
Version: 0.5.0-8
Severity: important
Tags: patch regression

Dear Maintainer,

0.5.0-3 switched urfkill to logind ("Switch to logind for session tracking, 
consolekit is deprecated"), and 0.5.0-7 made it depend on default-logind | 
logind.
In 0.5.0-8 debian/rules no longer passes that option: the line before it lost 
its trailing backslash and the option itself is commented out, so configure 
takes its default, ConsoleKit.
On a system with logind and without ConsoleKit, urfkill.service then fails at 
every start:

  <warning> GetSeats Failed: 
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.ConsoleKit was not provided by any .service files
  <warning> failed to setup session checker
  <warning> Could not startup; bailing out
  urfkill.service: Main process exited, code=exited, status=1/FAILURE

With the fix below, the same source builds a urfkilld that asks logind, and 
urfkill.service starts and manages the switches.
I tested both builds on a laptop with three rfkill switches (ideapad_wlan, 
ideapad_bluetooth, phy0), running forky's packages with systemd-logind and no 
ConsoleKit: 0.5.0-8 as shipped ends in start-limit-hit, the fixed build stays 
active.
0.5.0-8 also added 06_fix_autoconf272_session_tracking.patch, so the commented 
line may be a leftover of that build fix.

The fix, in debian/rules:

--- a/debian/rules
+++ b/debian/rules
@@ -16,8 +16,8 @@
 
 override_dh_auto_configure:  debian/urfkill.service
        dh_auto_configure -- \
-               --libexecdir=\$${libdir}/urfkill 
-               #--with-session-tracking=systemd
+               --libexecdir=\$${libdir}/urfkill \
+               --with-session-tracking=systemd
 
 override_dh_installinit:
        dh_installinit --name=urfkill

I found this with AI assistance and checked it myself on Debian forky.

Daniel Ramos


-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 7.3.0-stereo3d13 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages urfkill depends on:
ii  dbus [default-dbus-system-bus]  1.16.2-8
ii  libc6                           2.43-7
ii  libexpat1                       2.9.0-1
ii  libglib2.0-0t64                 2.90.1-2
ii  libpam-systemd [logind]         262-1
ii  libpolkit-gobject-1-0           128-1
ii  libudev1                        262-1

urfkill recommends no packages.

urfkill suggests no packages.

-- no debconf information

Reply via email to