Bug 2448 - FILES_split += "/foo//bar" will never match due to the '//'
Summary: FILES_split += "/foo//bar" will never match due to the '//'
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low minor
Target Milestone: 1.3
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-05-10 21:29 UTC by Mark Hatle
Modified: 2012-05-30 16:33 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

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