.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Dpkg::BuildDriver::DebianRules 3perl" .TH Dpkg::BuildDriver::DebianRules 3perl 2025-01-16 1.22.14-dirty libdpkg-perl .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Dpkg::BuildDriver::DebianRules \- build a Debian package using debian/rules .SH DESCRIPTION .IX Header "DESCRIPTION" This class is used by dpkg-buildpackage to drive the build of a Debian package, using \fIdebian/rules\fR. .PP \&\fBNote\fR: This is a private module, its API can change at any time. .SH METHODS .IX Header "METHODS" .ie n .IP "$bd = Dpkg::BuildDriver::DebianRules\->new(%opts)" 4 .el .IP "\f(CW$bd\fR = Dpkg::BuildDriver::DebianRules\->new(%opts)" 4 .IX Item "$bd = Dpkg::BuildDriver::DebianRules->new(%opts)" Create a new Dpkg::BuildDriver::DebianRules object. .Sp Supports or requires the same Dpkg::BuildDriver\->\fBnew()\fR options. .ie n .IP $bd\->\fBpre_check()\fR 4 .el .IP \f(CW$bd\fR\->\fBpre_check()\fR 4 .IX Item "$bd->pre_check()" Perform build driver specific checks, before anything else. .Sp This checks whether the \fIdebian/rules\fR file is executable, and if not then make it so. .ie n .IP "$bool = $bd\->need_build_task($build_task, $binary_task)" 4 .el .IP "\f(CW$bool\fR = \f(CW$bd\fR\->need_build_task($build_task, \f(CW$binary_task\fR)" 4 .IX Item "$bool = $bd->need_build_task($build_task, $binary_task)" Returns whether we need to use the build task. .Sp \&\fBNote\fR: This method is needed as long as we support building as root-like. Once that is not needed this method will be deprecated. .ie n .IP "$bd\->run_build_task($build_task, $binary_task)" 4 .el .IP "\f(CW$bd\fR\->run_build_task($build_task, \f(CW$binary_task\fR)" 4 .IX Item "$bd->run_build_task($build_task, $binary_task)" Executes the build task for the build. .Sp \&\fBNote\fR: This method is needed as long as we support building as root-like. Once that is not needed this method will be deprecated. .ie n .IP $bd\->run_task($task) 4 .el .IP \f(CW$bd\fR\->run_task($task) 4 .IX Item "$bd->run_task($task)" Executes the given task for the build. .SH CHANGES .IX Header "CHANGES" .SS "Version 0.xx" .IX Subsection "Version 0.xx" This is a private module.