NAME
pbuilder - personal package builder
SYNOPSIS
pbuilder create [options]
pbuilder update [options]
pbuilder build [options] .dsc-file
pbuilder clean
pbuilder login
DESCRIPTION
Front end program to the pbuilder suite of programs, used for creating and maintaining chroot environment and building Debian package in the chroot environment.
OPTIONS
- create
-
Creates a base.tgz for the specified distribution.
- update
-
Updates the base.tgz for the specified distribution. Also, by specifying the --distribution option, it is possible to switch the distribution. Specify a dummy distribution value even for custom apt config files.
- build
-
Builds the package specified by .dsc-file in the chroot environment created using the base.tgz
- clean
-
Cleans up the directory specified by the configuration BUILDPLACE and APTCACHE specified in /etc/pbuilderrc
- login
-
Logs into the chroot, and cleaned up afterwards. Any changes you make will not be kept.
- debuild
-
Builds a Debian package from the Debian source directory. There needs to be a debian/ directory in the current directory.
This command is a convenience script, and it does not accept most command-line options. This may change in the future.
- --basetgz [basetgz-location]
-
Specifies the location of base.tgz
This option will define the default distribution and apt-lines when used in pbuilder update and pbuilder create
- --buildplace [location of build]
-
Specifies the location where building and base.tgz updating and creation takes place. This is a temporary work directory.
- --buildresult [location to put build result]
-
Specifies the location the build result gets into after building. The deb files and other files that have resulted from build is copied there. Note that the default value is not the current directory, or .. but somewhere else entirely. This is to avoid overwriting already existing deb files with the newly generated ones.
- --mirror [mirror location]
-
Specifies the url of Debian mirror to be specified in sources.list inside the chroot. This option is only valid when distribution is being specified, for update and build targets. The format is something like: http://http.us.debian.org/debian which should point to your favorite mirror.
This option can optionally be omitted, and left blank, in which case, this part is skipped.
Note that these URLs specified to pbuilder will be used from within the chroot, and specifying file:/somewhere/ will most probably fail.
- --nonusmirror [mirror location]
-
The non-US mirror, specified like the --mirror option
- --othermirror [apt deb line | other deb lines... ]
-
The lines which is added to the sources.list, delimited with | Like deb http://local/mirror stable main|deb file:/usr/local/mirror ./
The deb lines here are the ones that will appear at the top of the sources.list inside the chroot.
- --http-proxy [proxy]
-
Specifies the http proxy url. Something like http://xxx.xxx.xxx.xxx:8080/ should do.
- --distribution [distribution]
-
Specifies the distribution used. Currently the supported values are sid and woody .
- --removepackages [packages to remove]
-
Removes the packages on creating the base.tgz. Use this option to remove potentially dangerous or undesirable packages, like lilo which nobody will need to have inside a chroot.
Packages should be specified in a space-delimited manner, surrounded in double quotations, like "lilo gcc mawk"
- --extrapackages [packages to add]
-
Adds packages specified as an addition to the default, which is build-essential by default. This is used in build and create and update
The packages should be specified as a space-delimited list.
- --configfile [configuration file to load]
-
Loads the configuration file.
- --hookdir [location of user scripts]
-
Specifies the location where scripts for user intervention during the create and update process are stored. Currently scripts are executed at only one point, on exit from the chrooted environment, just before either a create or a build regenerated the base.tgz file. The script names must be in the form X<digit><digit><whatever-else-you-want> much like boot scripts. The scripts must be executable and may be either binaries or interpreted scripts. If it is a script in other than Bourne Shell or Perl, it is up to the user to ensure the interpreter was previously installed in the chrooted environment. Files ending in ~ or .bak are ignored.
Although it may not seem necessary, pbuilder update does not invoke the hooks if --hookdir is empty, so if you want to avoid running hooks, run pbuilder with --hookdir ""
If there is a distribution hook, for example, if there was a file sid inside the hook directory, and the script was creating the chroot for sid distribution, pbuilder will call debootstrap with that as the 4th parameter in the chroot creation process. This allows for use of custom debootstrap hook script.
A<digit><digit><whatever-else-you-want> is for build target. It is executed before build starts, after unpacking the build system, and unpacking the source.
B<digit><digit><whatever-else-you-want> is executed after build system finishes building, successfully, before copying back the build result.
C<digit><digit><whatever-else-you-want> is executed after build fails, before cleanup.
D<digit><digit><whatever-else-you-want> is executed before unpacking the source inside the chroot, after setting up the chroot environment. Create $TMP, and $TMPDIR if necessary.
- --debemail [email-address]
-
Specifies that dpkg-buildpackage be called with -m$DEBEMAIL instead of default value specified in the environmental variable, or pbuilderrc
This option is almost obsolete, use --debbuildopts instead
- --debbuildopts [options]
-
List of options that are passed on to dpkg-buildpackage. Overrides any value given in DEBBUILDOPTS as specified in pbuilderrc.
- --logfile [file to log]
-
Specifies the logfile to create. The messages generated during execution will be written to the file, instead of messages coming to the standard output.
- --aptconfdir [APT configuration directory to use]
-
Uses the apt configuration file found in the specified directory as the chroot configuration. /etc/apt is one example, so that the same configuration can be used inside the chroot.
This option overrides other options, and may cause some inconsistency problems.
FILES
- /etc/pbuilderrc
-
The system-wide configuration file for pbuilder.
- /usr/share/pbuilder/pbuilderrc
-
The default settings for pbuilder, used as fallback.
- ${HOME}/.pbuilderrc
-
The personal configuration file for pbuilder.
BUGS
This program is starting to have too many options already.
AUTHOR
Initial coding, and main maintenance is done by Junichi Uekawa <[email protected]>. User hooks code added by Dale Amon <[email protected]>
SEE ALSO
pdebuild (1), pbuilderrc (5)