Dpkg::BuildProfiles(3perl) libdpkg-perl Dpkg::BuildProfiles(3perl)

# [NAME](#NAME)

Dpkg::BuildProfiles - handle build profiles

# [DESCRIPTION](#DESCRIPTION)

The Dpkg::BuildProfiles module provides functions to handle the build profiles.

# [FUNCTIONS](#FUNCTIONS)

@profiles = **get\_build\_profiles()**

Get an array with the currently active build profiles, taken from the environment variable **DEB\_BUILD\_PROFILES**.

[set\_build\_profiles(@profiles)](#set_build_profiles%28@profiles%29)

Set @profiles as the current active build profiles, by setting the environment variable **DEB\_BUILD\_PROFILES**.

$bool = build\_profile\_is\_invalid($string)

Validate a build profile formula.

@profiles = parse\_build\_profiles($string)

Parses a build profiles specification, into an array of array references.

It will die on invalid syntax.

$bool = evaluate\_restriction\_formula(\\@formula, \\@profiles)

Evaluate whether a restriction formula of the form "&lt;foo bar&gt; &lt;baz&gt;", given as a nested array, is true or false, given the array of enabled build profiles.

# [CHANGES](#CHANGES)

## [Version 1.01 (dpkg 1.23.0)](#Version_1.01_%28dpkg_1.23.0%29)

New functions: **build\_profile\_is\_invalid()**.

## [Version 1.00 (dpkg 1.17.17)](#Version_1.00_%28dpkg_1.17.17%29)

Mark the module as public.

2026-09-09 1.23.11-dirty

---

Document: Dpkg::BuildProfiles(3perl) from dpkg 1.23.11-r0 (Chainguard OS)
Source: https://git.dpkg.org/git/dpkg/dpkg.git
