Commit Graph

3 Commits

Author SHA1 Message Date
Denys Vlasenko
817f533126 kmod.prov: fix and speed it up
For kernel builds, /usr/lib/rpm/kmod.prov is fork+execed by rpmbuild
in "Processing files:" step about 8000 times, single-threaded,
with cumulative run time of ~2 minutes.

Speed up this script, by avoiding additional fork+execing.

Tested to work, observed speedup: almost exactly 2 times faster.

While verifying correctness, noticed that old script was buggy -
it was generating a bogus "Provides:" item - kmod(modules.builtin.modinfo),
because the logic in script was filtering for */*.ko files and
for */modules.builtin* files, and wasn't prepared for
the existence of */modules.builtin.modinfo file.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2019-12-05 13:53:31 +01:00
Josh Boyer
1767166dd5 Fix kmod.prov to deal with compressed modules (#1096349) 2014-05-12 15:05:02 -04:00
Panu Matilainen
dd2a70568b - Move kmod and libsymlink dependency generators here from rpm
- These are specific to Fedora so might as well live here, and
  having them here also avoids having to carry patches in rpm
  for no good reason etc
2014-04-15 10:08:30 +03:00