MK-BUILD-DEPS(1)
๐ MK-BUILD-DEPS ๐
okay bestie, welcome to the manual page for mk-build-deps โ that's the mk-build-deps(1) situation, a lil Debian Utilities icon, and she is here to serve ๐
โจ NAME โจ
mk-build-deps โ build a package that satisfies a package's build-dependencies ๐ซถ
๐ธ SYNOPSIS ๐ธ
mk-build-deps --help|--version
mk-build-deps [options] control file | package name ...
๐ฆ DESCRIPTION ๐ฆ
so like. you hand her a package name and/or a control file, and mk-build-deps will use equivs to generate a binary package that you can install to satisfy all the build dependencies of that package. that's the whole gig. slay โจ
and if you pass --build-dep and/or --build-indep, then the resulting binary package(s) will depend solely on the Build-Depends / Build-Depends-Indep dependencies respectively. no extras, no add-ons, just the vibes you asked for ๐
๐ OPTIONS ๐
-i,--installโ installs the generated packages and the build-dependencies that come with them. the full package deal ๐-t,--toolโ when installing the generated package, use the tool you specify here. the default isapt-get -o Debug::pkgProblemResolver=yes --no-install-recommendsโ yes girl, that's literally the default, memorize it ๐ญ-r,--removeโ removes the package file after installing it. ngl this one gets ignored if you use it without the--installswitch, so don't be surprised ๐-a foo,--arch fooโ sets the architecture of the produced binary package tofoo. here's the little flowchart bestie: if you don't give this option, she falls back to the value given by--host-arch. if you give neither this option nor--host-arch, but theBuild-Dependscontain architecture restrictions, she uses the value printed bydpkg-architecture -qDEB_HOST_ARCH. otherwise? she usesall.
The package architecture must be equal to the host architecture, except if the package architecture is all.
The package architecture cannot be all if the build and host architecture differ. periodt.
--host-arch fooโ sets the host architecture the binary package is built for. this defaults to whateverdpkg-architecture -qDEB_HOST_ARCHprints out. use this option when you wanna create a binary package that's able to satisfy crossbuild dependencies ๐
If you use this option together with --arch, then the two must be equal โ except if the value of --arch is all.
And if --arch is not given, then this option also sets the package architecture. multitasking icon โจ
--build-arch fooโ sets the build architecture the binary package is built for. this defaults to the value printed bydpkg-architecture -qDEB_BUILD_ARCH. again, this is for making a binary package that can satisfy crossbuild dependencies ๐ช-B,--build-depโ generates a package that only depends on the source package'sBuild-Dependsdependencies. just those ones ๐-A,--build-indepโ generates a package that only depends on the source package'sBuild-Depends-Indepdependencies. the independent lil sibling ๐ธ-P,--build-profiles profile[,...]โ generates a package that only depends on build dependencies with the build profile(s), given as a comma-separated list. the default behavior is to use no specific profile at all. and heads up: setting this option overrides theDEB_BUILD_PROFILESenvironment variable ๐ฅ-h,--helpโ shows a summary of options. your little map ๐บ๏ธ-v,--versionโ shows version and copyright information. the receipts ๐งพ-s,--root-cmdโ uses the specified tool to gain root privileges before installing. ignored if you use it without the--installswitch. so yeah, needs her buddy--installto actually do anything ๐
๐ ENVIRONMENT ๐
๐ฎ External environment ๐ฎ
DEB_BUILD_PROFILESโ if this is set, it will be used as the active build profile(s) for the build dependencies to be installed. it's a space separated list of profile names. and it gets overridden by the-Poption, so-Palways wins that argument ๐
๐ AUTHOR ๐
mk-build-deps is copyright by Vincent Fourmond, and was modified for the devscripts package by Adam D. Barratt <adam@adam-barratt.org.uk>. give them their flowers ๐
This program comes with ABSOLUTELY NO WARRANTY. You are free to redistribute this code under the terms of the GNU General Public License, version 2 or later. read that again bestie, ABSOLUTELY NO WARRANTY, no cap ๐ญ
okay that's the whole page, you ate this ๐ and just so you know where this all came from: Debian Utilities, dated 2026-09-21 โ bye bestie, go build something gorgeous ๐โจ
๐ฆ where this page comes from
- ubuntu stonking: devscripts 2.26.11ubuntu1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms