On Fri, 2022-10-28 at 01:13 +0200, Bernhard Rosenkränzer via
lists.openembedded.org wrote:
> From: Bernhard Rosenkränzer <[email protected]>
> 
> base.bbclass currently symlinks the first copy of tar on the PATH
> to hosttools.
> 
> If that copy of tar isn't GNU tar (some Linux distributions use
> libarchive tar for the fact that it can handle zip files etc. as
> well; some others probably use busybox or toybox tar for space
> issues), the build fails early on because path.py uses --xattrs
> and --xattrs-include
> 
> With this patch, base.bbclass checks if tar supports --xattrs-include,
> and checks for gtar if the first tar found doesn't support it.
> 
> Signed-off-by: Bernhard Rosenkränzer <[email protected]>
> ---
>  meta/classes-global/base.bbclass | 10 ++++++++++
>  1 file changed, 10 insertions(+)

This feels like a rather dangerous path to start down.

HOSTTOOLS is there for host isolation, not to remap the tools to
different things depending on the distro we're on or versions etc.

I can see the attraction in using it to manipulate it but I'd kind of
prefer to error if tar isn't compatible and allow the user to change
their distro setup rather than magic...

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172247): 
https://lists.openembedded.org/g/openembedded-core/message/172247
Mute This Topic: https://lists.openembedded.org/mt/94616037/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to