[OE-core] [PATCH v2] base.bbclass: avoid 'find -ignore_readdir_race -delete'

Matthias Schiffer matthias.schiffer at ew.tq-group.com
Mon Dec 3 11:58:26 UTC 2018


On Fri, 2018-11-23 at 11:35 +0100, Matthias Schiffer wrote:
> On Tue, 2018-11-06 at 09:56 +0100, matthias.schiffer at ew.tq-group.com
> wrote:
[...]
> > ---
> > 
> > It would be great if this patch could be backported to all versions
> > back to
> > Rocko, as our current setup is still based on Rocko.
> 
> Is there any chance we can get this backported?
> 
> Thanks,
> Matthias

Thanks, I saw this is in Sumo now. Can we get it into Rocko as well?


> 
> 
> > 
> > v2: add comment, extend commit message
> > 
> > 
> >  meta/classes/base.bbclass | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> > index df11c8b270..9efb06de5f 100644
> > --- a/meta/classes/base.bbclass
> > +++ b/meta/classes/base.bbclass
> > @@ -303,7 +303,9 @@ base_do_configure() {
> >  			if [ "${CLEANBROKEN}" != "1" -a \( -e Makefile
> > -o -e makefile -o -e GNUmakefile \) ]; then
> >  				oe_runmake clean
> >  			fi
> > -			find ${B} -ignore_readdir_race -name \*.la
> > -delete
> > +			# -ignore_readdir_race does not work correctly
> > with -delete;
> > +			# use xargs to avoid spurious build failures
> > +			find ${B} -ignore_readdir_race -name \*.la
> > -type f -print0 | xargs -0 rm -f
> >  		fi
> >  	fi
> >  	if [ -n "${CONFIGURESTAMPFILE}" ]; then



More information about the Openembedded-core mailing list