DEBIAN-BUILDER(1)
π debian-builder(1) β the manual, but make it cute π
okay bestie, this is the User Contributed Perl Documentation page for debian-builder. no cap, we're rebuilding a Debian package from its source code and we're gonna understand every lil' flag. periodt. β¨
πΈ NAME πΈ
debian-builder β rebuild a Debian package from its source code. π
π SYNOPSIS π
okay so the vibe is literally this:
debian-builder [options]
Help Options:
--debug Show useful debugging information.
--help Show this scripts help information.
--manual Read this scripts manual.
--version Show the version number and exit.
--verbose Show verbose output.
Building options:
--sign Force package signing, disabled by default.
--debuild foo Pass arguments 'foo' onto debuild when building
--suffix foo Give the built package versions the suffix 'foo'.
β¨ OPTIONS β¨
--debugβ shows the commands this script executes as an aid to debugging. like a little backstage pass, bestie. π--helpβ shows the brief help information. the quick lil' rundown. π«Ά--verboseβ shows verbose information useful to debugging. it's giving "tell me everything" energy. π¬
also peep the SYNOPSIS for --manual, --version, --sign, --debuild foo, and --suffix foo β they're all up there. no cap. β¨
π DESCRIPTION π
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. so it's lowkey doing the most so you don't have to. π
π AUTHOR π
the icon, the legend:
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 π§±
does all the work of building the given package. πͺ
returns >0 on success, 0 on failure of any kind. (the result is the number of binary files moved into the results directory.) so like, if it worked you get a positive number, if it flopped you get zero. periodt.
parseCommandLineArguments π
parses any command line arguments, and sets the appropriate values in the global CONFIG hash. yep, it's reading your mindβwell, your flags. π§ β¨
getSourcePackageName π
returns the name of the source package required to build package foo. like, "who's the source package for foo? this function knows." π
getPackageSource π¦
downloads the source of the package to the specified directory and returns the name of the unpacked directory. so you get the goods, unzipped and ready. π¦
updateChangeLog π
if the Debian changelog file doesn't already refer to the specified version, then it adds it. no duplicate entries, bestie. π«
saveDebianPackage πΎ
moves the build Debian package, associated .diff.gz file, .changes file, etc., from the build directory into the binary directory. πβ‘οΈπ
returns the number of files moved into the binary directory. so it's counting the bag. π
tidySystem π§Ή
uninstalls 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. it's giving "leave no trace" energy. πΏ
getInstalledPackages π
returns a hash of all the currently installed packages. a whole roster, bestie. π
installBuildDependencies π οΈ
installs the build-dependencies required to build the given package. gotta get the tools before the masterpiece. π¨
removePackages ποΈ
removes the given array of packages from the system. bye bye, packages. π
END π
desperately tries 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. so yeah, it's the emergency cleanup era. π¨
mwah π this page is from perl v5.30.3, dated 2020-07-14, and it's the DEBIAN-BUILDER(1) manual. slay. β¨
π¦ where this page comes from
- ubuntu jammy: debian-builder 1.8.0 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms