Bug 5380

Summary: Perforce fetch renames sub folders
Product: [Build System, Metadata & Runtime] BitBake Reporter: Katutxakurra <katutxakurra>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: 1.5   
Target Milestone: 1.5.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
perforce.py patch none

Description Katutxakurra 2013-10-24 13:41:22 UTC
Created attachment 1577 [details]
perforce.py patch

The following sintax fetches the code from a perforce repository:

P4PORT = "host:port"
FETCHCOMMAND_p4 = "p4"

P4CHANGELIST = "changelistnumber"

PR = "r0"
S = "${WORKDIR}"

SRC_URI = " \
p4://depot/folder/...;module=localfolder/localsubfolder;changeslist=${P4CHANGELIST} \
"

However, the subfolders of //depot/folder/... get renamed when mapped to the local folder structure. They lose the first 3 letters.

The attached change worked for me, It changes
- base = path[:which]
+ base = path[:which-1]

in the perforce.py from yocto 1.5 dora.

Thanks
Comment 1 Richard Purdie 2013-11-25 14:54:58 UTC
Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6ddb9bf0976169fde7eee16d70a83210aa354416. Thanks for the patch!