]> code.ossystems Code Review - openembedded-core.git/commit
insane.bbclass: add QA tests for unsafe references to exec_prefix
authorScott Garman <scott.a.garman@intel.com>
Thu, 5 Jan 2012 06:30:35 +0000 (22:30 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Jan 2012 11:18:18 +0000 (11:18 +0000)
commit3e9c368a8045044736fc7e348404060498c7491b
tree18bf245f594f7643b67f3e4a0e819527a5d28a19
parent4ec9c25b9390bbfc1ddb0d46296f9251e5fd1498
insane.bbclass: add QA tests for unsafe references to exec_prefix

Files under exec_prefix (commonly /usr) may not be available during
system recovery. exec_prefix may also be kept on a separate partition
that is mounted late in the boot process.

This QA test throws an warning if a binary in base_[bindir|sbindir|libdir]
is dynamically linked to a file under exec_prefix. The intention is to
turn this into an error in the near future.

It also checks executable non-binaries (e.g, shell scripts) in the above
base directories with a simple grep test to look for references to
exec_prefix. This test only produces a warning, since false positives
are likely.

This fixes [YOCTO #1008]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass