package.bbclass: Fix handling of symlinks in debug packages
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Aug 2013 13:01:49 +0000 (13:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Aug 2013 15:20:11 +0000 (16:20 +0100)
commitaf62c92c800269d472e75a5c3847d56871e77c48
tree9da4bb62c1f45148ddde5773b8c9390a606cced3
parent34cb251f3a0df8bb129e4d47328b65a8455c31c7
package.bbclass: Fix handling of symlinks in debug packages

When copying the sources for the debug source package we use cpio -Ll
which means to copy files as hardlinks and to dereference symlinks.
It appears there is a bug in cpio since -Ll will copy symlinks and
not dereference them. We therefore do a second pass over copied symlinks
resolving them into files. Ideally we would copy these as hardlinks as well
however it doesn't seem worth the extra code and effort for what amounts
to a corner case for a minor space improvement.

This means that the -dbg packages no longer contain broken symlinks.

[YOCTO #5020]

(From OE-Core rev: 2ca2c4747f645a0d478c2171fff4c65752188285)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass