Skip to content
Snippets Groups Projects

speakersafetyd: d/rules: override dh_installsystemd

1 unresolved thread

I talked to the Asahi team, and was told that speakersafetyd.service should never be enabled in systemd, but rather only triggered by the udev rules. (I myself had issues caused by the service failing when running in a VM). This MR implements this requirement. Installation of the systemd service is done within the execute_after_dh_install target, so overriding dh_installsystemd only disables auto-activation and auto-start of the service.

cc/ @tobhe @ah

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Andreas Henriksson
  • Thanks for looking into this!

  • Noisy Coil added 1 commit

    added 1 commit

    • 0c8e36fa - speakersafetyd: d/rules: override dh_installsystemd

    Compare with previous version

  • Noisy Coil resolved all threads

    resolved all threads

  • Andreas Henriksson approved this merge request

    approved this merge request

  • Noisy Coil added 32 commits

    added 32 commits

    Compare with previous version

  • Looking at this a second time, I wonder: Should we also disable speakersafetyd.service on upgrades from old versions?

    eg. something like this:

    > cat debian/postinst 
    #!/bin/sh
    set -e
    
    if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions -- "$2" le-nl "0.1.9-2~"; then
    	# previous version mistakenly enabled speakersafetyd.service on install
    	# This can be dropped in trixie+1
    	if deb-systemd-helper --quiet was-enabled 'speakersafetyd.service'; then
    		deb-systemd-helper disable 'speakersafetyd.service' >/dev/null || true
    	fi
    fi
    
    
    #DEBHELPER#

    Can someone verify the started state is the same of speakersafetyd.service after upgrade with speakersafetyd running and not running while upgrading?

    PS. Please answer "why" (not "what" - which can be seen in commit/source diff) in debian/changelog (and/or commit messages)!

  • Noisy Coil added 47 commits

    added 47 commits

    • 9bcb3045...a546e313 - 43 commits from branch rust-team:master
    • 68707d4a - speakersafetyd: d/rules: do not enable speakersafetyd.service on install
    • b157b0fd - speakersafetyd: add d/RFS
    • d62c2a15 - speakersafetyd: d/postinst: disable speakersafetyd.service on upgrades...
    • dc36df3b - speakersafetyd: d/debcargo.toml: fix long description indentation

    Compare with previous version

  • Andreas Henriksson resolved all threads

    resolved all threads

  • Noisy Coil added 2 commits

    added 2 commits

    • 02847ac9 - speakersafetyd: d/speakersafetyd.postinst: disable speakersafetyd.service...
    • 62ecabfd - speakersafetyd: d/debcargo.toml: fix long description indentation

    Compare with previous version

  • Matthias Geiger mentioned in commit 34351de3

    mentioned in commit 34351de3

  • Please register or sign in to reply
    Loading