[OE-core] [PATCH] package.bbclass: Fix hardlink preservation issue
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Jul 30 23:04:08 UTC 2018
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 <richard.purdie at linuxfoundation.org>
---
meta/classes/package.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.17.1
More information about the Openembedded-core
mailing list