]> code.ossystems Code Review - openembedded-core.git/commit
package.bbclass: better handling of middle-path dir symlinks
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 4 Aug 2016 09:02:11 +0000 (12:02 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:13 +0000 (10:45 +0100)
commit29d1738329ddf4e63844a9ad1158a1d41e2ee343
treed27ae5cf9c17b3e96919ab454eac85a8690619e9
parente364ecc1216b04f2b61a88a623d2e9b5199af261
package.bbclass: better handling of middle-path dir symlinks

For example in a directory structure like this
    .
    ├── symlink -> foo/bar
    └── foo
        └── bar
            └── file
'file' could be referenced by specifying e.g. 'foo/bar/file' or
'symlink/file'.  In cases like this populate_packages() might crash if
the file was referenced (in FILES) via the symlinked directory. The
outcome depends on how the user defined FILES_pn.  This patch should
make the function behave more consistently. It looks for files which are
referenced via symlinked directories and handles them separately,
failing if their parent directory is a non-existent path. For example,
defining FILES_{PN} = "symlink/file" causes a build failure because
symlinks target 'foo/bar' is not included at all.

[YOCTO #9827]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package.bbclass