pdebuild(1)
π pdebuild β the pbuilder way of doing debuild π
okay bestie, welcome to pdebuild(1) β this is a pbuilder manual page and honestly it's a whole vibe. it's the little helper that goes and grabs root for you so you can build Debian packages without β¨dramaβ¨.
πΈ SYNOPSIS πΈ
pdebuild [pdebuild options] -- [pbuilder options]
π DESCRIPTION π
so, pdebuild is basically a convenience program for pbuilder. it gets the appropriate root privilege for you, then invokes pbuilder while you're sitting in a Debian source directory. iconic behavior, no cap.
β οΈ bestie, you must be inside the source tree that contains the debian directory. like, that's the whole thing. no debian dir, no build.
by default, the build log file gets stored in ../<package>_<version>_<arch>.build. yes, in the parent directory. that's just where it lives. π¦
β¨ PDEBUILD OPTIONS β¨
okay so these options have the form --option name and they modify how the operation behaves, as explained below. they get applied from left to right, and when options conflict, the option that appears later takes precedence. (last one wins, periodt. π)
--buildsourceroot[fakeroot] β the command used to gain root privilege for invokingdebian/rules clean. yes, it defaults tofakeroot, wild but true.--pbuilderroot[sudo -E] β the command used to gain root privilege for invokingpbuilder. default issudo -E, she's simple like that.--pbuildersatisfydepends[/usr/lib/pbuilder/pbuilder-satisfydepends] β the command used to satisfy (i.e. install) build-dependencies. it's giving "please get me my build deps." π«Ά--architectureβ set the architecture. lowkey important: this is currently required when it doesn't match the host architecture.--auto-debsignβ invokedebsignat the end of the pdebuild process. auto-signing, so slay. β¨--debsign-k[key-id] β pass the-koption todebsignto specify which key-id to sign with. tell her which key, she'll use it. π--buildresult[Directory for build results] β the place where the build result is stored.- note that for
pdebuild,buildresultneeds to be specified as a pdebuild option on the command-line, not as apbuilderoption. (iykyk, this trips everyone up π) - note that the default value for
buildresultis what is defined forpbuilder, which is/var/cache/pbuilder/resultand not.
- note that for
--configfile[Extra config file to use] β the configuration file is used, and passed on topbuilder. share the config, bestie. π--debbuildopts[options to pass to dpkg-buildpackage] β the space-delimited list of options are passed todpkg-buildpackage. this option appends to thepbuilderoption--debbuildoptsand may also be used to reset the list of options by passing the empty string.- multiple options are delimited with spaces.
- note that for
pdebuild,dpkg-sourceis used to build the source package which is given topbuilder. this option has no effect on the arguments used to build this source package, but it will control whether thecleantarget is run first as usual, and any options fordpkg-genchangeswill be passed on. it's giving "different job, same flag name" π
--use-pdebuild-internalβ uses a different implementation ofpdebuild, which callscleanand build inside the chroot, using bind-mounts.pdebuild-internaltries to rundebian/rules cleaninside the chroot. to do so, the working directory is passed on inside the chroot, in the form of bind-mounting anddebuildis run.- > β οΈ this option will not protect the working directory and its parent directories from the build scripts. read that again. it's real.
--logfile[file to log] β specifies the build logfile to create. the messages generated during execution will be written to the file, as well as standard output. double duty, we love. π--pbuilder[pbuilder] β specifies which command to invoke aspbuilder.--helpβ show a brief help message. when in doubt, ask. π--[pbuilder options] β after the--symbol, an arbitrary number ofpbuilderoptions can be specified. seepbuilder(8)for a full list of options.- there is an exception:
--buildresultneeds to be specified as apdebuildoption before the--in order to be effective. β
- there is an exception:
π FILES π
/etc/pbuilderrcβ the configuration file forpbuilder, used inpdebuild./usr/share/pbuilder/pbuilderrcβ the default configuration file forpbuilder, used inpdebuild.${HOME}/.pbuilderrcβ configuration file forpbuilder, used inpdebuild. it overrides/etc/pbuilderrc. home turf wins, always. π
π§ EXAMPLES π§
pdebuild
$ pwd
/home/dancer/DEBIAN/cowdancer/cowdancer
$ ls debian/rules
debian/rules
$ pdebuild
dh clean
dh_testdir
dh_auto_clean
dh_autoreconf_clean
dh_clean
.
.
.
dpkg-source: info: using source format '3.0 (native)'
dpkg-source: info: building cowdancer in cowdancer_0.84.tar.xz
dpkg-source: info: building cowdancer in cowdancer_0.84.dsc
.
.
.
look at her go. she's building. she's clean. she's everything. π¦β¨
π BUGS π
pdebuild will accept all options that pbuilder accepts as pdebuild option. however, unless the option is documented in the manual page, it may be ignored. so likeβ¦ just because she'll take it doesn't mean she'll do anything with it. π
π AUTHOR π
initial coding and main maintenance is done by Junichi Uekawa <dancer@debian.org>. legend behavior fr fr.
the homepage is http://pbuilder.alioth.debian.org β go show some love. π«Ά
π₯ SEE ALSO π₯
/usr/share/doc/pbuilder/pbuilder-doc.html, pbuilder(8), pbuilderrc(5)
okay that's the whole page bestie, you ate that. this was the Debian version of pdebuild(1), dated 2006 May 24 β yes she's a vintage icon and she still serves. mwah π ππ
π¦ where this page comes from
- debian bookworm: pbuilder 0.231 Β· GPL-2.0-or-later
- debian trixie: pbuilder 0.231.1 Β· GPL-2.0-or-later
- epel 10: pbuilder 0.231.1-5.el10_1 Β· GPL-2.0-or-later
- epel 9: pbuilder 0.231.1-4.el9 Β· GPL-2.0-or-later
- fedora 43: pbuilder 0.231.1-6.fc43 Β· GPL-2.0-or-later
- fedora 44: pbuilder 0.231.3-2.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: pbuilder 0.231-bp160.1.4 Β· GPL-2.0-or-later
- ubuntu jammy: pbuilder 0.231build1 Β· GPL-2.0-or-later
- ubuntu noble: pbuilder 0.231build1 Β· GPL-2.0-or-later
- ubuntu questing: pbuilder 0.231.1
- ubuntu resolute: pbuilder 0.231.3 Β· GPL-2.0-or-later
- ubuntu stonking: pbuilder 0.231.3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms