---
name: "Dpkg::BuildDriver::DebianRules"
section: "3perl"
platform: "linux"
package: "dpkg"
version: "1.23.11-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Dpkg::BuildDriver::DebianRules"
---

# Dpkg::BuildDriver::DebianRules(3perl)

build a Debian package using debian/rules

## NAME

Dpkg::BuildDriver::DebianRules - build a Debian package using debian/rules

## DESCRIPTION

This class is used by dpkg-buildpackage to drive the build of a Debian package, using *debian/rules*.

**Note**: This is a private module, its API can change at any time.

## METHODS

- $bd = Dpkg::BuildDriver::DebianRules-\>new(%opts)

  Create a new Dpkg::BuildDriver::DebianRules object.

  Supports or requires the same Dpkg::BuildDriver-\>**new()** options.

- $bd-\>**pre\_check()**

  Perform build driver specific checks, before anything else.

  This checks whether the *debian/rules* file is executable, and if not then make it so.

- $bool = $bd-\>need\_build\_task($build\_task, $binary\_task)

  Returns whether we need to use the build task.

  **Note**: This method is needed as long as we support building as root-like. Once that is not needed this method will be deprecated.

- $bd-\>run\_build\_task($build\_task, $binary\_task)

  Executes the build task for the build.

  **Note**: This method is needed as long as we support building as root-like. Once that is not needed this method will be deprecated.

- $bd-\>run\_task($task)

  Executes the given task for the build.

## CHANGES

### Version 0.xx

This is a private module.
