[bitbake-devel] [PATCH] BB_NO_NETWORK: Fallback to local source for git lsremote

Jérémy Rosen jeremy.rosen at smile.fr
Mon Aug 8 11:24:23 UTC 2016


On 08/08/2016 11:55, Richard Purdie wrote:
> On Mon, 2016-08-08 at 08:34 +0000, Tobias Hagelborn wrote:
>> Change made to enable building offline also with git tag references
>> in SRC_URI.
>>
>> If BB_NO_NETWORK is set, fallback to search for tags and revisions
>> in local DL_DIR / GITDIR in order to avoid network access.
> I'm not sure I agree with this since you'd get different build results
> depending on whether BB_NO_NETWORK is set or not.
>
> I think if BB_NO_NETWORK is set, its reasonable to assume that the
> configuration should be locked down and that BB_NO_NETWORK should not
> have other side effects like this.
>
> It would also make it very hard to detect unlocked configurations
> during testing which currently are quite easily identified.

To be honest, this is a real world problem I have on a regular basis...

The problem we have is that our customers want to keep an archive for 
(very) long term support and they test offline mode.

This problem means that we have to set all our SRC_URI to git SHA 
instead of the much more readable and easy to check git tags.


you think to assume that a reference is a branch, but the real-life 
problem is when reference is a tag. Tag don't move so this is
a case of locked configuration, but i'm not sure how to handle it.

Is there a way to have the best of both world somehow ?

Regards
Jérémy Rosen

> Cheers,
>
> Richard




More information about the bitbake-devel mailing list