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

Florian Festi notifications at github.com
Thu Oct 25 08:44:51 UTC 2018


I agree that %prep is needed to do this. But there is another thing to think about:
Right now BuildRequires are the Requires of the SRPM. So the procedure is to build the SRPM and then use its Requires to set up the build root. So you do not have any Requires for building the SRPM. And indeed the SRPM can be build without any additional tools and libraries.
But for determining the dynamic BuildRequires (or even just running %prep) you will need additional tools. So the question is where do you get the Requires from for these.
So you probably need to do:

- Build SRPM
- See that it contains dynamic BuildRequieres
- Rebuild SRPM with BuildRequires(pre) installed running %prep and the dynamic Buildrequires scripts
- Setup the build root with the SRPM and build the binary rpms


-- 
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-432966176
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181025/356896ba/attachment.html>


More information about the Rpm-maint mailing list