Bug 2448

Summary: FILES_split += "/foo//bar" will never match due to the '//'
Product: [Build System, Metadata & Runtime] BitBake Reporter: Mark Hatle <mark.hatle>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Low CC: poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Mark Hatle 2012-05-10 21:29:40 UTC
I had a user working on a new recipe that ran across the following issue:

agentdir = "/usr/scopetools-6.1/"
FILES_${PN}-dbg += "${agentdir}/.debug/*"

When the recipe was built the following message appeared:


WARNING: For recipe wr-opagent, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/scopetools-6.1/.debug/ProfileAgent


Needless to say this turned out to be very tricky to resolve, as it was unclear why it did not work.


Removing the '/' at the end of 'agentdir' fixed the problem.  Either we should detect the // case and resolve it for the end user automatically, or we should have a sanity check that verified that '//' does not appear in the FILES_split variables.