1MK-BUILD-DEPS(1) MK-BUILD-DEPS(1)
2
3
4
6 mk-build-deps - build a package satisfying a package's
7 build-dependencies
8
10 mk-build-deps --help|--version
11
12 mk-build-deps [options] control file | package name ...
13
15 Given a package name and/or control file, mk-build-deps will use equivs
16 to generate a binary package which may be installed to satisfy all the
17 build dependencies of the given package.
18
19 If --build-dep and/or --build-indep are given, then the resulting
20 binary package(s) will depend solely on the
21 Build-Depends/Build-Depends-Indep dependencies, respectively.
22
24 -i, --install
25 Install the generated packages and its build-dependencies.
26
27 -t, --tool
28 When installing the generated package use the specified tool.
29 (default: apt-get -o Debug::pkgProblemResolver=yes
30 --no-install-recommends)
31
32 -r, --remove
33 Remove the package file after installing it. Ignored if used
34 without the --install switch.
35
36 -a foo, --arch foo
37 Set the architecture of the produced binary package to foo. If this
38 option is not given, fall back to the value given by --host-arch.
39 If neither this option nor --host-arch are given but the Build-
40 Depends contain architecture restrictions, use the value printed by
41 `dpkg-architecture -qDEB_HOST_ARCH`. Otherwise, use all.
42
43 The package architecture must be equal to the host architecture
44 except if the package architecture is all.
45
46 The package architecture cannot be all if the build and host
47 architecture differ.
48
49 --host-arch foo
50 Set the host architecture the binary package is built for. This
51 defaults to the value printed by `dpkg-architecture
52 -qDEB_HOST_ARCH`. Use this option to create a binary package that
53 is able to satisfy crossbuild dependencies.
54
55 If this option is used together with --arch, then they must be
56 equal except if the value of --arch is all.
57
58 If --arch is not given, then this option also sets the package
59 architecture.
60
61 --build-arch foo
62 Set the build architecture the binary package is built for. This
63 defaults to the value printed by `dpkg-architecture
64 -qDEB_BUILD_ARCH`. Use this option to create a binary package that
65 is able to satisfy crossbuild dependencies.
66
67 -B, --build-dep
68 Generate a package which only depends on the source package's
69 Build-Depends dependencies.
70
71 -A, --build-indep
72 Generate a package which only depends on the source package's
73 Build-Depends-Indep dependencies.
74
75 -P, --build-profiles profile[,...]
76 Generate a package which only depends on build dependencies with
77 the build profile(s), given as a comma-separated list. The default
78 behavior is to use no specific profile. Setting this option will
79 override the DEB_BUILD_PROFILES environment variable.
80
81 -h, --help
82 Show a summary of options.
83
84 -v, --version
85 Show version and copyright information.
86
87 -s, --root-cmd
88 Use the specified tool to gain root privileges before installing.
89 Ignored if used without the --install switch.
90
92 External environment
93 DEB_BUILD_PROFILES
94 If set, it will be used as the active build profile(s) for the
95 build dependencies to be installed. It is a space separated list
96 of profile names. Overridden by the -P option.
97
99 mk-build-deps is copyright by Vincent Fourmond and was modified for the
100 devscripts package by Adam D. Barratt <adam@adam-barratt.org.uk>.
101
102 This program comes with ABSOLUTELY NO WARRANTY. You are free to
103 redistribute this code under the terms of the GNU General Public
104 License, version 2 or later.
105
106
107
108Debian Utilities 2022-07-21 MK-BUILD-DEPS(1)