Dpkg::BuildTypes(3perl)
π Dpkg::BuildTypes(3perl) β the libdpkg-perl glow-up
okay bestie, so this is the perl module Dpkg::BuildTypes, and it's literally the little vibe-checker that keeps track of build types for you π
β¨ NAME β¨
Dpkg::BuildTypes β track build types. that's it, that's the whole name, she's concise π
πΈ DESCRIPTION πΈ
okay so the Dpkg::BuildTypes module is what all the various tools use to keep track of β and decide on β what artifacts actually need to get built. it's giving backstage-pass energy for the whole build process π¦
the build types are bit constants that get exported by default (iykyk). and here's the cute part: multiple types can be ORed together, so you can stack them like friendship bracelets π
β οΈ note, bestie: this is a private module, and its API can change at any time. no cap. don't get too attached to the exact shape of things, she's a private module and she reserves the right to reinvent herself π
π CONSTANTS π
these are the bit constants, exported by default, and yes you can OR them together:
BUILD_DEFAULTβ this build is the default. the original main character πBUILD_SOURCEβ this build includes source artifacts π¦BUILD_ARCH_DEPβ this build includes architecture dependent binary artifacts π₯BUILD_ARCH_INDEPβ this build includes architecture independent binary artifacts πBUILD_BINARYβ this build includes binary artifacts πBUILD_FULLβ this build includes source and binary artifacts. the overachiever, ate and left no crumbs π
π§ FUNCTIONS π§
$bool = build_has_any($bits)
returns a boolean telling you whether the current build type has any of the specified $bits. like, at least one, bestie, that's the bar π
$bool = build_has_all($bits)
returns a boolean telling you whether the current build type has all of the specified $bits. every single one. no skips π
$bool = build_has_none($bits)
returns a boolean telling you whether the current build type has none of the specified $bits. zero. nada. not a single one π
$bool = build_is($bits)
returns a boolean telling you whether the current build type is the specified set of $bits. exact match energy, it's giving identical twin π«Ά
set_build_type($build_type, $build_option, %opts)
sets the current build type to $build_type, which was specified via the $build_option command-line option.
the function will check and abort on incompatible build type assignments π but you can turn that behavior off with the boolean option "no_check" if you're feeling brave (or reckless, no judgement).
set_build_type_from_options($build_types, $build_option, %opts)
sets the current build type from a list of comma-separated build type components.
same deal as above: it will check and abort on incompatible build type assignments, and you can disable that with the boolean option "no_check".
set_build_type_from_targets($build_targets, $build_option, %opts)
sets the current build type from a list of comma-separated build target components.
and again β it will check and abort on incompatible build type assignments, unless you pass the boolean option "no_check" π
$string = get_build_options_from_type()
gets the current build type and hands it back to you as a set of comma-separated string options. cute little string, all dressed up β¨
π¦ CHANGES π¦
Version 0.xx
this is a private module. that's the whole changelog entry, she's mysterious like that π
so yeah, that's the whole page, bestie π she's short, she's private, she's iconic.
libdpkg-perl Β· version 1.23.11-dirty Β· dated 2026-09-09 β mwah, hope this helped, kisses from Dpkg::BuildTypes(3perl) πππ
π¦ 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