]> code.ossystems Code Review - openembedded-core.git/commit
relocatable.bbclass: Enhancements to rpath replacement algorithm
authorJoshua Lock <josh@linux.intel.com>
Tue, 16 Feb 2010 17:40:23 +0000 (17:40 +0000)
committerJoshua Lock <josh@linux.intel.com>
Thu, 18 Feb 2010 10:38:29 +0000 (10:38 +0000)
commitef246b44b95c40f68c9d9c7a93ed995a33824573
tree6f54f1f6bd00a9b115c784ac76e327592e715f11
parentb694d3c3f9764eb0659c60e533d39bd5f3ab8259
relocatable.bbclass: Enhancements to rpath replacement algorithm

This patch removes the hard coded number of parent directory operators ( /..)
placed into the rpath and instead fully dynamically generates the rpath entries
based on the current rpath.

Theoretically this patch means we can now make cross packages relocatable but
this is *not* enabled as chrpath can only set a new rpath of the same length
or shorter than the existing rpath. Due to the amount of parent directory
jumps we need to encode in the rpath this can easily fail when TMPDIR is in a
short namespace (e.g. /usr/poky).

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/relocatable.bbclass