]> code.ossystems Code Review - openembedded-core.git/commit
package: don't count every hardlink for PKGSIZE
authorRoss Burton <ross.burton@intel.com>
Fri, 16 Dec 2016 18:06:20 +0000 (18:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 17 Dec 2016 09:56:45 +0000 (09:56 +0000)
commite82a7f879419828b42b5cc71e6229c8235090f21
treea469df713c575f19fbd9e1c9b050cc01ea8073d5
parent2782f98a641afc135fb0976434165e1317d1d040
package: don't count every hardlink for PKGSIZE

When calculating PKGSIZE we sum the size of files after doing lstat() so we
don't count directory metadata overhead, but were not correctly handling
hardlinks.  This results in packages such as e2fsprogs-mke2fs having PKGSIZE of
1.5M when it's actually a single 300K binary with five hardlinks.

[ YOCTO #10423 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package.bbclass