Fixed
Created: Sep 18, 2015
Updated: Dec 3, 2018
Resolved Date: Oct 8, 2015
Found In Version: 6.0.0.23
Fix Version: 6.0.0.26
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config
The client encounters some errors when using bitbake with WRL6 related to svn fetch with AUTOREV on branches.
Here's the error he encounters:
WARNING: Failed to fetch URL svn://svn.local.spinetix.com/svn/dev/genesis/branches/release-4.0/device;module=cputest;name=cputest;subdir=raperca/device;protocol=https, attempting MIRRORS if available
WARNING: Fetcher failure: Fetch command failed with exit code 1, output:
Updating '.':
svn: E160005: Target path '/genesis/branches/release-4.0/device/cputest' does not exist
The problem is because the svn path /genesis/branches/release-4.0/device/cputest is a branch, the root of the branch is higher in the hierarchy (it is /genesis/branches/release-4.0/), there has been no modification since the revision where it was branched and AUTOREV is enabled.
As AUTOREV is enabled bitbake's svn fetcher uses "svn info" to get the "Last Changed Rev", except that in this case svn will return the revision of the last change to the file contents, which is before the branching revision.
It will then use this revision to fetch the source from the branch, but at that revision the branch did not exist, hence the error.
He mentioned that there is already an upstream fix available here: http://git.openembedded.org/bitbake/commit/lib/bb/fetch2/svn.py?id=17d8ef0b813a05c231e3dbe6e8bc82a4a9b1d2f8
Can this fix be implemented?
He laso added that this would be a better solution for LIN6-7306 as hehttps://jira.wrs.com:8443/browse/LIN7-4272 blieves that the fix for that one breaks builds where paths have been deleted from subversion at a revision later than the revision being fetched. There is a clone of this defect at LIN6-7742.