Skip to contentSkip to conversation

Git operations during parse

DISCUSSION [email protected] 2 participants 3 messages Sep 13, 2021

lore
Share & tools
lore
#0 lore raw

It appears that during bitbake parse phase, git operations are performed. Is this true? It seems that network operations are performed before the dependency tree is computed. As a result, a build may fail in the parse phase due to a failure to reach a git repo that ultimately is not needed because the package it is in does not end up in the dependency tree. Is that correct?

#1 lore raw
Quoted 1 line · On Mon, 2021-09-13 at 11:23 -0700, [email protected] wrote:

It appears that during bitbake parse phase, git operations are performed.

It depends how you have recipes and bitbake configured. It can be configured such that sources are pulled from upstream git repos which are checked for updates or it can be configured such that it doesn't touch the network at all.

Quoted 4 lines

Is this true? It seems that network operations are performed before the dependency tree is computed. As a result, a build may fail in the parse phase due to a failure to reach a git repo that ultimately is not needed because the package it is in does not end up in the dependency tree. Is that correct?

Depending on the configuration that could happen, but it can be configured such that it doesn't/can't.

We do recommend recipes don't default to touching the network.

Cheers,

Richard

#2 lore raw

Thanks! Are there particular variables that play a role in avoiding network operations during parse? Is it SRCREV? BB_NO_NETWORK doesn't seem right for our use case. We want the build to update from our repos during fetch, just not during parsing.