[OE-core] [PATCH 1/1] toolchain-shar-relocate.sh: Add error-handling

Richard Purdie rpurdie at rpsys.net
Fri Sep 23 14:48:10 UTC 2016


On Wed, 2016-09-21 at 19:06 -0700, Christopher Larson wrote:
> 
> On Wed, Sep 21, 2016 at 12:54 AM, <mariano.lopez at linux.intel.com>
> wrote:
> > diff --git a/meta/files/toolchain-shar-relocate.sh
> > b/meta/files/toolchain-shar-relocate.sh
> > index d4bcf0e..e491153 100644
> > --- a/meta/files/toolchain-shar-relocate.sh
> > +++ b/meta/files/toolchain-shar-relocate.sh
> > @@ -1,3 +1,8 @@
> > +if ! xargs --version > /dev/null 2>&1; then
> > +       echo "xargs is required by the relocation script, please
> > install it firts. Abort!"
> > +       exit 1
> > +fi
> > 
> This is pointless, xargs is mandated by posix/sus.

It appears we have some users with stripped down containers where it
hasn't been installed though and having a user readable message is
better than the rather obtuse one reported into the bugzilla...

Cheers,

Richard



More information about the Openembedded-core mailing list