dpkg-build-api7
Source package dpkg build api level
Usage
Build-Depends:dpkg-build-api (= 1),
Overview
The source package dpkg build API level, defines a versioned interface for source packages, where each API level provides specific behaviors and guarantees.
These interfaces can then be adopted by packages in a gradual way, and phased out more easily than with global behavior changes.
The declaration of this API level is done through build-dependencies, in one of Build-Depends, Build-Depends-Indep or Build-Depends-Arch, or via the environment variable DPKG_BUILD_API, which will override these if both are present, and might emit a warning in case they are different.
API levels
- v2
-
This level is still under development, and cannot be declared via build-dependencies.
- v1
-
This is the recommended level. Since dpkg 1.22.0.
Changes from v0 are:
- •
-
dpkg-shlibdepsno longer uses theLD_LIBRARY_PATHenvironment variable. The-loption should be used instead.
- •
-
dpkg-buildpackagedefaults toRules-Requires-Rootvalueno. To restore thev0behavior (from before dpkg 1.22.13)Rules-Requires-Rootshould be set tobinary-targets.
- •
-
dpkg-buildpackageexpects all required debian/rules targets to be supported and no longer has backwards compatibility fallback code. The required targets areclean,build,build-indep,build-arch,binary-indepandbinary-arch.
- •
-
vendor.mkdefaults to usingdpkg_vendor_derives_from_v1for thedpkg_vendor_derives_frommacro. To restore thev0behavior setdpkg_vendor_derives_fromtodpkg_vendor_derives_from_v0.
- •
-
default.mkdefaults to includingbuildtools.mk.
- v0
-
This is the current global level, equivalent to not specifying one. The interfaces and behaviors provided are subject to the normal global interface updates, which tend to require longer deprecation cycles and/or coordinated transitions.
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.