From: Scott Garman <scott.a.garman@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [for-denzil] bitbake: compile tar-replacement firstly
Date: Thu, 29 Nov 2012 18:56:40 -0800 [thread overview]
Message-ID: <50B82068.6020601@intel.com> (raw)
In-Reply-To: <1352218848-19801-1-git-send-email-msm@freescale.com>
On 11/06/2012 08:20 AM, Matthew McClintock wrote:
> From: "Roy.Li" <rongqing.li@windriver.com>
>
> 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 <rongqing.li@windriver.com>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> scripts/bitbake | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/bitbake b/scripts/bitbake
> index 3772d82..c52d5d2 100755
> --- a/scripts/bitbake
> +++ b/scripts/bitbake
> @@ -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
>
Pulled into sgarman/denzil-next.
Thanks,
Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
prev parent reply other threads:[~2012-11-30 3:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-06 16:20 [for-denzil] bitbake: compile tar-replacement firstly Matthew McClintock
2012-11-30 2:56 ` Scott Garman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B82068.6020601@intel.com \
--to=scott.a.garman@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox