[Rpm-maint] [rpm-software-management/rpm] Add support for macro-only dependency generators (#1053)

Panu Matilainen notifications at github.com
Thu Feb 6 09:31:31 UTC 2020


For an example, take a look at kmod.prov (which is actually what inspired this whole thing): the core of it boils down to echoing the basename of the filename back, stripped of suffix. For each, it spawns a shell and runs external utilities. When you consider that the kernel has (tens of) thousands of modules, it adds up.

With the existing kmod.prov script, `find /lib/modules/`uname -r`| ./rpmdeps --provides` (consisting of ~3500 kernel modules) takes around 30s when hot in cache. The macro function version runs under two seconds, which is dominated by the file classifying.

-- 
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/1053#issuecomment-582814304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200206/388330d5/attachment-0001.html>


More information about the Rpm-maint mailing list