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

Bug#209008: debian-policy: [PROPOSAL] common interface for parallel building in DEB_BUILD_OPTIONS



On Wed, 2007-03-07 at 18:08:52 +0100, Lucas Nussbaum wrote:
> Bug #209008 proposed to have a common interface to tell packages to do
> parallel building (make -j).

> For some reason, the discussion that happened back in 2003 isn't logged
> on the BTS, but can be read in [2]. Everyone seemed to agree on the
> proposal, but it was discussed whether this should be implemented as
> DEB_BUILD_OPTIONS="parallel=n" or DEB_BUILD_OPTIONS_PARALLEL=n.

The first option needs more code to parse it. And I don't think it's a
good idea to allow it not taking a parameter, that will also increase
substantially the code to set the value, and make it quite unportable
(due to its need to get info from /proc or similar).

The person triggering the build is the one with enough information to
decide what value should be appropriate, and as a counter argument for
packages needing special amounts of memory/cpu we have similar global
overrides for build timeouts in the buildds.

There's also in use in some packages (most notably kernel-package) the
CONCURRENCY_LEVEL variable, but the name seems less consistent.

Personally I'd favour DEB_BUILD_OPTIONS_PARALLEL.

regards,
guillem



Reply to: