Wind River Support Network

HomeDefectsLIN1019-3868
Fixed

LIN1019-3868 : Premirror not used when parsing linux-yocto-rt

Created: Dec 30, 2019    Updated: Feb 20, 2020
Resolved Date: Jan 21, 2020
Found In Version: 10.19.45.2
Fix Version: 10.19.45.4
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: Build & Config

Description

Premirror is not being used when the rt branch is being parsed when NO_NETWORK is being set and no local cache is found.
This leads to a project build error.

Steps to Reproduce

Use the following steps:

bash-4.3$ git clone --branch WRLINUX_10_19_LTS_RCPL0002 [https://windshare.windriver.com/ondemand/remote.php/gitsmart/WRLinux-lts-19-Core/wrlinux-x]
 -bash-4.3$ ./wrlinux-x/setup.sh --machines qemux86-64
 -bash-4.3$ . ./environment-setup-x86_64-wrlinuxsdk-linux
 -bash-4.3$ . ./oe-init-build-env
 -bash-4.3$ mv ../layers/wrlinux/git ../layers/wrlinux/git2
 -bash-4.3$ vim conf/local.conf
 ...
 #
 # Network Control
 #
 # Disable bitbake from being able to access the network
 BB_NO_NETWORK ?= '0'
 BB_NO_NETWORK_pn-linux-yocto-rt = '1'
 ...
 -bash-4.3$ bitbake wrlinux-image-std
 Processing Wind River templates files...
 WARNING: Host distribution "fedora-21" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
 ERROR: ExpansionError during parsing /workspace/layers/oe-core/meta/recipes-kernel/linux/linux-yocto-rt_4.19.bb########################################################## | ETA: 0:00:04
 Traceback (most recent call last):
 File "/workspace/layers/oe-core/bitbake/lib/bb/fetch2/__init__.py", line 1167, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7f16b6f98590>, d=<bb.data_smart.DataSmart object at 0x7f16b7446cd0>, name='machine'):
 if srcrev == "AUTOINC":
 > srcrev = ud.method.latest_revision(ud, d, name)

File "/workspace/layers/oe-core/bitbake/lib/bb/fetch2/__init__.py", line 1562, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7f16b6f98590>, d=<bb.data_smart.DataSmart object at 0x7f16b7446cd0>, name='machine'):
 except KeyError:
 > revs[key] = rev = self._latest_revision(ud, d, name)
 return rev
 File "/workspace/layers/oe-core/bitbake/lib/bb/fetch2/git.py", line 623, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7f16b6f98590>, d=<bb.data_smart.DataSmart object at 0x7f16b7446cd0>, name='machine'):
 """
 > output = self._lsremote(ud, d, "")
 # Tags of the form ^{} may not work, need to fallback to other form
 File "/workspace/layers/oe-core/bitbake/lib/bb/fetch2/git.py", line 611, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7f16b6f98590>, d=<bb.data_smart.DataSmart object at 0x7f16b7446cd0>, search=''):
 if ud.proto.lower() != 'file':
 > bb.fetch2.check_network_access(d, cmd, repourl)
 output = runfetchcmd(cmd, d, True)
 File "/workspace/layers/oe-core/bitbake/lib/bb/fetch2/__init__.py", line 894, in check_network_access(d=<bb.data_smart.DataSmart object at 0x7f16b7446cd0>, info='git -c core.fsyncobjectfiles=0 ls-remote git://git.yoctoproject.org/linux-yocto.git ', url='git://git.yoctoproject.org/linux-yocto.git'):
 if bb.utils.to_boolean(d.getVar("BB_NO_NETWORK")):
 > raise NetworkAccess(url, info)
 elif not trusted_network(d, url):
 bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception NetworkAccess: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command git -c core.fsyncobjectfiles=0 ls-remote git://git.yoctoproject.org/linux-yocto.git (for url git://git.yoctoproject.org/linux-yocto.git)

Summary: There was 1 WARNING message shown.
 Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Live chat
Online