Dpkg::BuildProfiles(3perl)
π
Dpkg::BuildProfiles β the libdpkg-perl era
okay so bestie, welcome to Dpkg::BuildProfiles, a Perl module from the libdpkg-perl universe. It's giving "small but mighty," and honestly? It slays at exactly one job. Let's get into it. π¦
β¨ NAME β¨
Dpkg::BuildProfiles β literally the module that handles build profiles. That's the whole vibe. π
πΈ DESCRIPTION πΈ
So Dpkg::BuildProfiles is a module that provides functions to handle the build profiles. That's it, that's the description, no cap β it's a little toolbox and every tool in it is about build profiles. π
π₯ FUNCTIONS π₯
Here's the whole squad, one function at a time. No skipping, bestie, we're doing all of them. π
@profiles = get_build_profiles()β grabs you an array with the currently active build profiles, and it takes them straight from the environment variableDEB_BUILD_PROFILES. Like, it's reading the room (the environment) for you. π«Άset_build_profiles(@profiles)β sets@profilesas the current active build profiles, by setting the environment variableDEB_BUILD_PROFILES. So it's the pushy one β it writes back to the env var. π$bool = build_profile_is_invalid($string)β validates a build profile formula. Returns a boolean, so you get a lil true/false verdict. β@profiles = parse_build_profiles($string)β parses a build profiles specification into an array of array references. Nested arrays, main character energy. π
β οΈ heads up: it will die on invalid syntax. Not "return undef," not "warn a lil bit" β it dies. So wrap it if you're feeling fragile, bestie. π
$bool = evaluate_restriction_formula(\@formula, \@profiles)β evaluates whether a restriction formula of the form"<foo bar> <baz>"β given as a nested array β is true or false, given the array of enabled build profiles. It's the judge, the jury, and the vibe check all at once. π§
π¦ CHANGES π¦
the lore, in chronological order π
π Version 1.01 (dpkg 1.23.0)
- New functions:
build_profile_is_invalid(). Fresh drop, new function, we love to see it. β¨
π Version 1.00 (dpkg 1.17.17)
- Mark the module as public. It graduated, it's out here in the world, iconic. π
aaaand that's the page, bestie! π«Ά this was Dpkg::BuildProfiles(3perl) from libdpkg-perl, version 1.23.11-dirty, dated 2026-09-09 β mwah, go build something cute with your profiles ππΈ
π¦ 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