Dpkg::BuildProfiles(3perl)

Dpkg::BuildProfiles3perl

Handle build profiles

Overview

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

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 @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 "<foo bar> <baz>", given as a nested array, is true or false, given the array of enabled build profiles.

Changes

Version 1.01 (dpkg 1.23.0)

New functions: build_profile_is_invalid().

Version 1.00 (dpkg 1.17.17)

Mark the module as public.

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From dpkg 1.23.11-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.