DEBAUX-BUILD(1p)

πŸ“¦
version 0.1.12 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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 β€” forces apt-get source mode. No takebacks.
  • --archive β€” specifies the file name of the source archive.
  • --build-options β€” options that get passed to dpkg-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 the dh-make Debian package installed to use this one. No dh-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 below DEBDIR which gets copied to the build directory.
  • -i, --install, --install=PACKAGE β€” installs the build package.
  • -l, --lintian β€” runs lintian on 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 using alien. Cross-distro crossover episode. πŸ‘½
  • -s, --sign β€” signs the source package and the changelog.
  • --skip-patches β€” don't apply patches from the patches directory or the sources.diff file.
  • --source-tree β€” instructs debaux-build to use the specified directory instead of an archive file.
  • --stop-before-build β€” stops the script before calling dpkg-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 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