This is necessary in order to preserve all the extended attributes set in do_install also in PKGD directory, otherwise they are dropped and not stored in created package(s).
For the momemnt it is only supported by OPKG package manager as it has support for libarchive and tar implementations, which supports ACLs and xattrs. Fixes: [YOCTO #9858] Signed-off-by: Piotr Łobacz <p.lob...@welotec.com> --- meta/classes/package.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 2950218145..b0334d9190 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -863,8 +863,8 @@ python perform_packagecopy () { # Start by package population by taking a copy of the installed # files to operate on - # Preserve sparse files and hard links - cmd = 'tar --exclude=./sysroot-only -cf - -C %s -p -S . | tar -xf - -C %s' % (dest, dvar) + # Preserve sparse files, hard links, ACLs and extended attributes + cmd = 'tar --acls --xattrs --exclude=./sysroot-only -cf - -C %s -p -S . | tar --acls --xattrs -xf - -C %s' % (dest, dvar) subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) # replace RPATHs for the nativesdk binaries, to make them relocatable -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#179626): https://lists.openembedded.org/g/openembedded-core/message/179626 Mute This Topic: https://lists.openembedded.org/mt/98033653/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-