Can mock compile SRPMS in an order that doesn't result in a build error #1049
-
if I want to compile lets say 3 source rpms and lets say there is some kinda dependency between them such that they can be only compiled in a certain order ( let's say srpm2--> srpm3--> srpm1) . Is there any way for mock to find this order first before compilation so that we can compile it in one shot. I have tried out the --recurse and --rebuild with --chain, but this way it seems like a brute force way. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You have to specify the order. It processes SRPMs in the order you give them when you use |
Beta Was this translation helpful? Give feedback.
-
For context: several people already had this idea. Me too. This must be easy, right... I will do this over the weekend... Hmm, what to do with the %if conditions? This must be evaluated in the target chroot. And what about Software collections where macros are evaluated in the buildroot? We have to at least initiate the buildroot. And what about Dynamic buildrequires? We have to reach the %prep phase... Well, the package is almost built already - the brute force method does not sound so bad, let's keep it. |
Beta Was this translation helpful? Give feedback.
-
Also there are packages depending on those What I do is discover the dependencies the hard way first, then create a Makefile which specifies what depends on what. I write it once, then remaking builds things once and in a correct order. Well, since I've been doing it for quite a long time, the Makefile got a bit more involved, but this basic idea is still there. |
Beta Was this translation helpful? Give feedback.
You have to specify the order. It processes SRPMs in the order you give them when you use
mock --chain
.