DEBAUX-BUILD(1p)
π DEBAUX-BUILD(1p) β Debian package building script π
okay bestie, listen up β this is debaux-build, and she lives in the User Contributed Perl Documentation section of your friendly neighbourhood manual pages. She's a lil helper script whose whole personality is building Debian packages, and honestly? She eats. β¨
π SYNOPSIS
debaux-build [OPTIONS] DEBDIR [BUILDDIR SOURCEDIR]
debaux-build --cpan Net::Google
Like, that's the whole vibe. π«Ά
πΈ VERSION
0.1.11 β that's the version, babes. Not a drill.
β¨ DESCRIPTION
debaux-build is your helper script for building Debian packages, and she is so good at it. Besides the options, she takes up to three parameters: DEBDIR, BUILDDIR, and SOURCEDIR. And the important part β the mandatory part β DEBDIR is a required parameter. You cannot skip her. She is the main character. π
If DEBDIR doesn't exist? No stress, she just tries to download the package with apt-get source. Resourceful queen. π
Then she applies all the patches she finds hanging out in the DEBDIR subdirectory called patches. Every single one.
And if there's no source tarball but the DEBDIR subdirectory sources does exist, all the files in that directory get packed up and used as the source tarball. Recycle, repurpose, slay. π¦
π OPTIONS
--aptβ forcesapt-get sourcemode. No takebacks.--archiveβ specifies the file name of the source archive.--build-optionsβ options that get passed todpkg-buildpackage.--chroot=DIRECTORYβ builds the package inside a chroot environment.--cpanβ downloads a Perl module from CPAN and creates the necessary Debian packaging files. Heads up bestie: you need to have thedh-makeDebian package installed to use this one. Nodh-make, no party. π--emptyβ empty package (no source code archive at all). It's intended to be used for task packages. It's giving minimalism. π--env=NAME=VALUEβ sets environment variable(s) for builds in chroot environments.
Here's the example for using gcc-snapshot in a chroot that contains Debian unstable (sid):
--env='PATH=/usr/lib/gcc-snapshot/bin:$PATH'
--env='LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH'
--epochβ specifies the epoch for CPAN builds.--extra-sourcesβ specifies a directory belowDEBDIRwhich gets copied to the build directory.-i,--install,--install=PACKAGEβ installs the build package.-l,--lintianβ runslintianon the source file and the generated packages. Quality check era. π--make-archiveβ intended to be used for native Debian packages. You specify the commands to build the archive right here.--releaseβ the generated packages are targeted for official Debian packages.--rpm,--alienβ converts the generated packages into RPM packages by usingalien. Cross-distro crossover episode. π½-s,--signβ signs the source package and the changelog.--skip-patchesβ don't apply patches from thepatchesdirectory or thesources.difffile.--source-treeβ instructsdebaux-buildto use the specified directory instead of an archive file.--stop-before-buildβ stops the script before callingdpkg-buildpackage. (Sometimes you gotta pause before the big moment. π)
π§ CONFIGURATION FILE
debaux-build goes looking for a configuration file called .debauxrc β in the home directory and in the current directory β and she recognises these directives:
β debauxdir PACKAGE
Used as DEBDIR for the package if it's an existing directory. This one is considered before the <debiandir> directive. Priorities, bestie.
β debiandir
If the directory DEBDIR on the commandline doesn't exist, debaux-build appends DEBDIR to the specified directory and tries again. Second chances are cute. π
β sourcedir
The directory with the source archives. Can be overridden by the commandline parameter SOURCEDIR.
β source-tree PACKAGE
The directory with the source code for PACKAGE.
π₯ SEE ALSO
dpkg(8), dpkg-source(1), apt-get(8)
Go read those too, iykyk. π
π AUTHOR
Stefan Hornburg (Racke) <racke@linuxia.de>.
π LICENSE
debaux-build comes with ABSOLUTELY NO WARRANTY. It's free software, and you are welcome to redistribute and modify it under the terms of the GNU General Public License. FOSS royalty behaviour. π
π COPYRIGHT
Copyright 2000,2001,2002,2003,2004,2005,2006,2007,2008,2010 Stefan Hornburg (Racke) <racke@linuxia.de>.
and that's the whole page, babe β this documentation ships with perl v5.32.0 and it was dated 2021-01-05. Periodt. π
β¨
π¦ where this page comes from
- debian bookworm: debaux 0.1.12-1.1
- ubuntu jammy: debaux 0.1.12-1.1
- ubuntu noble: debaux 0.1.12-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms