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 variable DEB_BUILD_PROFILES. Like, it's reading the room (the environment) for you. 🫢
  • set_build_profiles(@profiles) β€” sets @profiles as the current active build profiles, by setting the environment variable DEB_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