Bug 5380 - Perforce fetch renames sub folders
Summary: Perforce fetch renames sub folders
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5.1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-10-24 13:41 UTC by Katutxakurra
Modified: 2013-11-25 14:54 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
perforce.py patch (467 bytes, patch)
2013-10-24 13:41 UTC, Katutxakurra
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!