]> code.ossystems Code Review - openembedded-core.git/commit
populate_sdk_base: Fix grep command usage on old hosts
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Jul 2014 16:55:05 +0000 (17:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Aug 2014 08:55:15 +0000 (09:55 +0100)
commit11e83000b164340b7e261a62f074a0e0cb6d6282
tree305391b6bcf18713c8055e8d10db628712a2839a
parent975f5865bbfd417840be745d09a68dc064ea8d1d
populate_sdk_base: Fix grep command usage on old hosts

"man grep" on centos:

       -R, -r, --recursive
              Read all files under each directory, recursively; this is equivalent to the -d recurse option.

"man grep" on a more recent ubuntu system:

       -r, --recursive
              Read all files under each directory, recursively, following symbolic links only if they are on the command line.  This
              is equivalent to the -d recurse option.

So we have an issue when the SDK installer (even with
buildtools-tarball) is used on old hosts since it may try and
dereference paths which it should not. This is caused by differences in
the behaviour of grep -r on older systems.

The fix is to wrap this in find so that only real files are found (as
elsewhere in the script.

[YOCTO #6577]

(From OE-Core rev: 7986adeac16550b33f65fded39a55f668e0e543f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_base.bbclass