WARNING: dh_installsystemd is moving unit files to /usr/lib/systemd/system

Niels Thykier niels at thykier.net
Mon Aug 23 20:51:54 BST 2021


Michael Biebl:
> Am 21.08.21 um 10:34 schrieb Niels Thykier:
>> Also, before that, we will need a solution to the generators issue
>> (#992554 comment #25 and below).
> 
> Not only generators. For systemd we have to consider
> 
> [... about 50 packages ...]
> 
> systemd does not support reading scripts/files from a /usr/lib
> counterpart and we'd have to patch various places in systemd to allow
> that. Those patches should be simple though.
> 

Ok, I think at this level we should do that transition manually in the
affected packages (given number of packages involved and the lack of
support in systemd/stable).


> For udev, it's a bit trickier.
> While udev supports reading udev .rules files from /lib/udev/rules.d and
> /usr/lib/udev/rules.d, udev allows to run programs via RUN+= or
> IMPORT{program}=
> If not specified with a full path, it will look up the binary in /lib/udev
> There are quite a few packages which hard-code a full path, like e.g.
> 
> 
> [...]
> 
> Moving everything from /lib/udev to /usr/lib/udev would break that
> reference.
> 
> Then there are also quite a few .rules files which don't hard-code the
> full path. For those we'd have to patch udev to lookup the binaries in
> /lib/udev and /usr/lib/udev.
> 
> Not quite sure, how we'd coordinate that. Maybe only automatically move
> the .rules files and then file bugs against packages shipping helpers in
> /lib/udev to do the migration manually (by moving the helper to
> /usr/lib/udev and updating the .rules files accordingly).
> 
> A rough estimation suggests that this affects 60+ packages.
> 
> # apt-file search -x ^/lib/udev/  | grep -v rules.d | grep -v hwdb |
> grep -v rc_keymaps | grep -v ^udev: | grep -v ^systemd: | cut -f2 -d':'
>  [...]
> 
> Regards,
> Michael
> 
> 

Would work for me.  There about 240 packages using /lib/udev/rules.d
(unstable/testing) so we are looking at auto-migrating somewhere between
180 and 240 packages away from /lib/udev automatically with that flow
leaving 60 to be patched manually in a slower pace.


Before I start, can you please confirm that:

 * udev in stable/oldstable support /usr/lib/rules.d ?
   (oldstable is for backports, re: #992711)

 * that you feel we are ready to go with debhelper doing this from the
   next upload.  For reference, I am out of touch with lintian (etc.)
   on this topic.

Thanks,
~Niels



More information about the Pkg-systemd-maintainers mailing list