bitbake.conf: add "xz" to HOSTTOOLS
PATCH 1/1 bitbake.conf: add "xz" to HOSTTOOLS
From: Michael Opdenacker <[email protected]>
xz is necessary to extract the uninative binary shims
--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +1 -1
@@ -529,7 +529,7 @@ HOSTTOOLS += " \ python3 pzstd ranlib readelf readlink realpath rm rmdir rpcgen sed seq sh \ sha1sum sha224sum sha256sum sha384sum sha512sum \ sleep sort split stat strings strip tail tar tee test touch tr true uname \ - uniq wc wget which xargs zstd \ + uniq wc wget which xargs xz zstd \ " # Tools needed to run testimage runtime image testing
Signature · 1 line
2.34.1
Quoted 14 lines · Michael Opdenacker via lists.openembedded.org
From: Michael Opdenacker <[email protected]>
xz is necessary to extract the uninative binary shims
Signed-off-by Michael Opdenacker <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +0
-0
meta/conf/bitbake.conf HOSTTOOLS += " \ · line 535
Quoted 8 lines
meta/conf/bitbake.conf +1
-1@@ -529,7 +529,7 @@ HOSTTOOLS += " \ python3 pzstd ranlib readelf readlink realpath rm rmdir rpcgen sed seq sh \ sha1sum sha224sum sha256sum sha384sum sha512sum \ sleep sort split stat strings strip tail tar tee test touch tr true uname \ - uniq wc wget which xargs zstd \ + uniq wc wget which xargs xz zstd \ " # Tools needed to run testimage runtime image testing
I don't quite understand, how is this working today without this?
Cheers,
Richard
Quoted 23 lines · Richard Purdie
Quoted 21 lines · Michael Opdenacker via lists.openembedded.org
From: Michael Opdenacker <[email protected]>
xz is necessary to extract the uninative binary shims
Signed-off-by Michael Opdenacker <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +1
-1@@ -529,7 +529,7 @@ HOSTTOOLS += " \ python3 pzstd ranlib readelf readlink realpath rm rmdir rpcgen sed seq sh \ sha1sum sha224sum sha256sum sha384sum sha512sum \ sleep sort split stat strings strip tail tar tee test touch tr true uname \ - uniq wc wget which xargs zstd \ + uniq wc wget which xargs xz zstd \ "
Quoted 2 lines
meta/conf/bitbake.conf HOSTTOOLS += " \ · line 535
Quoted 1 line
meta/conf/bitbake.conf +0
-0# Tools needed to run testimage runtime image testingI don't quite understand, how is this working today without this?
At least on Ubuntu, the "xz-utils" package is pulled by "build-essential", so everyone on Ubuntu always has "xz".
Then, we I ran my tests on a fresh Fedora container, bitbake didn't warn me but "xz" was missing, but this prevented the uninative shim from being installed. It seems that at least on Fedora, "xz" isn't pulled by the other host tools we install.
I guess most people has "xz" anyway, which could explain why this wasn't reported before.
By the way, just wondering... What do we need "perl" for ?
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 7 lines · Michael Opdenacker via lists.openembedded.org
Then, we I ran my tests on a fresh Fedora container, bitbake didn't warn me but "xz" was missing, but this prevented the uninative shim from being installed. It seems that at least on Fedora, "xz" isn't pulled by the other host tools we install.
I guess most people has "xz" anyway, which could explain why this wasn't reported before.
HOSTTOOLS is used to filter tools from the host in $PATH, at least in bitbake tasks, so is uninative extractor bypassing that somehow then?
Alex
Quoted 8 lines · Alexander Kanavin
Quoted 5 lines · Michael Opdenacker via lists.openembedded.org
Then, we I ran my tests on a fresh Fedora container, bitbake didn't warn me but "xz" was missing, but this prevented the uninative shim from being installed. It seems that at least on Fedora, "xz" isn't pulled by the other host tools we install.
Quoted 5 lines
Quoted 2 lines
I guess most people has "xz" anyway, which could explain why this wasn't reported before.
HOSTTOOLS is used to filter tools from the host in $PATH, at least in bitbake tasks, so is uninative extractor bypassing that somehow then?
The uninative code calls tar from the host. It then probably depends upon how tar has been configured and whether it calls xz or uses a library?
I'm guessing in the context of uninative, PATH hasn't been locked down yet.
I think we probably should add xz to HOSTTOOLS at this point but it probably does also mean we should change ASSUME_PROVIDED and there are some things with an xz dependency which will need to use xz- replacement-native since they probably need library components and not just xz itself.
Cheers,
Richard