debian/rules: set NUMJOBS to requested number of jobs, not ∞
commit371b56f5d0920d58689c35f8cab50e465ec3a48a
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 8 Apr 2013 00:16:46 +0000 (7 17:16 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Mon, 8 Apr 2013 00:26:18 +0000 (7 17:26 -0700)
tree46a8b496dddf2d14126b91c4c0e36793696a3fbf
parente7378a0712cd447655039086d8193159eb6eaa41
debian/rules: set NUMJOBS to requested number of jobs, not ∞

debian/rules currently sets MAKEFLAGS using the following rule:

  NUMJOBS = $(patsubst parallel=%,%,$(filter PARALLEL=%,$(DEB_BUILD_OPTIONS)))
  MAKEFLAGS += -j$(NUMJOBS)

That will take any "PARALLEL=<num>" word (in all caps) from
DEB_BUILD_OPTIONS and then search for a "parallel=<num>" word
from which to take the <num> value and pass it to -j.  That is,
when this code trips, the effect is the same as the following:

  MAKEFLAGS += -j

That means to keep on spawning additional processes to build git
in parallel without limit.  The intent was to look for
"parallel=<num>" options (in lowercase) instead.  Do that.

Noticed on Debian's autobuilders.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
debian/changelog
debian/rules