[Rpm-maint] [rpm-software-management/rpm] RFE: BuildRequires generator (#104)

nim-nim notifications at github.com
Sat Feb 17 08:57:13 UTC 2018


> Maybe I'm missing the point of the issue (OP to decide), but I think this has real and pretty trivial engineering solution for some languages: - distribution provides heuristic for language Foo in foo-build package - package Baz puts 'foo-build' into build requires - package Baz adds "%build_requires --script %foo_analyzer" to declare that the buildsystem should attempt to generate build requires after %prep with %foo_analyzer script - this brings new file/value in generated SRPM to let build-system know - mock finds %build_requires section in SRPM, so it - does installroot + and installs BuildRequires as usually - runs %prep - runs %foo_analyzer from %build_requires - runs the rest of the build

That would work too, as long as you take into account a package may declare several %foo_analyzer s and  you probably need to loop their execution with BR population till there is no new results to handle complex cases transparently. That's an analog of my "implicit looping".

Replace script with --command to make the people that reimplement everything as binaries happy

-- 
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/104#issuecomment-366427605
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180217/8bd1a04b/attachment.html>


More information about the Rpm-maint mailing list