[bitbake-devel] [PATCH V2] fetch2/gitsm: fix config file concurrent update race
Stefan Agner
stefan at agner.ch
Sat Jan 26 13:50:30 UTC 2019
On 26.01.2019 14:35, Richard Purdie wrote:
> On Sat, 2019-01-26 at 13:07 +0100, Patrick Vacek wrote:
>> On Sat, Jan 26, 2019 at 11:15 AM Stefan Agner <stefan at agner.ch>
>> wrote:
>> > > So it seems to be that something in the recipe was expecting
>> > semi-broken
>> > > behavior.. and its actually a recipe problem.
>> >
>> > Agreed, in this case we need to fix the recipe.
>>
>> Sorry, I must be missing something. What might be wrong with the
>> recipe? Is there more that needs to be specified than a SRCREV and a
>> branch? As far as I understand git, it keeps track of the submodules,
>> so I don't know what other information there would be to provide. The
>> reason this particular case is difficult is because there are
>> recursive submodules. When we build aktualizr, we have to be careful
>> to specify that. See
>> https://github.com/advancedtelematic/aktualizr#building:
>>
>> git submodule update --init --recursive
>
> The problem is the checkout from the old version of the fetcher was
> broken, it incorrectly checked out that SRCREV. The recipe was written
> to build that broken checkout.
>
> We've fixed the fetcher and Mark is saying that it now checks out the
> correct thing (as compared with a git checkout outside of the build
> system, independent of the fetcher).
>
> The recipe assumed the old broken code so now fails to build. The
> recipe therefore needs to change to adapt to the now correct source
> code.
I was not able to reproduce Marks findings.
In particular:
> For instance, the submodule partial/extern/isotp-c:
>
> In the current version is checked out on
> 4c5904bff3ed83ec471c8586b5faed62898d0224. (Which matches the manual git behavior.)
>
> While the gitsm fetcher in the older system checkedout commit
> 614fe48fe55aeea98b49804b7e31ef2d304f62de. Which is incorrect.
That wasn't the case for me, the old code checked out 4c5904bf just
fine.
However, I think Ming Liu's recent findings point out the culprit.
The submodule isotp-c requires a submodule on its own, and the new code
seems not to unpack that.
--
Stefan
More information about the bitbake-devel
mailing list