Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   dpkg-buildpackage    ( 1 )

создавать бинарные пакеты или пакеты с исходным кодом из исходников (build binary or source packages from sources)

  Name  |  Synopsis  |  Description  |  Options  |    Environment    |  Files  |  Note  |  Bugs  |  See also  |

Окружение (Environment)

External environment DEB_CHECK_COMMAND If set, it will be used as the command to check the .changes file (since dpkg 1.17.6). Overridden by the --check-command option.

DEB_SIGN_KEYID If set, it will be used to sign the .changes and .dsc files (since dpkg 1.17.2). Overridden by the --sign-key option.

DEB_BUILD_OPTIONS If set, it will contain a space-separated list of options that might affect the build process in debian/rules, and the behavior of some dpkg commands.

With nocheck the DEB_CHECK_COMMAND variable will be ignored. With parallel=N the parallel jobs will be set to N, overridden by the --jobs-try option.

DEB_BUILD_PROFILES If set, it will be used as the active build profile(s) for the package being built (since dpkg 1.17.2). It is a space separated list of profile names. Overridden by the -P option.

DPKG_COLORS Sets the color mode (since dpkg 1.18.5). The currently accepted values are: auto (default), always and never.

DPKG_NLS If set, it will be used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support (since dpkg 1.19.0). The accepted values are: 0 and 1 (default).

Internal environment Even if dpkg-buildpackage exports some variables, debian/rules should not rely on their presence and should instead use the respective interface to retrieve the needed values, because that file is the main entry point to build packages and running it standalone should be supported.

DEB_BUILD_* DEB_HOST_* DEB_TARGET_* dpkg-architecture is called with the -a and -t parameters forwarded. Any variable that is output by its -s option is integrated in the build environment.

DEB_RULES_REQUIRES_ROOT This variable is set to the value obtained from the Rules-Requires-Root field or from the command-line. When set, it will be a valid value for the Rules-Requires-Root field. It is used to notify debian/rules whether the rootless-builds.txt specification is supported.

DEB_GAIN_ROOT_CMD This variable is set to gain-root-command when the field Rules-Requires-Root is set to a value different to no and binary-targets.

SOURCE_DATE_EPOCH This variable is set to the Unix timestamp since the epoch of the latest entry in debian/changelog, if it is not already defined.