There clearly is some chicken - egg problem here as one will likely need some 
tools to determine the dependencies for the build. So there needs to be a multi 
step process:

Getting the BuildRequires that are needed to determine the dynamic 
Buildrequires 
Generating the SRPM with all the BuildRequires
Get all BuildRequires.
Building the Binary RPMs.

This is clearly not possible with most of the existing build systems. So 
changing this will require changes to basically all of them. We would probably 
need to add something like BuildRequires(srpm) and add a new section in the 
spec file that can be used to create the dynamic BuildRequires.

Another question is on what files this BuildDeps generator/section should 
operate. Obviously executing %prep before hand would be very helpful for many 
use cases.

The next question is whether the Dependencies should be generated automatically 
- by scripts provided by rpm and run in the background or if packagers would 
need to write their own section generating the dependencies - may be by 
executing some rpm provided scripts.

-- 
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-264459206
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to