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

mikhailnov notifications at github.com
Sat Jun 6 19:36:56 UTC 2020


It was possible to generate Requires, Recommends etc. using external dependency generators.
Adding ability to generate OrderWithRequires.

Example use case:

When a package contains a systemd unit, %systemd_* macros are usually used;
it is usefull to add "OrderWithRequires: systemd" in this case to ensure
that systemd is installed before that package.

It will help to avoid adding "%systemd_ordering" manually to all packages using systemd.
Having systemd preinstalled before packages with systemd scriptlets is really important,
otherwise those scriptlets fail silently, and the resulting ISO or chroot may be broken.

The same makes sense for e.g. systemd-sysusers, systemd-tmpfiles.

An RPM generator using this functionality was implemented: https://abf.io/import/order-rpm-generators
Rebuilding packages with systemd stuff in rosa2019.05 using this generator has already helped
to improve installation order, e.g. make e.g. openvpn be installed when systemd already exists
in a big transaction with ~3500 packages when building a big ISO image.
Before that openvpn was installed when systemd did not exist yet.

P.S. This patch adds %__find_orderwithrequires, maybe that is legacy code that should not be changed.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1257

-- Commit Summary --

  * Add OrderWithRequires dependency generation

-- File Changes --

    M build/rpmfc.c (10)
    M build/rpmfc.h (7)
    M tools/rpmdeps.c (6)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1257.patch
https://github.com/rpm-software-management/rpm/pull/1257.diff

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


More information about the Rpm-maint mailing list