[Rpm-maint] [rpm-software-management/rpm] Add support for macro-only dependency generators (#1053)
notifications at github.com
Thu Feb 6 08:54:02 UTC 2020
In some cases generators are remarkably simple, such as just echoing back the basename of the file in some namespace such as foo(lib.so), and forking out a shell to perform such a mundane task is both hideously slow and plain dumb, when we have quite some string processing facilities and even a full-blown programming language embedded in rpm itself.
This adds support for using macro functions as generators: if the generator macro is a parametric macro, then we call that macro with the file name as the first argument instead of shelling out, and the expansion of the macro is used as the output. Multiple lines in output are allowed, and generator styles can be mixed freely (eg shell out for provides but use macro function for requires etc).
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Add APIs for testing whether a macro is defined and whether its callable
* Add support for macro-only dependency generators
-- File Changes --
M build/rpmfc.c (36)
M rpmio/macro.c (23)
M rpmio/rpmmacro.h (16)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint