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