include: remove file before overwritting it with replace_script
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 15 Sep 2014 10:18:56 +0000 (10:18 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 15 Sep 2014 10:18:56 +0000 (10:18 +0000)
commitc8cc29a571bc07ab1aa51856ec34d3fef6b3668e
tree34904d652e793572e7cab209241b2a87a63a7ace
parentc8059c237b583ad299cfee8f4bf74507661d2bee
include: remove file before overwritting it with replace_script

config.{sub,guess} could be symlinks to a shared common version of
this file (e.g. in staging). So we remove the destination file via
--remove-destination option of cp. This prevents replaceing the
common file that other packages could be build with if running at
the same time.

This fixes a class of errors where config.sub is missing, or
only partially present when running configure because a cp is
currently in progress

This is commonly seen building with a lot of parallel jobs and
on packages that use 'PKG_FIXUP:=autoreconf'

Signed-off-by: Matthew McClintock <mmcclint@qca.qualcomm.com>
Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42547 3c298f89-4303-0410-b956-a3cf2f4a3e73
include/package-defaults.mk