dpkg-buildpackage.man 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. .\" dpkg manual page - dpkg-buildpackage(1)
  2. .\"
  3. .\" Copyright © 1995-1996 Ian Jackson
  4. .\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
  5. .\" Copyright © 2007-2008 Frank Lichtenheld <djpig@debian.org>
  6. .\" Copyright © 2008-2015 Guillem Jover <guillem@debian.org>
  7. .\" Copyright © 2008-2012 Raphaël Hertzog <hertzog@debian.org>
  8. .\"
  9. .\" This is free software; you can redistribute it and/or modify
  10. .\" it under the terms of the GNU General Public License as published by
  11. .\" the Free Software Foundation; either version 2 of the License, or
  12. .\" (at your option) any later version.
  13. .\"
  14. .\" This is distributed in the hope that it will be useful,
  15. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. .\" GNU General Public License for more details.
  18. .\"
  19. .\" You should have received a copy of the GNU General Public License
  20. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  21. .
  22. .TH dpkg\-buildpackage 1 "%RELEASE_DATE%" "%VERSION%" "dpkg utilities"
  23. .nh
  24. .SH NAME
  25. dpkg\-buildpackage \- build binary or source packages from sources
  26. .
  27. .SH SYNOPSIS
  28. .B dpkg\-buildpackage
  29. .RI [ option ...]
  30. .
  31. .SH DESCRIPTION
  32. .B dpkg\-buildpackage
  33. is a program that automates the process of building a Debian package. It
  34. consists of the following steps:
  35. .IP \fB1.\fP 3
  36. It prepares the build environment by setting various environment
  37. variables (see \fBENVIRONMENT\fP), runs the \fBinit\fP hook, and calls
  38. \fBdpkg\-source \-\-before\-build\fP (unless \fB\-T\fP or \fB\-\-target\fP
  39. has been used).
  40. .IP \fB2.\fP 3
  41. It checks that the build-dependencies and build-conflicts
  42. are satisfied (unless \fB\-d\fP or \fB\-\-no\-check\-builddeps\fP is specified).
  43. .IP \fB3.\fP 3
  44. If a specific target has been selected with the \fB\-T\fP or \fB\-\-target\fP
  45. option, it calls that target and stops here. Otherwise it runs the
  46. \fBpreclean\fP hook and calls \fBfakeroot debian/rules clean\fP to
  47. clean the build-tree (unless \fB\-nc\fP or \fB\-\-no\-pre\-clean\fP
  48. is specified).
  49. .IP \fB4.\fP 3
  50. It runs the \fBsource\fP hook and calls \fBdpkg\-source \-b\fP to generate
  51. the source package (if a \fBsource\fP build has been requested with
  52. \fB\-\-build\fP or equivalent options).
  53. .IP \fB5.\fP 3
  54. It runs the \fBbuild\fP hook and calls \fBdebian/rules\fP \fIbuild-target\fP,
  55. then runs the \fBbinary\fP hook followed by \fBfakeroot debian/rules\fP
  56. \fIbinary-target\fP (unless a source-only build has been requested with
  57. \fB\-\-build=source\fP or equivalent options).
  58. Note that \fIbuild-target\fR and \fIbinary-target\fP are either \fBbuild\fP
  59. and \fBbinary\fP (default case, or if an \fBany\fP and \fBall\fP build
  60. has been requested with \fB\-\-build\fP or equivalent options), or
  61. \fBbuild\-arch\fP and \fBbinary\-arch\fP (if an \fBany\fP and not \fBall\fP
  62. build has been requested with \fB\-\-build\fP or equivalent options), or
  63. \fBbuild\-indep\fP and \fBbinary\-indep\fP (if an \fBall\fP and not \fBany\fP
  64. build has been requested with \fB\-\-build\fP or equivalent options).
  65. .IP \fB6.\fP 3
  66. It runs the \fBchanges\fP hook and calls \fBdpkg\-genchanges\fP to
  67. generate a \fB.changes\fP file.
  68. The name of the \fB.changes\fP file will depend on the type of build and
  69. will be as specific as necessary but not more;
  70. for a build that includes \fBany\fP the name will be
  71. \fIsource-name\fP\fB_\fP\fIsource-version\fP\fB_\fP\fIarch\fP\fB.changes\fP,
  72. or otherwise for a build that includes \fBall\fP the name will be
  73. \fIsource-name\fP\fB_\fP\fIsource-version\fP\fB_\fP\fBall.changes\fP,
  74. or otherwise for a build that includes \fBsource\fP the name will be
  75. \fIsource-name\fP\fB_\fP\fIsource-version\fP\fB_\fP\fBsource.changes\fP.
  76. Many \fBdpkg\-buildpackage\fP options are forwarded to
  77. \fBdpkg\-genchanges\fP.
  78. .IP \fB7.\fP 3
  79. It runs the \fBpostclean\fP hook and if \fB\-tc\fP or \fB\-\-post\-clean\fP
  80. is specified, it will call \fBfakeroot debian/rules clean\fP again.
  81. .IP \fB8.\fP 3
  82. It calls \fBdpkg\-source \-\-after\-build\fP.
  83. .IP \fB9.\fP 3
  84. It runs the \fBcheck\fP hook and calls a package checker for the
  85. \fB.changes\fP file (if a command is specified in \fBDEB_CHECK_COMMAND\fP or
  86. with \fB\-\-check\-command\fP).
  87. .IP \fB10.\fP 3
  88. It runs the \fBsign\fP hook and calls \fBgpg2\fP or \fBgpg\fP to sign
  89. the \fB.dsc\fP file (if any, unless \fB\-us\fP or \fB\-\-unsigned\-source\fP
  90. is specified or on UNRELEASED builds), and the \fB.changes\fP file
  91. (unless \fB\-uc\fP or \fB\-\-unsigned\-changes\fP is specified or on
  92. UNRELEASED builds).
  93. .IP \fB11.\fP 3
  94. It runs the \fBdone\fP hook.
  95. .
  96. .SH OPTIONS
  97. All long options can be specified both on the command line and in the
  98. \fBdpkg\-buildpackage\fP system and user configuration files.
  99. Each line in the configuration file is either an option (exactly the same
  100. as the command line option but without leading hyphens) or a comment (if
  101. it starts with a ‘\fB#\fP’).
  102. .TP
  103. .BI \-\-build= type
  104. Specifies the build \fItype\fP from a comma-separated list of components
  105. (since dpkg 1.18.5).
  106. Passed to \fBdpkg\-genchanges\fP.
  107. The allowed values are:
  108. .RS
  109. .TP
  110. .B source
  111. Builds the source package.
  112. Note: when using this value standalone and if what you want is simply to
  113. (re-)build the source package, using \fBdpkg\-source\fP is always better
  114. as it does not require any build dependencies to be installed to be able
  115. to call the \fBclean\fP target.
  116. .TP
  117. .B any
  118. Builds the architecture specific binary packages.
  119. .TP
  120. .B all
  121. Builds the architecture independent binary packages.
  122. .TP
  123. .B binary
  124. Builds the architecture specific and independent binary packages.
  125. This is an alias for \fBany,all\fP.
  126. .TP
  127. .B full
  128. Builds everything.
  129. This is an alias for \fBsource,any,all\fP, and the same as the default
  130. case when no build option is specified.
  131. .RE
  132. .TP
  133. .B \-g
  134. Equivalent to \fB\-\-build=source,all\fP (since dpkg 1.17.11).
  135. .TP
  136. .B \-G
  137. Equivalent to \fB\-\-build=source,any\fP (since dpkg 1.17.11).
  138. .TP
  139. .B \-b
  140. Equivalent to \fB\-\-build=binary\fP or \fB\-\-build=any,all\fP.
  141. .TP
  142. .B \-B
  143. Equivalent to \fB\-\-build=any\fP.
  144. .TP
  145. .B \-A
  146. Equivalent to \fB\-\-build=all\fP.
  147. .TP
  148. .B \-S
  149. Equivalent to \fB\-\-build=source\fP.
  150. .TP
  151. .B \-F
  152. Equivalent to \fB\-\-build=full\fP, \fB\-\-build=source,binary\fP or
  153. \fB\-\-build=source,any,all\fP (since dpkg 1.15.8).
  154. .TP
  155. .BI \-\-target= target
  156. .TQ
  157. .BI "\-\-target " target
  158. .TQ
  159. .BR \-T ", " \-\-rules\-target= \fItarget\fP
  160. Calls \fBdebian/rules\fP \fItarget\fP after having setup the build
  161. environment and stops the package build process here (since dpkg 1.15.0,
  162. long option since dpkg 1.18.8).
  163. If \fB\-\-as\-root\fP is also given, then the command is executed
  164. as root (see \fB\-\-root\-command\fP).
  165. Note that known targets that are required to
  166. be run as root do not need this option (i.e. the \fBclean\fP, \fBbinary\fP,
  167. \fBbinary\-arch\fP and \fBbinary\-indep\fP targets).
  168. .TP
  169. .B \-\-as\-root
  170. Only meaningful together with \fB\-\-target\fP (since dpkg 1.15.0).
  171. Requires that the target be run with root rights.
  172. .TP
  173. .B \-si
  174. .TQ
  175. .B \-sa
  176. .TQ
  177. .B \-sd
  178. .TQ
  179. .BI \-v version
  180. .TQ
  181. .BI \-C changes-description
  182. .TQ
  183. .BR \-m ", " \-\-release\-by= \fImaintainer-address\fP
  184. .TQ
  185. .BR \-e ", " \-\-build\-by= \fImaintainer-address\fP
  186. Passed unchanged to \fBdpkg\-genchanges\fP. See its manual page.
  187. .TP
  188. .BR \-a ", " \-\-host\-arch " \fIarchitecture\fP"
  189. Specify the Debian architecture we build for (long option since dpkg 1.17.17).
  190. The architecture of the
  191. machine we build on is determined automatically, and is also the default
  192. for the host machine.
  193. .TP
  194. .BR \-t ", " \-\-host\-type " \fIgnu-system-type\fP"
  195. Specify the GNU system type we build for (long option since dpkg 1.17.17).
  196. It can be used in place
  197. of \fB\-\-host\-arch\fP or as a complement to override the default GNU system type
  198. of the host Debian architecture.
  199. .TP
  200. .BR \-\-target\-arch " \fIarchitecture\fP"
  201. Specify the Debian architecture the binaries built will build for
  202. (since dpkg 1.17.17).
  203. The default value is the host machine.
  204. .TP
  205. .BR \-\-target\-type " \fIgnu-system-type\fP"
  206. Specify the GNU system type the binaries built will build for
  207. (since dpkg 1.17.17).
  208. It can be
  209. used in place of \fB\-\-target\-arch\fP or as a complement to override the
  210. default GNU system type of the target Debian architecture.
  211. .TP
  212. .BR \-P ", " \-\-build\-profiles= \fIprofile\fP[ , ...]
  213. Specify the profile(s) we build, as a comma-separated list (since dpkg 1.17.2,
  214. long option since dpkg 1.18.8).
  215. The default
  216. behavior is to build for no specific profile. Also sets them (as a space
  217. separated list) as the \fBDEB_BUILD_PROFILES\fP environment variable which
  218. allows, for example, \fBdebian/rules\fP files to use this information for
  219. conditional builds.
  220. .TP
  221. .BR \-j ", " \-\-jobs [=\fIjobs\fP|\fBauto\fP]
  222. Number of jobs allowed to be run simultaneously, number of jobs matching
  223. the number of online processors if \fBauto\fP is specified
  224. (since dpkg 1.17.10), or unlimited number if \fIjobs\fP is not specified,
  225. equivalent to the
  226. .BR make (1)
  227. option of the same name (since dpkg 1.14.7, long option since dpkg 1.18.8).
  228. Will add itself to the \fBMAKEFLAGS\fP
  229. environment variable, which should cause all subsequent make
  230. invocations to inherit the option, thus forcing the parallel setting on
  231. the packaging (and possibly the upstream build system if that uses make)
  232. regardless of their support for parallel builds, which might cause build
  233. failures.
  234. Also adds \fBparallel=\fP\fIjobs\fP or
  235. \fBparallel\fP to the \fBDEB_BUILD_OPTIONS\fP environment variable which
  236. allows debian/rules files to use this information for their own purposes.
  237. The \fB\-j\fP value will override the \fBparallel=\fP\fIjobs\fP or
  238. \fBparallel\fP option in the \fBDEB_BUILD_OPTIONS\fP environment variable.
  239. Note that the \fBauto\fP value will get replaced by the actual number of
  240. currently active processors, and as such will not get propagated to any
  241. child process. If the number of online processors cannot be inferred then
  242. the code will fallback to using an unlimited number.
  243. .TP
  244. .BR \-J ", " \-\-jobs\-try [=\fIjobs\fP|\fBauto\fP]
  245. This option (since dpkg 1.18.2, long option since dpkg 1.18.8) is equivalent
  246. to the \fB\-j\fP option except that it does not set the \fBMAKEFLAGS\fP
  247. environment variable, and as such it is safer to use with any package
  248. including those that are not parallel-build safe.
  249. .TP
  250. .BR \-D ", " \-\-check\-builddeps
  251. Check build dependencies and conflicts; abort if unsatisfied (long option
  252. since dpkg 1.18.8).
  253. This is the default behavior.
  254. .TP
  255. .BR \-d ", " \-\-no\-check\-builddeps
  256. Do not check build dependencies and conflicts (long option since dpkg 1.18.8).
  257. .TP
  258. .B \-\-ignore\-builtin\-builddeps
  259. Do not check built-in build dependencies and conflicts (since dpkg 1.18.2).
  260. These are the distribution specific implicit build dependencies usually
  261. required in a build environment, the so called Build-Essential package set.
  262. .TP
  263. .BR \-nc ", " \-\-no\-pre\-clean
  264. Do not clean the source tree (long option since dpkg 1.18.8).
  265. Implies \fB\-b\fP if nothing else has been selected among \fB\-F\fP,
  266. \fB\-g\fP, \fB\-G\fP, \fB\-B\fP, \fB\-A\fP or \fB\-S\fP.
  267. Implies \fB\-d\fP with \fB\-S\fP (since dpkg 1.18.0).
  268. .TP
  269. .BR \-\-pre\-clean
  270. Clean the source tree before building (since dpkg 1.18.8).
  271. .TP
  272. .BR \-tc ", " \-\-post\-clean
  273. Clean the source tree (using
  274. .I gain-root-command
  275. .BR "debian/rules clean" )
  276. after the package has been built (long option since dpkg 1.18.8).
  277. .TP
  278. .BR \-r ", " \-\-root\-command= \fIgain-root-command\fP
  279. When
  280. .B dpkg\-buildpackage
  281. needs to execute part of the build process as root, it prefixes the
  282. command it executes with
  283. .I gain-root-command
  284. if one has been specified (long option since dpkg 1.18.8).
  285. Otherwise, if none has been specified,
  286. \fBfakeroot\fP will be used by default, if the command is present.
  287. .I gain-root-command
  288. should start with the name of a program on the
  289. .B PATH
  290. and will get as arguments the name of the real command to run and the
  291. arguments it should take.
  292. .I gain-root-command
  293. can include parameters (they must be space-separated) but no shell
  294. metacharacters.
  295. .I gain-root-command
  296. might typically be
  297. .BR fakeroot ", " sudo ", " super " or " really .
  298. .B su
  299. is not suitable, since it can only invoke the user's shell with
  300. .B \-c
  301. instead of passing arguments individually to the command to be run.
  302. .TP
  303. .BR \-R ", " \-\-rules-file= \fIrules-file\fP
  304. Building a Debian package usually involves invoking
  305. .B debian/rules
  306. as a command with several standard parameters (since dpkg 1.14.17,
  307. long option since dpkg 1.18.8).
  308. With this option it's
  309. possible to use another program invocation to build the package (it can
  310. include space separated parameters).
  311. Alternatively it can be used to execute the standard rules file with
  312. another make program (for example by using
  313. .B /usr/local/bin/make \-f debian/rules
  314. as \fIrules-file\fR).
  315. .TP
  316. .BI \-\-check\-command= check-command
  317. Command used to check the \fB.changes\fP file itself and any artifact built
  318. referenced in the file (since dpkg 1.17.6).
  319. The command should take the \fB.changes\fP pathname
  320. as an argument. This command will usually be \fBlintian\fP.
  321. .TP
  322. .BI \-\-check\-option= opt
  323. Pass option \fIopt\fP to the \fIcheck-command\fP specified with
  324. \fBDEB_CHECK_COMMAND\fP or \fB\-\-check\-command\fP (since dpkg 1.17.6).
  325. Can be used multiple times.
  326. .TP
  327. .BI \-\-hook\- hook-name = hook-command
  328. Set the specified shell code \fIhook-command\fP as the hook \fIhook-name\fP,
  329. which will run at the times specified in the run steps (since dpkg 1.17.6).
  330. The hooks will
  331. always be executed even if the following action is not performed (except
  332. for the \fBbinary\fP hook).
  333. Note: Hooks can affect the build process, and cause build failures if
  334. their commands fail, so watch out for unintended consequences.
  335. The current \fIhook-name\fP supported are:
  336. .B init preclean source build binary changes postclean check sign done
  337. The \fIhook-command\fP supports the following substitution format string,
  338. which will get applied to it before execution:
  339. .RS
  340. .TP
  341. .B %%
  342. A single % character.
  343. .TP
  344. .B %a
  345. A boolean value (0 or 1), representing whether the following action is
  346. being performed.
  347. .TP
  348. .B %p
  349. The source package name.
  350. .TP
  351. .B %v
  352. The source package version.
  353. .TP
  354. .B %s
  355. The source package version (without the epoch).
  356. .TP
  357. .B %u
  358. The upstream version.
  359. .RE
  360. .TP
  361. .BR \-p ", " \-\-sign\-command= \fIsign-command\fP
  362. When \fBdpkg\-buildpackage\fP needs to execute GPG to sign a source
  363. control (\fB.dsc\fP) file or a \fB.changes\fP file it will run
  364. \fIsign-command\fP (searching the \fBPATH\fP if necessary) instead of
  365. \fBgpg2\fP or \fBgpg\fP (long option since dpkg 1.18.8).
  366. \fIsign-command\fP will get all the arguments
  367. that \fBgpg2\fP or \fBgpg\fP would have gotten. \fIsign-command\fP
  368. should not contain spaces or any other shell metacharacters.
  369. .TP
  370. .BR \-k ", " \-\-sign\-key= \fIkey-id\fP
  371. Specify a key-ID to use when signing packages (long option since dpkg 1.18.8).
  372. .TP
  373. .BR \-us ", " \-\-unsigned\-source
  374. Do not sign the source package (long option since dpkg 1.18.8).
  375. .TP
  376. .BR \-uc ", " \-\-unsigned\-changes
  377. Do not sign the \fB.changes\fP file (long option since dpkg 1.18.8).
  378. .TP
  379. .BR \-\-force\-sign
  380. Force the signing of the resulting files (since dpkg 1.17.0), regardless of
  381. \fB\-us\fP, \fB\-\-unsigned\-source\fP, \fB\-uc\fP, \fB\-\-unsigned\-changes\fP
  382. or other internal heuristics.
  383. .TP
  384. .BR \-sn
  385. .TQ
  386. .BR \-ss
  387. .TQ
  388. .BR \-sA
  389. .TQ
  390. .BR \-sk
  391. .TQ
  392. .BR \-su
  393. .TQ
  394. .BR \-sr
  395. .TQ
  396. .BR \-sK
  397. .TQ
  398. .BR \-sU
  399. .TQ
  400. .BR \-sR
  401. .TQ
  402. .BR \-i ", " \-\-diff\-ignore [=\fIregex\fP]
  403. .TQ
  404. .BR \-I ", " \-\-tar\-ignore [=\fIpattern\fP]
  405. .TQ
  406. .BR \-z ", " \-\-compression\-level= \fIlevel\fP
  407. .TQ
  408. .BR \-Z ", " \-\-compression= \fIcompressor\fP
  409. Passed unchanged to \fBdpkg\-source\fP. See its manual page.
  410. .TP
  411. .BI \-\-source\-option= opt
  412. Pass option \fIopt\fP to \fBdpkg\-source\fP (since dpkg 1.15.6).
  413. Can be used multiple times.
  414. .TP
  415. .BI \-\-changes\-option= opt
  416. Pass option \fIopt\fP to \fBdpkg\-genchanges\fP (since dpkg 1.15.6).
  417. Can be used multiple times.
  418. .TP
  419. .BI \-\-admindir= dir
  420. .TQ
  421. .BI "\-\-admindir " dir
  422. Change the location of the \fBdpkg\fR database (since dpkg 1.14.0).
  423. The default location is \fI%ADMINDIR%\fP.
  424. .TP
  425. .BR \-? ", " \-\-help
  426. Show the usage message and exit.
  427. .TP
  428. .BR \-\-version
  429. Show the version and exit.
  430. .
  431. .SH ENVIRONMENT
  432. .SS External environment
  433. .TP
  434. .B DEB_CHECK_COMMAND
  435. If set, it will be used as the command to check the \fB.changes\fP file
  436. (since dpkg 1.17.6).
  437. Overridden by the \fB\-\-check\-command\fP option.
  438. .TP
  439. .B DEB_SIGN_KEYID
  440. If set, it will be used to sign the \fB.changes\fP and \fB.dsc\fP files
  441. (since dpkg 1.17.2).
  442. Overridden by the \fB\-\-sign\-key\fP option.
  443. .TP
  444. .B DEB_BUILD_OPTIONS
  445. If set, and containing \fBnocheck\fP the \fBDEB_CHECK_COMMAND\fP variable
  446. will be ignored.
  447. .TP
  448. .B DEB_BUILD_PROFILES
  449. If set, it will be used as the active build profile(s) for the package
  450. being built (since dpkg 1.17.2).
  451. It is a space separated list of profile names.
  452. Overridden by the \fB\-P\fP option.
  453. .TP
  454. .B DPKG_COLORS
  455. Sets the color mode (since dpkg 1.18.5).
  456. The currently accepted values are: \fBauto\fP, \fBalways\fP and
  457. \fBnever\fP (default).
  458. .SS Internal environment
  459. Even if \fBdpkg\-buildpackage\fP exports some variables, \fBdebian/rules\fP
  460. should not rely on their presence and should instead use the
  461. respective interface to retrieve the needed values, because that
  462. file is the main entry point to build packages and running it
  463. standalone should be supported.
  464. .TP
  465. .B DEB_BUILD_*
  466. .TQ
  467. .B DEB_HOST_*
  468. .TQ
  469. .B DEB_TARGET_*
  470. \fBdpkg\-architecture\fP is called with the \fB\-a\fP and \fB\-t\fP
  471. parameters forwarded. Any variable that is output by its \fB\-s\fP
  472. option is integrated in the build environment.
  473. .TP
  474. .B SOURCE_DATE_EPOCH
  475. This variable is set to the Unix timestamp since the epoch of the
  476. latest entry in \fIdebian/changelog\fP, if it is not already defined.
  477. .
  478. .SH FILES
  479. .TP
  480. .I %PKGCONFDIR%/buildpackage.conf
  481. System wide configuration file
  482. .TP
  483. .IR $XDG_CONFIG_HOME/dpkg/buildpackage.conf " or"
  484. .TQ
  485. .I $HOME/.config/dpkg/buildpackage.conf
  486. User configuration file.
  487. .
  488. .SH NOTES
  489. .SS Compiler flags are no longer exported
  490. Between dpkg 1.14.17 and 1.16.1, \fBdpkg\-buildpackage\fP
  491. exported compiler flags (\fBCFLAGS\fP, \fBCXXFLAGS\fP, \fBFFLAGS\fP,
  492. \fBCPPFLAGS\fP and \fBLDFLAGS\fP) with values as returned
  493. by \fBdpkg\-buildflags\fP. This is no longer the case.
  494. .SS Default build targets
  495. \fBdpkg\-buildpackage\fP is using the \fBbuild\-arch\fP and
  496. \fBbuild\-indep\fP targets since dpkg 1.16.2. Those targets are thus
  497. mandatory. But to avoid breakages of existing packages, and ease
  498. the transition, if the source package does not build both architecture
  499. independent and dependent binary packages (since dpkg 1.18.8) it will
  500. fallback to use the \fBbuild\fP target if \fBmake \-f debian/rules \-qn\fP
  501. \fIbuild-target\fP returns 2 as exit code.
  502. .SH BUGS
  503. It should be possible to specify spaces and shell metacharacters
  504. and initial arguments for
  505. .IR gain-root-command " and " sign-command .
  506. .
  507. .SH SEE ALSO
  508. .ad l
  509. .BR dpkg\-source (1),
  510. .BR dpkg\-architecture (1),
  511. .BR dpkg\-buildflags (1),
  512. .BR dpkg\-genchanges (1),
  513. .BR fakeroot (1),
  514. .BR lintian (1),
  515. .BR gpg2 (1),
  516. .BR gpg (1).