netcf: unconditionally remove gnulib dir to support reconfigure
netcf: unconditionally remove gnulib dir to support reconfigure

The rmdir in configure prepend seemed like a nice sanity check to
ensure the upstream source didn't change their handling of the
gnulib submodule, but it will be a problem when changed sigs (in
gnulib for example) trigger a reconfigure in an existing build.
In such an instance, the .gnulib dir will have the old copy from
the sysroot, and not be empty and the rmdir will fail.

Given that we don't know what changed in the context of the prepend,
we just assume it could have been the gnulib sysroot content, and
hence blow away the old dir and re-copy in the possibly updated
gnulib sysroot content.

This works for both clean builds, and rebuilds that have triggered
a reconfigure of an existing netcf build.

Fixes: 093942197237 ("netcf: fix mishandling of gnulib submodule
causing build fail")
Signed-off-by: Paul Gortmaker <ae947f3c8df96e1dc851c5e3e5a930ce6d3f1f74@windriver.com>
Signed-off-by: Joe MacDonald <fbe30f12b401d02c5cf3f5c053fced92c546e3de@mentor.com>

rehsack/meta-openembedded,openembedded/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,fredcadete/meta-openembedded,VCTLabs/meta-openembedded,openembedded/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,lgirdk/meta-openembedded,mrchapp/meta-openembedded,VCTLabs/meta-openembedded,rehsack/meta-openembedded,victronenergy/meta-openembedded,mrchapp/meta-openembedded,victronenergy/meta-openembedded,schnitzeltony/meta-openembedded,fredcadete/meta-openembedded,kraj/meta-openembedded,VCTLabs/meta-openembedded,fredcadete/meta-openembedded,lgirdk/meta-openembedded,fredcadete/meta-openembedded,rehsack/meta-openembedded,fredcadete/meta-openembedded,amery/meta-openembedded,VCTLabs/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,openembedded/meta-openembedded,lgirdk/meta-openembedded,rehsack/meta-openembedded,schnitzeltony/meta-openembedded,VCTLabs/meta-openembedded,kraj/meta-openembedded,openembedded/meta-openembedded,kraj/meta-openembedded,mrchapp/meta-openembedded,amery/meta-openembedded,moto-timo/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,victronenergy/meta-openembedded,schnitzeltony/meta-openembedded,amery/meta-openembedded,victronenergy/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,schnitzeltony/meta-openembedded,mrchapp/meta-openembedded,mrchapp/meta-openembedded,kraj/meta-openembedded,fredcadete/meta-openembedded,schnitzeltony/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,lgirdk/meta-openembedded,VCTLabs/meta-openembedded,amery/meta-openembedded,amery/meta-openembedded,victronenergy/meta-openembedded,victronenergy/meta-openembedded,kraj/meta-openembedded,kraj/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,rehsack/meta-openembedded,openembedded/meta-openembedded,moto-timo/meta-openembedded,victronenergy/meta-openembedded,openembedded/meta-openembedded,lgirdk/meta-openembedded,openembedded/meta-openembedded,mrchapp/meta-openembedded,mrchapp/meta-openembedded,kraj/meta-openembedded,moto-timo/meta-openembedded,schnitzeltony/meta-openembedded,rehsack/meta-openembedded,openembedded/meta-openembedded,moto-timo/meta-openembedded,amery/meta-openembedded,fredcadete/meta-openembedded,amery/meta-openembedded,fredcadete/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,schnitzeltony/meta-openembedded,VCTLabs/meta-openembedded,lgirdk/meta-openembedded,amery/meta-openembedded,moto-timo/meta-openembedded,VCTLabs/meta-openembedded