[Rpm-maint] [rpm-software-management/rpm] Add support for special system-level %include path (#685)

Panu Matilainen notifications at github.com
Mon Apr 29 09:07:24 UTC 2019


> Oh, yes, probably. But is there way to extend it? E.g.:
No, this is not a search path, it's just a single directory. I'm not sure a search path is (reasonably) doable in the spec parser realm.

> That makes sense. But while "those macros are loaded on every single rpm invocation for no good reason", then every Python .spec file would need to have this include. It is not necessarily wrong ...

That's exactly the intention! Like I noted in an earlier comment, the current scheme is fundamentally flawed and this is an attempt to improve it. Take any programming language you like, and imagine it without explicit include/import/use statements and contemplate on that for a while :slightly_smiling_face: 

FWIW, alternatively (or additionally) we could have a similar syntax to load system macro files instead of spec snippets. Macro files are a much more predictable format that can actually be validated, and this would allow (re)use of the existing macro files in distros instead of having to convert them to spec syntax.

-- 
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/685#issuecomment-487508382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190429/180a9639/attachment.html>


More information about the Rpm-maint mailing list