Bug 8720

Summary: GITSM do_unpack is trying to copy from /modules which does not exists in project cloned.
Product: [Build System, Metadata & Runtime] BitBake Reporter: aravind valluri <aravind.feb4>
Component: bitbakeAssignee: aravind valluri <aravind.feb4>
Status: VERIFIED NOTABUG QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: major    
Priority: Medium CC: bogdanx.a.voiculescu, hakan.bengtsen, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description aravind valluri 2015-11-24 07:07:02 UTC
While unpacking gitsm is looking for modules in project which has just been cloned. but project doesn't have any such directory causing the below failure.

see line 134 in file

https://github.com/openembedded/bitbake/blob/master/lib/bb/fetch2/gitsm.py


7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin:/opt/dell/srvadmin/bin"; export HOME="/home/xaraval"; cp -r /home/xaraval/Embedded_Testing/DL_DIR/git2/gerritforge.lmera.*****.se.29418.com-main/modules /home/xaraval/MIM_TOOL/build30/tmp/work/x86_64-poky-linux/com/1.0-r26/git//.git/ 
| DEBUG: Python function base_do_unpack finished 
| DEBUG: Python function do_unpack finished 
| ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 1, output: 
| cp: cannot stat '/home/xaraval/Embedded_Testing/DL_DIR/git2/gerritforge.lmera.*****.se.29418.com-main/modules': No such file or directory
Comment 1 Richard Purdie 2015-11-26 15:22:20 UTC
So how do we reproduce this error? Is there an example SRC_URI which fails?
Comment 2 aravind valluri 2015-12-24 16:41:31 UTC
Perform a clean before run
Checked the comment in gitsm.py
Comment 3 Bogdan Alexandru Voiculescu 2016-01-12 07:46:02 UTC
Verified per above comments and no answers from the reporter.