From: Richard Purdie Date: Mon, 30 Jul 2018 23:02:23 +0000 (+0000) Subject: package.bbclass: Fix hardlink preservation issue X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~17171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28eeada955762f38ccbd1d26c53768364dbd1a5e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git package.bbclass: Fix hardlink preservation issue Recent changes broke the preservation of hardlinks during processing due to a missing index. Fix this, reducing the size of the git recipe packages in particular (it contains many hardlinks). Signed-off-by: Richard Purdie --- diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 80233a8f5e8..8459d39b27e 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1021,7 +1021,7 @@ python split_and_strip_files () { # c) Track any hardlinks between files so that we can reconstruct matching debug file hardlinks # Use a reference of device ID and inode number to identify files - file_reference = checkelf[file] + file_reference = checkelf[file][1] if file_reference in inodes: os.unlink(file) os.link(inodes[file_reference][0], file)