[oe-commits] [openembedded-core] 05/05: package.bbclass: Fix hardlink preservation issue

git at git.openembedded.org git at git.openembedded.org
Mon Jul 30 23:04:40 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 508b0280c67e8d7e4dc3a734de4388e32ee9ffee
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon Jul 30 23:02:23 2018 +0000

    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 <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 80233a8..8459d39 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list