debian-builder(1)

debian-builder1

Rebuild a debian package from its source code.

Usage

debian-builder [options]

Options

--debug Show the commands this script executes as an aid to debugging.
--help Show the brief help information.
--verbose Show verbose information useful to debugging.

Overview

  debian-builder is a simple script which is designed to facilitate the
 rebuilding of a Debian GNU/Linux package from its source code.  It will
 correctly handle the installation of any required build-dependencies,
 and remove them once building is complete.

Releases

9 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1
  2. 4.0
  3. 5.0–10
  4. 11

--debug-dependency-handling until Debian 3.1 (Sarge); --debug-dump-build-deps until Debian 3.1 (Sarge); --debug-dump-packages until Debian 3.1 (Sarge); --debug-dump-source-package until Debian 3.1 (Sarge); --debuild until Debian 3.1 (Sarge); --sign until Debian 3.1 (Sarge); --verbose until Debian 3.1 (Sarge); --version until Debian 3.1 (Sarge).

Author

 Steve
 --
 http://www.steve.org.uk/
 $Id: debian-builder,v 1.14 2006/06/04 18:24:04 steve Exp $

License

Copyright (c) 2005 by Steve Kemp. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.

buildPackage

   Do all the work of building the given package.
   Return '>0' on success, '0' on failure of any kind.  (The result is the
 number of binary files moved into the results directory.)

parseCommandLineArguments

  Parse any command line arguments, and set the appropriate values
 in the global CONFIG hash.

getSourcePackageName

  Return the name of the source package required to build package 'foo'

getPackageSource

  Download the source of the package to the specified directory
 and return the name of the unpacked directory.

updateChangeLog

  If the Debian changelog file doesn't already refer to the specified
 version then add it.

saveDebianPackage

  Move the build Debian package, associated .diff.gz file, .changes file,
 etc.  From the build directory into the binary directory.
  Return the number of files moved into the binary directory.

tidySystem

  Uninstall all the build dependency packages we installed.
  We do this by finding the list of all packages which are currently
 installed and removing those that were not present when we started.

getInstalledPackages

  Return a hash of all the currently installed packages.

installBuildDependencies

  Install the build-dependencies required to build the given package.

removePackages

  Remove the given array of packages from the system.

End

  Desperately try to reset the host system to the same starting point
 as it initially had.
  This should be taken care of in situations where the script doesn't
 abort on an error condition.

From debian-builder 1.8.0 in Debian 11 (Bullseye). Parsed by carta from the page's man source.