bitbake: compile tar-replacement firstly
From: "Roy.Li" <[email protected]>
Compiling tar-replacement or not is decided by version of host tar, if the host tar version is lower than 1.23, Compiling tar-replacement is needed.
When doing popoluate tar-replacement sysroot to write the tar to sysroot, but writing is not finished. other packages probably use the being written tar to unzip file, which will lead to failure and report the below error:
"bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tar: Text file busy"
Now we compile tar-replacement firstly to ensure that a being written tar command will not be used.
(From OE-Core rev: 3c1c4719fc96f6f1fbb257413d6baf3d91fdf4e8)
--- scripts/bitbake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
scripts/bitbake +6 -1
@@ -134,7 +134,12 @@ if [ $buildpseudo -gt 0 ]; then fi done done - bitbake pseudo-native $TARTARGET $additionalopts -c populate_sysroot + + if [ $needtar = "1" ]; then + bitbake $TARTARGET -c populate_sysroot + fi + + bitbake pseudo-native $additionalopts -c populate_sysroot ret=$? if [ "$ret" != "0" ]; then exit 1
Signature · 1 line
1.7.9.7
Quoted 33 lines · Matthew McClintock
From: "Roy.Li" <[email protected]>
Compiling tar-replacement or not is decided by version of host tar, if the host tar version is lower than 1.23, Compiling tar-replacement is needed.
When doing popoluate tar-replacement sysroot to write the tar to sysroot, but writing is not finished. other packages probably use the being written tar to unzip file, which will lead to failure and report the below error:
"bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tar: Text file busy"Now we compile tar-replacement firstly to ensure that a being written tar command will not be used.
(From OE-Core rev:
3c1c4719fc96f6f1fbb257413d6baf3d91fdf4e8)Signed-off-by Roy.Li <[email protected]>Signed-off-by Saul Wold <[email protected]>Signed-off-by Richard Purdie <[email protected]>--- scripts/bitbake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)scripts/bitbake +0
-0@@ -134,7 +134,12 @@ if [ $buildpseudo -gt 0 ]; then fi done done
scripts/bitbake if [ $buildpseudo -gt 0 ]; then · line 145
Quoted 10 lines
scripts/bitbake +6
-1- bitbake pseudo-native $TARTARGET $additionalopts -c populate_sysroot + + if [ $needtar = "1" ]; then + bitbake $TARTARGET -c populate_sysroot + fi + + bitbake pseudo-native $additionalopts -c populate_sysroot ret=$? if [ "$ret" != "0" ]; then exit 1
Pulled into sgarman/denzil-next.
Thanks,
Scott
Signature · 3 lines
Scott Garman Embedded Linux Engineer - Yocto Project Intel Open Source Technology Center