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

open infra openinfradn at gmail.com
Sun Sep 19 05:48:59 UTC 2021


Hi Xiao,

I have checked the possibilities with Debian project.
Here is the response from Debian dev to this issue. [1]


[1] https://lists.debian.org/debian-devel/2021/09/msg00267.html

Regards,
Danishka


On Sat, Sep 18, 2021 at 2:35 PM open infra <openinfradn at gmail.com> wrote:

> Hi Xiao,
>
> May I know the package names? and arch of them?
> Btw, there is a way to analyse circular dependent packages. [1]
> Debian wiki has leff info about circular build but [2] has something.
>
> In case of installation of fedora/centos/rhel, rpm -Uvh a.rpm b.rpm will
> solve the problem.
>
> [1] https://wiki.debian.org/CircularBuildDependencies
> [2]
> https://www.debian.org/doc/debian-policy/ch-relationships.html#binary-dependencies-depends-recommends-suggests-enhances-pre-depends
>
> Regards,
> Danishka
>
> On Sat, Sep 18, 2021 at 12:24 PM Zhang, Xiao <xiao.zhang at windriver.com>
> wrote:
>
>>   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
>>
>>
>> _______________________________________________
>> Starlingx-discuss mailing list
>> Starlingx-discuss at lists.starlingx.io
>> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20210919/3fd35d5e/attachment.htm>


More information about the Starlingx-discuss mailing list