Subject: Re: [devuan-dev] bug#500: Package: usbmuxd calls systemd in its udev rules so it will never start in Devuan

From: Mark Hindley <[email-masked]>
Date: Wed, 29 Jul 2020 10:01:45 +0100

Vernon,

[Congratulations on submitting the 500th Devuan bug! ;)]

On Tue, Jul 28, 2020 at 10:50:58PM -0400, Vernon Van Steenkist wrote:
> Package: usbmuxd
> Version: 1.1.1~git20181007.f838cf6-1 i386
> 
> Beowulf usbmuxd is maintained by Debian. A Devuan usbmuxd package probably
> should be created because the Debian version references systemd in its udev
> rules so usbmuxd will never start under Devuan.

Thanks for this.

[...]

> Suggested /lib/udev/rules.d/85-usbmuxd.rules for a  new Devuan usbmuxd
> package.
> 
> 
> # usbmuxd ("Apple Mobile Device" muxer listening on /var/run/usbmuxd)
> 
> # Forces iDevices to the last USB configuration and runs usbmuxd
> ACTION=="add", SUBSYSTEM=="usb", OWNER="usbmux", ATTR{idVendor}=="05ac",
> ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1",
> ATTR{bConfigurationValue}!="$attr{bNumConfigurations}",
> ATTR{bConfigurationValue}="$attr{bNumConfigurations}", OWNER="usbmux",
> RUN+="/usr/sbin/usbmuxd -u -U usbmux"

I am certainly not an expert on udev rules.

Do you know if/how this can be made to sit alongside the existing systemd rules
without conflicting? i.e only use this rule if systemd is not installed
available?

If so, this patch should go to Debian as this bug will also be present on a
Debian system that is not running systemd as PID1.

Thanks

Mark