summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2011-09-16 10:28:27 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-16 17:23:59 +0100
commitf5a1b3c8f7e252def9ffb269f52f946c826ae851 (patch)
treea93aac11ea0297a8179a8d2384df40075c80ca4d /meta/classes/package.bbclass
parentbb0cc3cfa69ce02a25e5b7b22df0e5554f6592fb (diff)
downloadpoky-f5a1b3c8f7e252def9ffb269f52f946c826ae851.tar.gz
package.bbclass: fix spurious 'installed but not shipped' warning
For packages that have files installed that aren't in a subdirectory, the following build WARNING is emitted (this for initramfs-live-boot as an example): WARNING: For recipe initramfs-live-boot, the following files were installed but not shipped in any package: WARNING: init The problem is that the filenames added to the 'seen' array are always added with a path separator at the beginning of the filename, but when the package dir is walked for comparison, any files at the top-level will be missing the beginning path separator and the comparison will fail despite the fact that the file was actually packaged. This because the remainder between the dirname and the dvar base name is used in the path join and in the case of files at the top-level, the remainder is the empty string, where it should be '/' for comparison purposes. (From OE-Core rev: cb19503139b9102f02ba3e5be63d5e85f280f2ef) Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 73e8f6365f..3dbe308d0e 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -936,8 +936,11 @@ python populate_packages () {
936 936
937 unshipped = [] 937 unshipped = []
938 for root, dirs, files in os.walk(dvar): 938 for root, dirs, files in os.walk(dvar):
939 dir = root[len(dvar):]
940 if not dir:
941 dir = os.sep
939 for f in files: 942 for f in files:
940 path = os.path.join(root[len(dvar):], f) 943 path = os.path.join(dir, f)
941 if ('.' + path) not in seen: 944 if ('.' + path) not in seen:
942 unshipped.append(path) 945 unshipped.append(path)
943 946