dpkg-buildapi(1) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | COMMANDS | ENVIRONMENT | FILES | COLOPHON

dpkg-buildapi(1)               dpkg suite               dpkg-buildapi(1)

NAME         top

       dpkg-buildapi - returns the build API level to use during package
       build

SYNOPSIS         top

       dpkg-buildapi [option...] [command]

DESCRIPTION         top

       dpkg-buildapi is a tool to retrieve the dpkg-build-api(7) level
       to use during build of source Debian packages.

       This program was introduced in dpkg 1.22.0.

COMMANDS         top

       -ccontrol-file
           Specifies the main source control file to read information
           from.  The default is debian/control.

       --help
           Show the usage message and exit.

       --version
           Show the version and exit.

ENVIRONMENT         top

       DPKG_BUILD_API
           The build API level to use.  This is intended to be used
           internally by the tools executed from debian/rules to avoid
           having to parse debian/control multiple times, and not to set
           the global build API level from debian/rules, otherwise build
           drivers (such as dpkg-buildpackage(1)) cannot access it.

FILES         top

   Packaging support
       /usr/local/share/dpkg/buildapi.mk
           Makefile snippet that will parse the build API level.

COLOPHON         top

       This page is part of the dpkg (Debian Package Manager) project.
       Information about the project can be found at 
       ⟨https://wiki.debian.org/Teams/Dpkg/⟩.  If you have a bug report
       for this manual page, see
       ⟨http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=dpkg⟩.  This
       page was obtained from the project's upstream Git repository ⟨git
       clone https://git.dpkg.org/git/dpkg/dpkg.git⟩ on 2023-12-22.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2023-12-18.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       man-pages@man7.org

1.22.0-7-g7486f                2023-08-30               dpkg-buildapi(1)