[OE-core] [PATCH 0/1] Avoid unnecessary dependency on awk in devtool deploy-target

Peter Kjellerstedt peter.kjellerstedt at axis.com
Mon Oct 3 09:53:08 UTC 2016


> -----Original Message-----
> From: Khem Raj [mailto:raj.khem at gmail.com]
> Sent: den 3 oktober 2016 01:47
> To: Peter Kjellerstedt
> Cc: openembedded-core at lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 0/1] Avoid unnecessary dependency on awk
> in devtool deploy-target
> 
> > On Sep 30, 2016, at 12:53 PM, Peter Kjellerstedt
> > <peter.kjellerstedt at axis.com> wrote:
> >
> > After updating to Krogoth, our developers were faced with the
> > following error message when using devtool deploy-target:
> >
> > /tmp/devtool_deploy.sh: line 23: awk: not found
> >
> > This is of course due to the fact that we do not have awk installed
> > in our products. However, the use of awk in devtool deploy-target is
> > completely unnecessary. It is already using sed, and sed is fully
> > capable of extracting the information that awk was used for.
> 
> sed or awk both are individual packages, some other user may complain
> they don't have sed installed. it would be good to know if we document 
> this dependency for using devtool.
> 
> > //Peter

I find it much less likely to have a system without sed than awk, but 
you are right that the dependencies should be documented somewhere, 
unless they already are... After my fix, devtool deploy requires the 
following commands: cat (can be replaced by letting sed read the file 
itself), df, dirname (can be replaced with a parameter expansion), find, 
head (can be replaced with sed), mkdir, mv, rm, rmdir, sed, sh and tar.

//Peter




More information about the Openembedded-core mailing list