dpkg-build-api(7)
π dpkg-build-api(7) β dpkg suite bestie edition π
okay so this is the manual page for dpkg-build-api(7), and it's part of the dpkg suite. It's literally all about the source package dpkg build API level, and yes, it's as iconic as it sounds. β¨
πΈ NAME πΈ
dpkg-build-api β source package dpkg build API level
β¨ SYNOPSIS β¨
Build-Depends:
dpkg-build-api (= 1),
π«Ά DESCRIPTION π«Ά
The source package dpkg build API level is a versioned interface for source packages, where each API level gives you its own specific behaviors and guarantees. π
These interfaces can be adopted by packages in a gradual way, and they can be phased out more easily than with global behavior changes. It's giving "glow-up without breaking everyone's fave package" energy, fr fr.
You declare this API level through build-dependencies, in one of Build-Depends, Build-Depends-Indep or Build-Depends-Arch, or via the environment variable DPKG_BUILD_API. That environment variable will override those build-dependency fields if both are present, and it might emit a warning if they are different. π
π API LEVELS π
v2
This level is still under development, and cannot be declared via build-dependencies. Not ready for the group chat yet, bestie. π
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 the v0 behavior (from before dpkg 1.22.13)Rules-Requires-Rootshould be set tobinary-targets.dpkg-buildpackageexpects all requireddebian/rulestargets 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 the v0 behavior 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. It's the "classic" vibe, with all the usual global-update caveats. π¦
π SEE ALSO π
mwah π sign-off time: this page comes from the dpkg suite, version 1.23.11-dirty, dated 2026-09-09, and the page name is dpkg-build-api(7). byeee, go ship something slay π«Άβ¨
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms