Openembedded Core Discussions
 help / color / mirror / Atom feed
* [OE-Core][PATCH v14 01/11] package.bbclass: override tar with tar-native
@ 2023-10-15 14:57 Piotr Łobacz
  2023-10-15 14:57 ` [OE-Core][PATCH v14 02/11] image_types.bbclass: " Piotr Łobacz
                   ` (9 more replies)
  0 siblings, 10 replies; 18+ messages in thread
From: Piotr Łobacz @ 2023-10-15 14:57 UTC (permalink / raw)
  To: openembedded-core; +Cc: Piotr Łobacz

Due to the bugs https://savannah.gnu.org/bugs/?61934 and
https://savannah.gnu.org/bugs/?59184, which are fixed in
tar version 1.35, we need to force yocto to use it instead
of the one provided by the host machine.

perform_packagecopy function and opkg-build script, will use
the tar provided by tar recipe, which is already in proper
version.

Signed-off-by: Piotr Łobacz <p.lobacz@welotec.com>
---
 meta/classes-global/package.bbclass | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index 7787042e21..580884cd83 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -58,8 +58,11 @@ ALL_MULTILIB_PACKAGE_ARCHS = "${@all_multilib_tune_values(d, 'PACKAGE_ARCHS')}"
 
 # rpm is used for the per-file dependency identification
 # dwarfsrcfiles is used to determine the list of debug source files
-PACKAGE_DEPENDS += "rpm-native dwarfsrcfiles-native"
-
+# minimal tar version 1.35 is needed as it has fixed bugs for storing ACL entries in textual representation
+# and extracting files with xattrs that are read-only; this needs to work only if acl or xattr are turned on
+PACKAGE_DEPENDS += "rpm-native dwarfsrcfiles-native ${@bb.utils.contains_any('DISTRO_FEATURES', 'acl xattr', 'tar-replacement-native', '', d)}"
+# perform_packagecopy and opkg-build require tar to be in the PATH
+EXTRANATIVEPATH += "${@bb.utils.contains_any('DISTRO_FEATURES', 'acl xattr', 'tar-native', '', d)}"
 
 # If your postinstall can execute at rootfs creation time rather than on
 # target but depends on a native/cross tool in order to execute, you need to
-- 
2.42.0



^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-11-11 11:16 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-15 14:57 [OE-Core][PATCH v14 01/11] package.bbclass: override tar with tar-native Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 02/11] image_types.bbclass: " Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 03/11] sstate.bbclass: " Piotr Łobacz
2023-10-15 18:26   ` Richard Purdie
2023-10-16  5:45     ` Piotr Łobacz
     [not found]     ` <178E804624FA5560.14388@lists.openembedded.org>
2023-11-10 10:12       ` Piotr Łobacz
2023-11-10 12:01         ` Richard Purdie
2023-11-10 19:23           ` Piotr Łobacz
2023-11-11  0:23             ` Richard Purdie
2023-11-11 11:16               ` Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 04/11] path.py: add support for ACLs and all additional attributes Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 05/11] package_ipk.bbclass: add support for ACLs and xattr Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 06/11] package.bbclass: " Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 07/11] sstate.bbclass: " Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 08/11] sstatesig.py: fix hash calculation for timestamp Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 09/11] opkg-utils: add acl and xattr support Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 10/11] opkg: add options to enable support for acl and xattr Piotr Łobacz
2023-10-15 14:57 ` [OE-Core][PATCH v14 11/11] opkg: set locale from system environment variables Piotr Łobacz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox