]> code.ossystems Code Review - openembedded-core.git/commit
scripts/cp-noerror: Add a special copy function to fix autotools issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 May 2012 12:28:48 +0000 (13:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 May 2012 10:20:52 +0000 (11:20 +0100)
commit0f81fbc0df73675aeb79c724858799a3b6a02f85
tree077f26321c4559cff9013dc241fc34cb42bbc94e
parentda98266f3a228cf65f279db9810a5326c8bd5422
scripts/cp-noerror: Add a special copy function to fix autotools issues

Currently we copy the aclocal directory to the build so that autotools
doesn't see .m4 files disappear when its processing them. This can happen
if for example, package X is being rebuilt at the same time as Y and it
gets uninstalled from sstate (assuming there are no dependencies between
X and Y). This code making the copy was added to avoid races but introduces
a race of its own, namely that the files can disappear during the copy.

This patch adds a cp-noerror script which silently ignores such errors
and gives the behaviour we need in this case. It hence fixes issues which
crop up for users and the autobuilder occasionally.

[YOCTO #2485]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass
scripts/cp-noerror [new file with mode: 0755]