[Starlingx-discuss] how to deal with loop dependent in building stage

Zhang, Xiao xiao.zhang at windriver.com
Sat Sep 18 06:50:18 UTC 2021


  Hi,


We are trying to construct basic environment for porting starlingX on 
Debian. While when I dealing with the build order of user space 
packages, the loop dependent problem blocked me.

The easiest example: source package A build depend on B while B is also 
build depend on A. We can just build A, B, A, B and only use the later 
result.

A fairly complex example: A depends on B and C, B depends on D, C 
depends on F, D depends on A and F. In this case there will be three 
cycles as below:

A->B->D->A, A->B->D->F->A, A->C->F->A . Even more, if in some cases we 
needn't B or D, then we have only one cycle: ACFA

I tried to find a method to deal with it but failed.

So I wonder how did we deal with such loop dependent before, on CentOS. 
Any advises about it?


Thanks a lot

Xiao




More information about the Starlingx-discuss mailing list