Disable parallelism within debian/rules
commit9a389028d143a20145040696f3c903c680698ce0
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 20 Aug 2013 05:30:30 +0000 (19 22:30 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 20 Aug 2013 05:30:30 +0000 (19 22:30 -0700)
treecb01d2953786666395f2780fe39add236bf52cd9
parentd01bdab780c21e8bc931758c756d8528c3df2dea
Disable parallelism within debian/rules

Since both install-arch and install-indep run â€˜$(MAKE) install’,
running them both concurrently creates race conditions, for example
where both jobs truncate and append to the same file.  Some
particularly problematic files are git-instaweb and GIT-BUILD-OPTIONS,
which apparently get regenerated on every build.

Prevent these targets from running concurrently using a .NOTPARALLEL
directive.  This tells make to build one target from debian/rules at a
time, while still allowing any -j<num> options to be passed on to
child $(MAKE)s so most of the parallelism of the build is not lost.

Noticed while investigating frequent build failures in the Ubuntu PPA.

Reported-by: Anders Kaseorg <andersk@MIT.EDU>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
debian/changelog
debian/rules