Package: debhelper
Version: 13.3.4

tmpfile.d files may reference users/groups that are created by sysusers.d
files so these should be created first.

Currently they are sequenced the other way:
```
$include_if_compat_X_or_newer->(13, 'dh_installtmpfiles'),
$include_if_compat_X_or_newer->(14, 'dh_installsysusers'),
$include_if_compat_X_or_newer->(11, 'dh_installsystemd'),
```
which can result in errors like this on package installation:

```
Preparing to unpack foo_0.1_all.deb ...
Unpacking foo (0.1) ...
Setting up foo (0.1) ...
foo.conf:2: Failed to resolve group 'mygroup'.
Creating group mygroup with gid 997.
```

This would also be similar to the relationship between tmpfiles and
sysusers in systemd where there is and 'After=' relationship
https://github.com/systemd/systemd/blob/5efbd0bf897a990ebe43d7dc69141d87c404ac9a/units/systemd-tmpfiles-setup.service#L15

Reply via email to