> But why? If a package contains a config is /usr/lib/sysusers.d/, why not to 
> ensure that it is installed after systemd-sysusers binary is present and so 
> the scriptlet which creates users can be executed?

Yes, in that case the dependency is warranted.

> If there is just a scriptlet which calls `systemctl preset`

Each distribution can do this as they see fit, but at least in Fedora 
systemd.rpm calls `preset-all` upon installation, so the effect is the same no 
matter if packages with units are installed before or after.

> In most cases, I agree, it is not needed, but seems to be not harmful.

The reason to minimize dependencies is avoidance of circular dependencies. When 
there's a circular dependency, dnf will have to break the loop by ignoring some 
dependency, which can break some other script where the dependency is actually 
valid.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1257#issuecomment-640532705
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to