[Rpm-maint] [rpm-software-management/rpm] Add OrderWithRequires dependency generation (#1257)

Zbigniew Jędrzejewski-Szmek notifications at github.com
Mon Jun 8 11:00:52 UTC 2020


> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200608/0b797267/attachment.html>


More information about the Rpm-maint mailing list