gbp-buildpackage.sgml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. <refentry id="man.gbp.buildpackage">
  2. <refentryinfo>
  3. <address>
  4. &dhemail;
  5. </address>
  6. <author>
  7. &dhfirstname;
  8. &dhsurname;
  9. </author>
  10. </refentryinfo>
  11. <refmeta><refentrytitle>gbp-buildpackage</refentrytitle>
  12. &dhsection;
  13. </refmeta>
  14. <refnamediv>
  15. <refname>gbp-buildpackage</refname>
  16. <refpurpose>Build &debian; packages from a &git; repository</refpurpose>
  17. </refnamediv>
  18. <refsynopsisdiv>
  19. <cmdsynopsis>
  20. &gbp-buildpackage;
  21. <arg><option>--git-[no-]ignore-new</option></arg>
  22. <arg><option>--git-tag</option></arg>
  23. <arg><option>--git-verbose</option></arg>
  24. <arg><option>--git-color=</option><replaceable>[auto|on|off]</replaceable></arg>
  25. <arg><option>--git-color-scheme</option>=<replaceable>COLOR_SCHEME</replaceable></arg>
  26. <arg><option>--git-notify=</option><replaceable>[auto|on|off]</replaceable></arg>
  27. <arg><option>--git-upstream-branch=</option><replaceable>TREEISH</replaceable></arg>
  28. <arg><option>--git-debian-branch=</option><replaceable>BRANCH_NAME</replaceable></arg>
  29. <arg><option>--git-ignore-branch</option></arg>
  30. <arg><option>--git-[no-]submodules</option></arg>
  31. <arg><option>--git-builder=</option><replaceable>BUILD_CMD</replaceable></arg>
  32. <arg><option>--git-cleaner=</option><replaceable>CLEAN_CMD</replaceable></arg>
  33. <arg><option>--git-[no-]pbuilder</option></arg>
  34. <arg><option>--git-[no-]qemubuilder</option></arg>
  35. <arg><option>--git-dist=</option><replaceable>DIST</replaceable></arg>
  36. <arg><option>--git-arch=</option><replaceable>ARCH</replaceable></arg>
  37. <arg><option>--git-[no-]pbuilder-autoconf</option></arg>
  38. <arg><option>--git-pbuilder-options</option>=<replaceable>PBUILDER_OPTIONS</replaceable></arg>
  39. <arg><option>--git-[no-]sign-tags</option></arg>
  40. <arg><option>--git-keyid=</option><replaceable>GPG-KEYID</replaceable></arg>
  41. <arg><option>--git-posttag=</option><replaceable>COMMAND</replaceable></arg>
  42. <arg><option>--git-postbuild=</option><replaceable>COMMAND</replaceable></arg>
  43. <arg><option>--git-postexport=</option><replaceable>COMMAND</replaceable></arg>
  44. <arg><option>--git-prebuild=</option><replaceable>COMMAND</replaceable></arg>
  45. <arg><option>--git-[no-]hooks</option></arg>
  46. <arg><option>--git-debian-tag=</option><replaceable>tag-format</replaceable></arg>
  47. <arg><option>--git-upstream-tag=</option><replaceable>tag-format</replaceable></arg>
  48. <arg><option>--git-debian-tag-msg=</option><replaceable>tag-msg-format</replaceable></arg>
  49. <arg><option>--git-force-create</option></arg>
  50. <arg><option>--git-no-create-orig</option></arg>
  51. <arg><option>--git-upstream-tree=</option><replaceable>[TAG|BRANCH|TREEISH]</replaceable></arg>
  52. <arg><option>--git-tarball-dir=</option><replaceable>DIRECTORY</replaceable></arg>
  53. <arg><option>--git-compression=</option><replaceable>TYPE</replaceable></arg>
  54. <arg><option>--git-compression-level=</option><replaceable>LEVEL</replaceable></arg>
  55. <arg><option>--git-export-dir=</option><replaceable>DIRECTORY</replaceable></arg>
  56. <arg><option>--git-export=</option><replaceable>TREEISH</replaceable></arg>
  57. <arg><option>--git-[no-]pristine-tar</option></arg>
  58. <arg><option>--git-[no-]pristine-tar-commit</option></arg>
  59. <arg><option>--git-[no-]-purge</option></arg>
  60. <arg><option>--git-dont-purge</option></arg>
  61. <arg><option>--git-tag-only</option></arg>
  62. <arg><option>--git-retag</option></arg>
  63. <arg rep="repeat"><option>OPTION_PASSED_TO_BUILD_CMD</option></arg>
  64. </cmdsynopsis>
  65. </refsynopsisdiv>
  66. <refsect1>
  67. <title>DESCRIPTION</title>
  68. <para>
  69. &gbp-buildpackage; is used to build &debian; source and .deb packages from
  70. a &git; repository.
  71. </para>
  72. <para>
  73. &gbp-buildpackage; will, in order:
  74. </para>
  75. <itemizedlist>
  76. <listitem>
  77. <para>
  78. Verify that it is being executed from the proper location.
  79. </para>
  80. </listitem>
  81. <listitem>
  82. <para>
  83. Verify that the repository doesn't contain any uncommitted source
  84. changes.
  85. </para>
  86. </listitem>
  87. <listitem>
  88. <para>
  89. Verify that it is being executed from the correct branch.
  90. </para>
  91. </listitem>
  92. <listitem>
  93. <para>
  94. (Optionally) run a clean command specified
  95. with <option>--git-cleaner</option>.
  96. </para>
  97. </listitem>
  98. <listitem>
  99. <para>
  100. (Optionally) export the source tree to a separate build area.
  101. </para>
  102. </listitem>
  103. <listitem>
  104. <para>
  105. Build an orig tarball if it doesn't exist. Optionally using &pristine-tar;.
  106. </para>
  107. </listitem>
  108. <listitem>
  109. <para>
  110. (Optionally) call a pre build hook.
  111. </para>
  112. </listitem>
  113. <listitem>
  114. <para>
  115. Call <application>debuild</application>(1) or &cowbuilder;
  116. (via <option>--git-pbuilder</option>) or the application
  117. specified via <option>--git-builder</option> passing along
  118. all arguments given to &gbp-buildpackage; on the command
  119. line that don't start with --git-.
  120. </para>
  121. </listitem>
  122. <listitem>
  123. <para>
  124. (Optionally) tag the tree after a successful build.
  125. </para>
  126. </listitem>
  127. <listitem>
  128. <para>
  129. (Optionally) call a post build hook - e.g. to run &lintian;.
  130. </para>
  131. </listitem>
  132. <listitem>
  133. <para>
  134. (Optionally) call a post tag hook - e.g. to push the results to a
  135. remote repository after creating the tag.
  136. </para>
  137. </listitem>
  138. </itemizedlist>
  139. </refsect1>
  140. <refsect1>
  141. <title>OPTIONS</title>
  142. <para>
  143. All options are prefixed with <option>git-</option> to
  144. distinguish options for &gbp-buildpackage; from options passed
  145. to the <replaceable>BUILD_CMD</replaceable>:
  146. </para>
  147. <variablelist>
  148. <varlistentry>
  149. <term><option>--git-[no-]ignore-new</option>
  150. </term>
  151. <listitem>
  152. <para>
  153. Don't abort if there are uncommitted changes in the source tree or
  154. the current branch doesn't match the
  155. <replaceable>DEBIAN-BRANCH</replaceable>.
  156. </para>
  157. </listitem>
  158. </varlistentry>
  159. <varlistentry>
  160. <term><option>--git-tag</option>
  161. </term>
  162. <listitem>
  163. <para>
  164. Add a git tag after a successful build. This is a command line only option
  165. that cannot be specified via &gbp.conf;.
  166. </para>
  167. </listitem>
  168. </varlistentry>
  169. <varlistentry>
  170. <term><option>--git-builder=<replaceable>BUILD_CMD</replaceable></option>
  171. </term>
  172. <listitem>
  173. <para>
  174. Use <replaceable>BUILD_CMD</replaceable> instead of
  175. <command>debuild -i -I</command>.
  176. </para>
  177. </listitem>
  178. </varlistentry>
  179. <varlistentry>
  180. <term><option>--git-cleaner=<replaceable>CLEAN_CMD</replaceable></option>
  181. </term>
  182. <listitem>
  183. <para>
  184. Use <replaceable>CLEAN_CMD</replaceable> instead of
  185. <command>debuild clean</command>.
  186. </para>
  187. </listitem>
  188. </varlistentry>
  189. <varlistentry>
  190. <term><option>--git-pbuilder</option>
  191. </term>
  192. <listitem>
  193. <para>
  194. Build package using <command>git-pbuilder</command>. Note that this
  195. overwrites any <option>--git-builder</option> and
  196. <option>--git-cleaner</option> options.
  197. </para>
  198. </listitem>
  199. </varlistentry>
  200. <varlistentry>
  201. <term><option>--git-qemubuilder</option>
  202. </term>
  203. <listitem>
  204. <para>
  205. Build package using <command>git-pbuilder</command> with
  206. <command>qemubuilder</command>. Note that this overwrites any
  207. <option>--git-builder</option> and <option>--git-cleaner</option>
  208. options.
  209. </para>
  210. </listitem>
  211. </varlistentry>
  212. <varlistentry>
  213. <term><option>--git-dist=<replaceable>DIST</replaceable></option>
  214. </term>
  215. <listitem>
  216. <para>
  217. Build for distribution <replaceable>DIST</replaceable> when using
  218. <command>--git-pbuilder</command>. If unset build for the unstable
  219. distribution. The special value <option>DEP14</option> will set
  220. the distribution to build for from the branch name. I.e. if you're
  221. starting the build from a branch named
  222. <replaceable>debian/wheezy-backports</replaceable> the
  223. distribution is set
  224. to <replaceable>wheezy-backports</replaceable>. If the branch is
  225. named <replaceable>downstream/sid</replaceable> the distribution
  226. would be set to <replaceable>downstream_sid</replaceable>.
  227. </para>
  228. </listitem>
  229. </varlistentry>
  230. <varlistentry>
  231. <term><option>--git-arch=<replaceable>ARCH</replaceable></option>
  232. </term>
  233. <listitem>
  234. <para>
  235. Build for architecture <replaceable>ARCH</replaceable> when using
  236. <command>--git-pbuilder</command>. If unset no architecture is passed
  237. to <command>git-pbuilder</command>.
  238. </para>
  239. </listitem>
  240. </varlistentry>
  241. <varlistentry>
  242. <term><option>--git-pbuilder-autoconf</option>
  243. </term>
  244. <listitem>
  245. <para>
  246. Whether to try to autoconfigure <command>git-pbuilder</command> or to
  247. rely on the settings in .pbuilderrc. See the
  248. <command>git-pbuilder</command> manpage for details.
  249. </para>
  250. </listitem>
  251. </varlistentry>
  252. <varlistentry>
  253. <term><option>--git-pbuilder-options</option>
  254. </term>
  255. <listitem>
  256. <para>
  257. Options to pass to pbuilder
  258. </para>
  259. </listitem>
  260. </varlistentry>
  261. <varlistentry>
  262. <term><option>--git-verbose</option>
  263. </term>
  264. <listitem>
  265. <para>
  266. verbose execution
  267. </para>
  268. </listitem>
  269. </varlistentry>
  270. <varlistentry>
  271. <term><option>--git-color=</option><replaceable>[auto|on|off]</replaceable>
  272. </term>
  273. <listitem>
  274. <para>
  275. Whether to use colored output.
  276. </para>
  277. </listitem>
  278. </varlistentry>
  279. <varlistentry>
  280. <term><option>--git-notify=</option><replaceable>[auto|on|off]</replaceable>
  281. </term>
  282. <listitem>
  283. <para>
  284. Whether to send a desktop notification after the build.
  285. </para>
  286. </listitem>
  287. </varlistentry>
  288. <varlistentry>
  289. <term><option>--git-color-scheme</option>=<replaceable>COLOR_SCHEME</replaceable>
  290. </term>
  291. <listitem>
  292. <para>
  293. Colors to use in output (when color is enabled). The format for
  294. COLOR_SCHEME is
  295. '&lt;debug&gt;:&lt;info&gt;:&lt;warning&gt;:&lt;error&gt;'.
  296. Numerical values and color names are accepted, empty fields imply
  297. the default color. For example --git-color-scheme='cyan:34::' would
  298. show debug messages in cyan, info messages in blue and other messages
  299. in default (i.e. warning and error messages in red).
  300. </para>
  301. </listitem>
  302. </varlistentry>
  303. <varlistentry>
  304. <term><option>--git-upstream-branch</option>=<replaceable>BRANCH_NAME</replaceable>
  305. </term>
  306. <listitem>
  307. <para>
  308. Branch to build the orig tarball from if
  309. <option>--git-upstream-tree</option> is set to
  310. <replaceable>BRANCH</replaceable>. Default is
  311. <replaceable>upstream</replaceable>.
  312. </para>
  313. </listitem>
  314. </varlistentry>
  315. <varlistentry>
  316. <term><option>--git-debian-branch</option>=<replaceable>BRANCH_NAME</replaceable>
  317. </term>
  318. <listitem>
  319. <para>
  320. If you're not on this branch when invoking &gbp-buildpackage; it will
  321. fail. Default is <replaceable>master</replaceable>. This is done to
  322. make sure you don't accidentally release from a topic branch. Not
  323. being on this branch will be ignored when using
  324. <option>--git-ignore-new</option>.
  325. </para>
  326. </listitem>
  327. </varlistentry>
  328. <varlistentry>
  329. <term><option>--git-ignore-branch</option>
  330. </term>
  331. <listitem>
  332. <para>
  333. Don't check if the current branch matches
  334. <replaceable>DEBIAN-BRANCH</replaceable>.
  335. </para>
  336. </listitem>
  337. </varlistentry>
  338. <varlistentry>
  339. <term><option>--git-[no-]sign-tags</option>
  340. </term>
  341. <listitem>
  342. <para>
  343. GPG sign all created tags.
  344. </para>
  345. </listitem>
  346. </varlistentry>
  347. <varlistentry>
  348. <term><option>--git-[no-]submodules</option>
  349. </term>
  350. <listitem>
  351. <para>
  352. Include git submodules in the orig tarball.
  353. </para>
  354. </listitem>
  355. </varlistentry>
  356. <varlistentry>
  357. <term><option>--git-keyid=</option><replaceable>GPG-KEYID</replaceable>
  358. </term>
  359. <listitem>
  360. <para>
  361. Use this keyid for gpg signing tags.
  362. </para>
  363. </listitem>
  364. </varlistentry>
  365. <varlistentry>
  366. <term><option>--git-posttag=</option><replaceable>COMMAND</replaceable>
  367. </term>
  368. <listitem>
  369. <para>
  370. Execute <replaceable>COMMAND</replaceable> after tagging a new
  371. version.
  372. </para>
  373. <para>
  374. Exported environment variables are: <envar>GBP_TAG</envar> (the name
  375. of the generated tag), <envar>GBP_BRANCH</envar> (the branch the
  376. package was build from) and <envar>GBP_SHA1</envar> (the sha1 of the
  377. commit the tag was created at).
  378. </para>
  379. </listitem>
  380. </varlistentry>
  381. <varlistentry>
  382. <term><option>--git-postbuild=</option><replaceable>COMMAND</replaceable>
  383. </term>
  384. <listitem>
  385. <para>
  386. Execute <replaceable>COMMAND</replaceable> after successful
  387. build.
  388. </para>
  389. <para>
  390. Exported environment variables are: <envar>GBP_CHANGES_FILE</envar>
  391. (the name of the generated changes file),
  392. <envar>GBP_BUILD_DIR</envar> (the build dir).
  393. </para>
  394. </listitem>
  395. </varlistentry>
  396. <varlistentry>
  397. <term><option>--git-postexport=</option><replaceable>COMMAND</replaceable>
  398. </term>
  399. <listitem>
  400. <para>
  401. Execute <replaceable>COMMAND</replaceable> after exporting the source
  402. tree - valid only if --git-export-dir has been specified.
  403. </para>
  404. <para>
  405. Exported environment variables are: <envar>GBP_GIT_DIR</envar> (the
  406. repository the package is being built from),
  407. <envar>GBP_TMP_DIR</envar> (the temporary directory where the sources
  408. have been initially exported).
  409. </para>
  410. </listitem>
  411. </varlistentry>
  412. <varlistentry>
  413. <term><option>--git-prebuild=</option><replaceable>COMMAND</replaceable>
  414. </term>
  415. <listitem>
  416. <para>
  417. Execute <replaceable>COMMAND</replaceable> from the build directory
  418. before calling <application>debuild</application> or the application
  419. specified via <option>--git-builder</option>.
  420. </para>
  421. <para>
  422. Exported environment variables are: <envar>GBP_GIT_DIR</envar> (the
  423. repository the package is being built from),
  424. <envar>GBP_BUILD_DIR</envar> (the build dir).
  425. </para>
  426. </listitem>
  427. </varlistentry>
  428. <varlistentry>
  429. <term><option>--git-[no-]hooks</option>
  430. </term>
  431. <listitem>
  432. <para>
  433. Enable running all (cleaner, postexport, prebuild, postbuild, and
  434. posttag) hooks. Note: the <option>--git-builder</option> command is
  435. not affected by this option.
  436. </para>
  437. </listitem>
  438. </varlistentry>
  439. <varlistentry>
  440. <term><option>--git-debian-tag=</option><replaceable>TAG-FORMAT</replaceable>
  441. </term>
  442. <listitem>
  443. <para>
  444. Use this tag format when tagging &debian; versions, default is
  445. <replaceable>debian/%(version)s</replaceable>.
  446. </para>
  447. </listitem>
  448. </varlistentry>
  449. <varlistentry>
  450. <term><option>--git-upstream-tag=</option><replaceable>TAG-FORMAT</replaceable>
  451. </term>
  452. <listitem>
  453. <para>
  454. Use this tag format when looking for tags of upstream versions,
  455. default is <replaceable>upstream/%(version)s</replaceable>.
  456. </para>
  457. </listitem>
  458. </varlistentry>
  459. <varlistentry>
  460. <term><option>--git-debian-tag-msg=</option><replaceable>tag-msg-format</replaceable>
  461. </term>
  462. <listitem>
  463. <para>Use this tag message format when signing &debian; versions,
  464. default is <replaceable>%(pkg)s Debian release %(version)s</replaceable></para>
  465. </listitem>
  466. </varlistentry>
  467. <varlistentry>
  468. <term><option>--git-force-create</option>
  469. </term>
  470. <listitem>
  471. <para>
  472. Force creation of an orig tarball (overwriting a pre-existing one if
  473. present).
  474. </para>
  475. </listitem>
  476. </varlistentry>
  477. <varlistentry>
  478. <term><option>--git-no-create-orig</option>
  479. </term>
  480. <listitem>
  481. <para>
  482. Don't try to create any orig tarball.
  483. </para>
  484. </listitem>
  485. </varlistentry>
  486. <varlistentry>
  487. <term><option>--git-overlay</option>
  488. </term>
  489. <listitem>
  490. <para>
  491. Extract orig tarball from <option>tarball-dir</option> when
  492. using the <option>export-dir</option> option (in analogy to
  493. mergeWithUpstream in svn-bp). Also remove debian/ if
  494. contained in the upstream tarball in case of 2.0 and 3.0
  495. source formats.
  496. </para>
  497. </listitem>
  498. </varlistentry>
  499. <varlistentry>
  500. <term><option>--git-export-dir=</option><replaceable>DIRECTORY</replaceable>
  501. </term>
  502. <listitem>
  503. <para>
  504. Export the current branch head (or the treeish object given via
  505. <option>--git-export</option> to <replaceable>DIRECTORY</replaceable>
  506. before building.
  507. </para>
  508. </listitem>
  509. </varlistentry>
  510. <varlistentry>
  511. <term><option>--git-export=</option><replaceable>TREEISH</replaceable>
  512. </term>
  513. <listitem>
  514. <para>
  515. Instead of exporting the current branch head, export the treeish
  516. object <replaceable>TREEISH</replaceable>. The special name
  517. <replaceable>INDEX</replaceable> exports the current index whereas
  518. the special name <replaceable>WC</replaceable> exports the current
  519. working copy as is.
  520. </para>
  521. </listitem>
  522. </varlistentry>
  523. <varlistentry>
  524. <term><option>--git-upstream-tree=</option><replaceable>[TAG|BRANCH|TREEISH]</replaceable>
  525. </term>
  526. <listitem>
  527. <para>
  528. How to find the upstream sources used to generate the tarball.
  529. <replaceable>TAG</replaceable> (the default) looks at a tag corresponding to the
  530. version in the changelog. <replaceable>BRANCH</replaceable> looks at
  531. the upstream branch given via the
  532. <option>--git-upstream-branch</option> option. Other values are
  533. interpreted as treeishs.
  534. </para>
  535. <para>
  536. This doesn't have any effect if <option>--git-pristine-tar</option>
  537. is being used.
  538. </para>
  539. </listitem>
  540. </varlistentry>
  541. <varlistentry>
  542. <term><option>--git-tarball-dir=</option><replaceable>DIRECTORY</replaceable>
  543. </term>
  544. <listitem>
  545. <para>
  546. Search for original tarballs in <replaceable>DIRECTORY</replaceable>
  547. instead of generating them.
  548. </para>
  549. </listitem>
  550. </varlistentry>
  551. <varlistentry>
  552. <term><option>--git-compression=</option><replaceable>TYPE</replaceable>
  553. </term>
  554. <listitem>
  555. <para>
  556. Specifies the upstream tarball compression type. This will be used to
  557. locate and build the upstream tarball if necessary. The default is
  558. <replaceable>auto</replaceable> which derives the compression type
  559. from the pristine-tar branch if available and falls back to gzip
  560. otherwise. Other options are <replaceable>gzip</replaceable>,
  561. <replaceable>bzip2</replaceable>, <replaceable>lzma</replaceable> and
  562. <replaceable>xz</replaceable>.
  563. </para>
  564. </listitem>
  565. </varlistentry>
  566. <varlistentry>
  567. <term><option>--git-compression-level=</option><replaceable>LEVEL</replaceable>
  568. </term>
  569. <listitem>
  570. <para>
  571. Specifies the upstream tarball compression level if an upstream
  572. tarball needs to be built.
  573. </para>
  574. </listitem>
  575. </varlistentry>
  576. <varlistentry>
  577. <term><option>--git[-no]-purge</option>
  578. </term>
  579. <listitem>
  580. <para>
  581. Purge (remove) temporary build directory after build.
  582. </para>
  583. </listitem>
  584. </varlistentry>
  585. <varlistentry>
  586. <term><option>--git-dont-purge</option>
  587. </term>
  588. <listitem>
  589. <para>
  590. Deprecated, use --git-no-purge instead. This is a command line only option
  591. that cannot be specified via &gbp.conf;.
  592. </para>
  593. </listitem>
  594. </varlistentry>
  595. <varlistentry>
  596. <term><option>--git-tag-only</option>
  597. </term>
  598. <listitem>
  599. <para>
  600. Don't build, only tag and run post-tag hooks. This is a
  601. command line only option that cannot be specified via
  602. &gbp.conf;.
  603. </para>
  604. </listitem>
  605. </varlistentry>
  606. <varlistentry>
  607. <term><option>--git-retag</option>
  608. </term>
  609. <listitem>
  610. <para>
  611. Don't fail tag operations if a tag with the same version
  612. already exists. This is a command line only option that
  613. cannot be specified via &gbp.conf;.
  614. </para>
  615. </listitem>
  616. </varlistentry>
  617. <varlistentry>
  618. <term><option>--git-pristine-tar</option>
  619. </term>
  620. <listitem>
  621. <para>
  622. Use pristine-tar when generating the upstream tarball if it doesn't
  623. exist.
  624. </para>
  625. </listitem>
  626. </varlistentry>
  627. <varlistentry>
  628. <term><option>--git-pristine-tar-commit</option>
  629. </term>
  630. <listitem>
  631. <para>
  632. Commit the pristine-tar delta to the pristine-tar branch if a new
  633. tarball was generated and the pristine-tar data isn't already there.
  634. </para>
  635. </listitem>
  636. </varlistentry>
  637. </variablelist>
  638. </refsect1>
  639. <refsect1>
  640. <title>EXAMPLES</title>
  641. <para>
  642. Build a &debian; package using &git-pbuilder; which in turn invokes
  643. &cowbuildercmd;. Instruct cowbuilder to build within a Wheezy chroot for
  644. i386.
  645. </para>
  646. <screen>
  647. &gbp-buildpackage; --git-pbuilder --git-arch=i386 --git-dist=wheezy
  648. </screen>
  649. <para>
  650. Note that the above needs a &cowbuildercmd; chroot already. This can be
  651. created using:
  652. </para>
  653. <screen>
  654. DIST=wheezy ARCH=i386 &git-pbuilder; create
  655. </screen>
  656. </refsect1>
  657. <refsect1>
  658. &man.gbp.config-files;
  659. <para>
  660. All options in the config files must be specified without the 'git-'
  661. prefix. So
  662. e.g. <option>--git-debian-branch</option>=<replaceable>debian/sid</replaceable>
  663. becomes in &gbp.conf;:
  664. </para>
  665. <programlisting>
  666. [buildpackage]
  667. debian-dir = debian/sid
  668. </programlisting>
  669. </refsect1>
  670. <refsect1>
  671. <title>SEE ALSO</title>
  672. <para>
  673. <xref linkend="man.gbp.import.dsc"/>,
  674. <xref linkend="man.gbp.import.dscs"/>,
  675. <xref linkend="man.gbp.import.orig"/>,
  676. <xref linkend="man.gbp.dch"/>,
  677. <citerefentry>
  678. <refentrytitle>git-pbuilder</refentrytitle>
  679. <manvolnum>1</manvolnum>
  680. </citerefentry>,
  681. <citerefentry>
  682. <refentrytitle>cowbuilder</refentrytitle>
  683. <manvolnum>8</manvolnum>
  684. </citerefentry>,
  685. <xref linkend="man.gbp.conf"/>,
  686. &man.seealso.common;
  687. </para>
  688. </refsect1>
  689. <refsect1>
  690. <title>AUTHOR</title>
  691. <para>
  692. &dhusername; &dhemail;
  693. </para>
  694. </refsect1>
  695. </refentry>