]> code.ossystems Code Review - openembedded-core.git/commit
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>
Thu, 22 Aug 2013 17:30:05 +0000 (18:30 +0100)
commit2ca2c4747f645a0d478c2171fff4c65752188285
tree8741e8223f634b2ce78350715216dbcf76527388
parente473e60d5572f36829068f6d3db9ce9ba9633d71
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]

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