UBUNTU: debian: add locking to protect debian/files from parallel update
authorAndy Whitcroft <apw@canonical.com>
Wed, 26 Oct 2011 14:07:28 +0000 (15:07 +0100)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:12:42 +0000 (13:12 -0700)
commitaaf869aba11953b5bd444243e2f695b8eff74877
tree4cbc717ef39ed5c4c18f3974a4588b70bc10ed44
parent4e66bfaded922c6a7fd17c16812aba91a13fe4d9
UBUNTU: debian: add locking to protect debian/files from parallel update

When building with high parallelism we may overlap calls to dh_gencontrol
and/or the .ddeb removal code from the debian/files list.  If these happen
in parallel files may be lost or updates fail leading to build failures or
incomplete packing lists.  Add primative locking to each of these scenarios
using the flock command, utilising a lock file in the debian directory.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
debian.master/control.stub.in
debian/rules.d/0-common-vars.mk
debian/rules.d/2-binary-arch.mk
debian/rules.d/3-binary-indep.mk
debian/rules.d/5-udebs.mk