[Rpm-maint] [rpm-software-management/rpm] Ocaml dependency generators running on all ELF files (#1173)
Panu Matilainen
notifications at github.com
Thu Apr 9 11:25:51 UTC 2020
While looking at dependency generation performance, noticed that PR #1070 causes OCaml dependency generators to execute on *all* ELF files it ever encounters, because of this:
```
+%__ocaml_magic ^(ELF|Objective caml|OCaml) .*$
+%__ocaml_path .(cma|cmi|cmo|cmx|cmxa|cmxs)$
```
What makes it particularly bad is that this is shipped with rpm-build itself, so it affects *everything*.
For example eg kernel dependency generation to take 50+ seconds on my laptop when previously it was some 30+ seconds. We need to be more selective here, one way or the other.
The current rule matches *either* magic or path as OCaml files, but was the intention to match only if both match? @olafhering , @rwmjones ?
--
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/issues/1173
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200409/73f54901/attachment-0001.html>
More information about the Rpm-maint
mailing list