[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#663762: debian-policy: default for DEB_BUILD_OPTIONS=parallel=N



Jakub Wilk <jwilk@debian.org> writes:

> How should packages behave if there is no explicit "parallel=N" in
> DEB_BUILD_OPTIONS? I saw two different approaches:

> 1) Behave (roughly) like if parallel=1 was set.

> 2) Be clever and try to guess the "right" level of parallelism, e.g. by
> using "getconf _NPROCESSORS_ONLN" or parsing /proc/cpuinfo (ugh!).

> Could the Policy clarify which approach is correct? Thanks!

I think status quo is generally "do whatever upstream does by default,"
which is slightly different than either of those.  It may be (2) if
upstream is that smart, but it's different than (1) in that we don't
actively suppress parallelization if upstream enables something by
default.

My conservative inclination would be towards (1).

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: