Introduction

The dpkg-dev toolset has many defaults, many of which have not aged well. Changing these defaults to better alternatives is in many cases impractical, as that requires at least a distribution-wide transition, and that might still break many external source packages.

One solution to this problem would be to adopt the compatibility level concept that debhelper has been using for many years now, which has allowed it to push forward newer and improved defaults progressively, at the maintainer discretion. The usage of the new versioned Provides, means we would not need to introduce any new file, and would make checking for this value easier from the Sources indices.

We need to clarify (in case it is not already clear) how the new defaults can be reverted or overridden, so that people can use a new build API level but opt-out of some specific items.

The support for this has been merged.

Proposal

We'd make dpkg-dev Provide a new virtual package, for example dpkg-build-api (= 0).

Build API level candidates

Build API level 0

Either an explicit level or its omission would imply the current values.

Build API level 1

Build API level N


CategorySpec