Bug 6418

Summary: Fetcher: Unable to find revision failure for ti-compat-wireless-wl18xx
Product: [Build System, Metadata & Runtime] BitBake Reporter: Maxin B. John (inactive) <maxin.baby.john>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED NOTABUG QA Contact:
Severity: major    
Priority: Undecided CC: bluelightning, poky.bs.watcher, poky.watcher
Version: 1.6   
Target Milestone: ---   
Hardware: Other   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
fetch log file none

Description Maxin B. John (inactive) 2014-06-09 13:40:54 UTC
Created attachment 1997 [details]
fetch log file

When trying to build ti-compat-wireless-wl18xx for omap5-evm in "master" or "daisy", Git fetcher fails to find the revision eventhough it is present. This works fine in "dora" branch.

# bitbake ti-compat-wireless-wl18xx
-------------
Build Configuration:
BB_VERSION        = "1.23.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.10"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "omap5-evm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6+snapshot-20140609"
TUNE_FEATURES     = "arm armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        = "master:2d0c29ee5a36968df011e4f33ae50ed857dbcf65"
meta-ti           = "master:e4abf98729bb3ed555c65e101b227b5c166b9e81"
meta-arago-extras 
meta-arago-distro = "master:6a6e742536ed367dc0565d665bc1ea49a2074adc"
meta-yocto-bsp    = "master:2d0c29ee5a36968df011e4f33ae50ed857dbcf65"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL git://github.com/TI-OpenLink/compat-wireless.git;destsuffix=compat-wireless;name=compat-wireless, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find revision 23a0d62ea1a57327709a77f08d6265ec807a909f in branch master even from upstream
ERROR: Function failed: Fetcher failure for URL: 'git://github.com/TI-OpenLink/compat-wireless.git;destsuffix=compat-wireless;name=compat-wireless'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /media/sdd1/fb/majo/test/poky/build/tmp/work/omap5_evm-poky-linux-gnueabi/ti-compat-wireless-wl18xx/r8.a8.08-r3b/temp/log.do_fetch.36028
ERROR: Task 4 (/media/sdd1/fb/majo/test/poky/meta-arago/meta-arago-extras/recipes-bsp/ti-compat-wireless/ti-compat-wireless-wl18xx_r8.a8.10.bb, do_fetch) failed with exit code '1'
Comment 1 Paul Eggleton 2014-06-11 16:37:30 UTC
In 1.6 (daisy) and master the git fetcher now checks that the SRCREV specified is on the branch specified (or master if no branch is specified). The error is correct, 23a0d62ea1a57327709a77f08d6265ec807a909f is not on the master branch; in fact it doesn't seem to be on any branch at all. We have a means of avoiding the check for situations like this - just append ;nobranch=1 to the entry in SRC_URI.

FYI this was documented in the migration guide for 1.6:

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#migration-1.6-bitbake
Comment 2 Maxin B. John (inactive) 2014-06-11 18:30:42 UTC
Hi Paul,

Thank you very much for the help!

On another note, it will be good to update the minimal requirements for git on documentation:

git version 1.7.8 added the --list option to git-branch
 * "git branch" learned an explicit --list option to ask for branches
   listed, optionally with a glob matching pattern to limit its output.

Current documentation says, Git 1.7.5 or greater. IMO, it should be updated to Git 1.7.8 or greater.