dpkg-source.1 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. .\" Authors: Ian Jackson, Raphaël Hertzog
  2. .TH dpkg\-source 1 "2009-11-11" "Debian Project" "dpkg utilities"
  3. .SH NAME
  4. dpkg\-source \- Debian source package (.dsc) manipulation tool
  5. .
  6. .SH SYNOPSIS
  7. .B dpkg\-source
  8. .RI [ options ]
  9. .I command
  10. .
  11. .SH DESCRIPTION
  12. .B dpkg\-source
  13. packs and unpacks Debian source archives.
  14. None of these commands allow multiple options to be combined into one,
  15. and they do not allow the value for an option to be specified in a
  16. separate argument.
  17. .
  18. .SH COMMANDS
  19. .TP
  20. .BI "\-x " filename ".dsc " \fR[\fPoutput-directory\fR]\fP
  21. Extract a source package. One non-option argument must be supplied,
  22. the name of the Debian source control file
  23. .RB ( .dsc ).
  24. An optional second non-option argument may be supplied to specify the
  25. directory to extract the source package to, this must not exist. If
  26. no output directory is specified, the source package is extracted into
  27. a directory named \fIsource\fR-\fIversion\fR under the current working
  28. directory.
  29. .B dpkg\-source
  30. will read the names of the other file(s) making up the source package
  31. from the control file; they are assumed to be in the same directory as
  32. the
  33. .BR .dsc .
  34. The files in the extracted package will have their permissions and
  35. ownerships set to those which would have been expected if the files
  36. and directories had simply been created - directories and executable
  37. files will be 0777 and plain files will be 0666, both modified by the
  38. extractors' umask; if the parent directory is setgid then the
  39. extracted directories will be too, and all the files and directories
  40. will inherit its group ownership.
  41. If the source package uses a non-standard format (currently this means all
  42. formats except "1.0"), its name will be stored in
  43. \fBdebian/source/format\fP so that the following builds of the source
  44. package use the same format by default.
  45. .TP
  46. .RI "\fB\-b\fP " directory " [" format-specific-parameters ]
  47. Build a source package. The first non-option argument is taken as the
  48. name of the directory containing the debianized source tree (i.e. with a
  49. debian sub-directory and maybe changes to the original files).
  50. Depending on the source package format used to build the package,
  51. additional parameters might be accepted.
  52. \fBdpkg\-source\fP will build the source package with the first format
  53. that works from this ordered list:
  54. the format(s) indicated with the \fI\-\-format\fP command-line option(s),
  55. the format indicated in \fBdebian/source/format\fP,
  56. "1.0", "3.0 (quilt)", "3.0 (native)". See section
  57. \fBSOURCE PACKAGE FORMATS\fP for an extensive description of the various
  58. source package formats.
  59. .TP
  60. .RI "\fB\-\-print\-format\fP " directory
  61. Print the source format that would be used to build the source package if
  62. \fBdpkg\-source \-b \fIdirectory\fR was called (in the same conditions and
  63. with the same parameters). In particular it's important that the upstream
  64. tarball (if any) can be found in the current directory.
  65. .TP
  66. .BR \-h ", " \-\-help
  67. Show the usage message and exit.
  68. .TP
  69. .BR \-\-version
  70. Show the version and exit.
  71. .
  72. .SH GENERIC BUILD OPTIONS
  73. .TP
  74. .BI \-c controlfile
  75. Specifies the main source control file to read information from. The
  76. default is
  77. .BR debian/control .
  78. If given with relative pathname this is interpreted starting at
  79. the source tree's top level directory.
  80. .TP
  81. .BI \-l changelogfile
  82. Specifies the change log file to read information from. The
  83. default is
  84. .BR debian/changelog .
  85. If given with relative pathname this is interpreted starting at
  86. the source tree's top level directory.
  87. .TP
  88. .BI \-F changelogformat
  89. Specifies the format of the changelog. By default the format is read
  90. from a special line near the bottom of the changelog or failing that
  91. defaults to the debian standard format.
  92. .TP
  93. .BI \-\-format= value
  94. Try first the given format for building the source package. If used
  95. multiple times, they are tried in order. It does
  96. override any format given in \fBdebian/source/format\fP.
  97. .TP
  98. .BI \-V name = value
  99. Set an output substitution variable.
  100. See \fBdeb\-substvars\fP(5) for a discussion of output substitution.
  101. .TP
  102. .BI \-T substvarsfile
  103. Read substitution variables in
  104. .IR substvarsfile ;
  105. the default is to not read any file. This option can be used multiple
  106. times to read substitution variables from multiple files.
  107. .TP
  108. .BI \-D field = value
  109. Override or add an output control file field.
  110. .TP
  111. .BI \-U field
  112. Remove an output control file field.
  113. .TP
  114. .BR \-Z "\fIcompression\fP, " \-\-compression =\fIcompression\fP
  115. Specify the compression to use for created files (tarballs and diffs).
  116. Note that this option will not cause existing tarballs to be recompressed,
  117. it only affects new files. Supported values are:
  118. .IR gzip ", " bzip2 ", " lzma " and " xz .
  119. \fIgzip\fP is the default. \fIxz\fP is only supported since
  120. dpkg-dev 1.15.5.
  121. .TP
  122. .BR \-z "\fIlevel\fP, " \-\-compression\-level =\fIlevel\fP
  123. Compression level to use. As with \fB\-Z\fP it only affects newly created
  124. files. Supported values are:
  125. .IR 1 " to " 9 ", " best ", and " fast .
  126. \fI9\fP is the default.
  127. .TP
  128. .BR \-i "[\fIregexp\fP], " \-\-diff\-ignore [=\fIregexp\fP]
  129. You may specify a perl regular expression to match files you want
  130. filtered out of the list of files for the diff. (This list is
  131. generated by a find command.) (If the source package is being built as a
  132. version 3 source package using a VCS, this can be used to ignore
  133. uncommited changes on specific files. Using \-i.* will ignore all of them.)
  134. \fB\-i\fP by itself enables the option, with a default regexp that will
  135. filter out control files and directories of the most common revision
  136. control systems, backup and swap files and Libtool build output
  137. directories. There can only be one active regexp, of multiple
  138. \fB\-i\fP options only the last one will take effect.
  139. This is very helpful in cutting out extraneous files that get included
  140. in the diff, e.g. if you maintain your source in a revision control
  141. system and want to use a checkout to build a source package without
  142. including the additional files and directories that it will usually
  143. contain (e.g. CVS/, .cvsignore, .svn/). The default regexp is already
  144. very exhaustive, but if you need to replace it, please note that by
  145. default it can match any part of a path, so if you want to match the
  146. begin of a filename or only full filenames, you will need to provide
  147. the necessary anchors (e.g. '(^|/)', '($|/)') yourself.
  148. .TP
  149. .BR \-\-extend\-diff\-ignore =\fIregexp\fP
  150. The perl regular expression specified will extend the default regular
  151. expression associated to \fB\-i\fP by concatenating "\fB|\fP\fIregexp\fP"
  152. to the default regexp. This option is convenient to use in
  153. \fBdebian/source/options\fP to exclude some auto-generated files
  154. from the automatic patch generation.
  155. .TP
  156. .BR \-I "[\fIfile-pattern\fP], " \-\-tar\-ignore [=\fIfile-pattern\fP]
  157. If this option is specified, the pattern will be passed to
  158. .BR tar (1)'s
  159. \-\-exclude
  160. option when it is called to generate a .orig.tar or .tar file. For
  161. example, \-ICVS will make tar skip over CVS directories when generating
  162. a .tar.gz file. The option may be repeated multiple times to list multiple
  163. patterns to exclude.
  164. \fB\-I\fP by itself adds default \-\-exclude options that will
  165. filter out control files and directories of the most common revision
  166. control systems, backup and swap files and Libtool build output
  167. directories.
  168. .PP
  169. .B Note:
  170. While they have similar purposes, \fB-i\fP and \fB-I\fP have very
  171. different syntax and semantics. \fB-i\fP can only be specified once and
  172. takes a perl compatible regular expression which is matched against
  173. the full relative path of each file. \fB-I\fP can specified
  174. multiple times and takes a filename pattern with shell wildcards.
  175. The pattern is applied to the full relative path but also
  176. to each part of the path individually. The exact semantic of tar's
  177. \-\-exclude option is somewhat complicated, see
  178. http://www.gnu.org/software/tar/manual/tar.html#wildcards for a full
  179. documentation.
  180. The default regexp and patterns for both options can be seen
  181. in the output of the \fB\-\-help\fP command.
  182. .SH GENERIC EXTRACT OPTIONS
  183. .TP
  184. .BI \-\-no\-copy
  185. Do not copy original tarballs near the extracted source package.
  186. .TP
  187. .BI \-\-no\-check
  188. Do not check signatures and checksums before unpacking.
  189. .TP
  190. .BI \-\-require\-valid\-signature
  191. Refuse to unpack the source package if it doesn't contain an OpenPGP
  192. signature that can be verified either with the user's
  193. \fItrustedkeys.gpg\fP keyring, one of the vendor-specific keyrings, or one
  194. of the official Debian keyrings
  195. (\fI/usr/share/keyrings/debian-keyring.gpg\fP
  196. and \fI/usr/share/keyrings/debian-maintainers.gpg\fP).
  197. .SH SOURCE PACKAGE FORMATS
  198. If you don't know what source format you should use, you should probably
  199. pick either "3.0 (quilt)" or "3.0 (native)". They will become the default
  200. formats in the near future. See http://wiki.debian.org/Projects/DebSrc3.0
  201. for information on the deployment of those formats within Debian.
  202. .SS Format: 1.0
  203. A source package in this format consists either of a \fB.orig.tar.gz\fP
  204. associated to a \fB.diff.gz\fP or a single \fB.tar.gz\fP (in that case
  205. the package is said to be \fInative\fP).
  206. .B Extracting
  207. Extracting a native package is a simple extraction of the single
  208. tarball in the target directory. Extracting a non-native package
  209. is done by first unpacking the \fB.orig.tar.gz\fP and then applying
  210. the patch contained in the \fB.diff.gz\fP file. The timestamp of
  211. all patched files is reset to the extraction time of the source
  212. package (this avoids timestamp skews leading to problems when
  213. autogenerated files are patched). The diff can create new files (the whole
  214. debian directory is created that way) but can't remove files (empty files
  215. will be left over).
  216. .B Building
  217. Building a native package is just creating a single tarball with
  218. the source directory. Building a non-native package involves
  219. extracting the original tarball in a separate ".orig" directory and
  220. regenerating the \fB.diff.gz\fP by comparing the source package
  221. \fIdirectory\fP with the .orig directory.
  222. .TP
  223. .B Build options (with \-b):
  224. .PP
  225. If a second non-option argument is supplied it should be the name of the
  226. original source directory or tarfile or the empty string if the package is
  227. a Debian-specific one and so has no Debianisation diffs. If no second
  228. argument is supplied then
  229. .B dpkg\-source
  230. will look for the original source tarfile
  231. .IB package _ upstream-version .orig.tar.gz
  232. or the original source directory
  233. .IB directory .orig
  234. depending on the \fB\-sX\fP arguments.
  235. .BR \-sa ", " \-sp ", " \-sk ", " \-su " and " \-sr
  236. will not overwrite existing tarfiles or directories. If this is
  237. desired then
  238. .BR \-sA ", " \-sP ", " \-sK ", " \-sU " and " \-sR
  239. should be used instead.
  240. .TP
  241. .BR \-sk
  242. Specifies to expect the original source as a tarfile, by default
  243. .IB package _ upstream-version .orig.tar. extension \fR.
  244. It will leave this original source in place as a tarfile, or copy it
  245. to the current directory if it isn't already there. The
  246. tarball will be unpacked into
  247. .IB directory .orig
  248. for the generation of the diff.
  249. .TP
  250. .B \-sp
  251. Like
  252. .B \-sk
  253. but will remove the directory again afterwards.
  254. .TP
  255. .B \-su
  256. Specifies that the original source is expected as a directory, by
  257. default
  258. .IB package - upstream-version .orig
  259. and
  260. .B dpkg\-source
  261. will create a new original source archive from it.
  262. .TP
  263. .B \-sr
  264. Like
  265. .B \-su
  266. but will remove that directory after it has been used.
  267. .TP
  268. .B \-ss
  269. Specifies that the original source is available both as a directory
  270. and as a tarfile. dpkg-source will use the directory to create the diff, but
  271. the tarfile to create the
  272. .BR .dsc .
  273. This option must be used with care - if the directory and tarfile do
  274. not match a bad source archive will be generated.
  275. .TP
  276. .B \-sn
  277. Specifies to not look for any original source, and to not generate a diff.
  278. The second argument, if supplied, must be the empty string. This is
  279. used for Debian-specific packages which do not have a separate
  280. upstream source and therefore have no debianisation diffs.
  281. .TP
  282. .BR \-sa " or " \-sA
  283. Specifies to look for the original source archive as a tarfile or as a
  284. directory - the second argument, if any, may be either, or the empty
  285. string (this is equivalent to using
  286. .BR \-sn ).
  287. If a tarfile is found it will unpack it to create the diff and remove
  288. it afterwards (this is equivalent to
  289. .BR \-sp );
  290. if a directory is found it will pack it to create the original source
  291. and remove it afterwards (this is equivalent to
  292. .BR \-sr );
  293. if neither is found it will assume that the package has no
  294. debianisation diffs, only a straightforward source archive (this is
  295. equivalent to
  296. .BR \-sn ).
  297. If both are found then \fBdpkg\-source\fP will ignore the directory,
  298. overwriting it, if
  299. .B \-sA
  300. was specified (this is equivalent to
  301. .BR \-sP )
  302. or raise an error if
  303. .B \-sa
  304. was specified.
  305. .B \-sA
  306. is the default.
  307. .TP
  308. .B Extract options (with \-x):
  309. .PP
  310. In all cases any existing original source tree will be removed.
  311. .TP
  312. .B \-sp
  313. Used when extracting then the original source (if any) will be left
  314. as a tarfile. If it is not already located in the current directory
  315. or if an existing but different file is there it will be copied there.
  316. (\fBThis is the default\fP).
  317. .TP
  318. .B \-su
  319. Unpacks the original source tree.
  320. .TP
  321. .B \-sn
  322. Ensures that the original source is neither copied to the current
  323. directory nor unpacked. Any original source tree that was in the
  324. current directory is still removed.
  325. .PP
  326. All the
  327. .BI \-s X
  328. options are mutually exclusive. If you specify more than one only the
  329. last one will be used.
  330. .TP
  331. .B \-\-skip\-debianization
  332. Skips application of the debian diff on top of the upstream sources.
  333. .
  334. .SS Format: 2.0
  335. Also known as wig&pen. This format is not recommended for wide-spread
  336. usage, the format "3.0 (quilt)" replaces it. Wig&pen was the first
  337. specification of a new-generation source package format.
  338. The behaviour of this format is the same as the "3.0 (quilt)" format
  339. except that it doesn't use an explicit list of patches. All files in
  340. \fBdebian/patches/\fP matching the perl regular expression \fB[\\w\-]+\fP
  341. must be valid patches: they are applied at extraction time.
  342. When building a new source package, any change to the upstream source
  343. is stored in a patch named \fBzz_debian-diff-auto\fP.
  344. .
  345. .SS Format: 3.0 (native)
  346. This format is an extension of the native package format as defined
  347. in the 1.0 format. It supports all compression methods and
  348. will ignore by default any VCS specific files and directories
  349. as well as many temporary files (see default value associated to
  350. \fB-I\fP option in the \fB\-\-help\fP output).
  351. .
  352. .SS Format: 3.0 (quilt)
  353. A source package in this format contains at least
  354. an original tarball (\fB.orig.tar.\fP\fIext\fP where \fIext\fP can be
  355. \fBgz\fP, \fBbz2\fP, \fBlzma\fP and \fBxz\fP) and a debian tarball
  356. (\fB.debian.tar.\fP\fIext\fP). It can also contain additional original
  357. tarballs (\fB.orig-\fP\fIcomponent\fP\fB.tar.\fP\fIext\fP).
  358. \fIcomponent\fP can only contain alphanumeric characters and dashes ("-").
  359. .PP
  360. .B Extracting
  361. .PP
  362. The main original tarball is extracted first, then all additional original
  363. tarballs are extracted in subdirectories named after the \fIcomponent\fP
  364. part of their filename (any pre-existing directory is replaced). The
  365. debian tarball is extracted on top of the source directory after prior
  366. removal of any pre-existing \fBdebian\fP directory. Note that the
  367. debian tarball must contain a \fBdebian\fP sub-directory but it
  368. can also contain binary files outside of that directory (see
  369. \fB\-\-include\-binaries\fP option).
  370. .PP
  371. All patches listed in \fBdebian/patches/debian.series\fP or
  372. \fBdebian/patches/series\fP are then applied.
  373. If the former file is used and the latter one doesn't exist (or is a
  374. symlink), then the latter is replaced with a symlink to the former. This
  375. is meant to simplify usage of quilt to manage the set of patches. Note
  376. however that while \fBdpkg\-source\fP parses correctly series files with
  377. explicit options used for patch application (stored on each line
  378. after the patch filename and one or more spaces), it does ignore those
  379. options and always expect patches that can be applied with the \fB-p1\fP
  380. option of \fBpatch\fP. It will thus emit a warning when it encounters
  381. such options, and the build is likely to fail.
  382. .PP
  383. Similarly to quilt's default behaviour, the patches can remove files too.
  384. .PP
  385. The file \fB.pc/applied-patches\fP is created if some
  386. patches have been applied during the extraction.
  387. .PP
  388. .B Building
  389. .PP
  390. All original tarballs found in the current directory are extracted in a
  391. temporary directory by following the same logic as for the unpack, the
  392. debian directory is copied over in the temporary directory, and all
  393. patches except the automatic patch (\fBdebian-changes-\fP\fIversion\fP
  394. or \fBdebian-changes\fP, depending on \fB\-\-single\-debian\-patch\fP) are
  395. applied. The temporary directory is compared to the source package
  396. directory and the diff (if non-empty) is stored in the automatic patch.
  397. If the automatic patch is created/deleted, it's added/removed from the
  398. series file and from the quilt metadata.
  399. Any change
  400. on a binary file is not representable in a diff and will thus lead to a
  401. failure unless the maintainer deliberately decided to include that
  402. modified binary file in the debian tarball (by listing it in
  403. \fBdebian/source/include-binaries\fP). The build will also fail if it
  404. finds binary files in the debian sub-directory unless they have been
  405. whitelisted through \fBdebian/source/include-binaries\fP.
  406. The updated debian directory and the list of modified binaries is then
  407. used to generate the debian tarball.
  408. The automatically generated diff doesn't include changes on VCS specific
  409. files as well as many temporary files (see default value associated to
  410. \fB-i\fP option in the \fB\-\-help\fP output). In particular, the
  411. \fB.pc\fP directory used by quilt is ignored during generation of the
  412. automatic patch.
  413. Note: \fBdpkg\-source\fP expects the source tree to have all patches
  414. listed in the series file applied when you generate the source package.
  415. This is not the case when the source tree has been obtained by unpacking a
  416. source package using the Format: 1.0 for instance. To mitigate the
  417. problem, \fBdpkg\-source\fP will apply the patches by itself if it
  418. believes that they have not yet been applied. To detect this situation, it
  419. uses the following heuristic: it finds the list of supposedly unapplied
  420. patches (they are listed in the \fBseries\fP file but not in
  421. \fB.pc/applied-patches\fP), and if the first patch in that set can be
  422. applied without errors, it will apply them all.
  423. The option \fB\-\-no\-preparation\fP can be used to disable this
  424. behaviour.
  425. .PP
  426. .B Build options
  427. .TP
  428. .BI \-\-allow\-version\-of\-quilt\-db= version
  429. Allow \fBdpkg\-source\fP to build the source package if the version of
  430. the quilt metadata is the one specified, even if \fBdpkg\-source\fP
  431. doesn't know about it. Effectively this says that the given version of the
  432. quilt metadata is compatible with the version 2 that \fBdpkg\-source\fP
  433. currently supports. The version of the quilt metadata is stored in
  434. \fB.pc/.version\fP.
  435. .TP
  436. .B \-\-include\-removal
  437. Do not ignore removed files and include them in the automatically
  438. generated patch.
  439. .TP
  440. .B \-\-include\-timestamp
  441. Include timestamp in the automatically generated patch.
  442. .TP
  443. .B \-\-include\-binaries
  444. Add all modified binaries in the debian tarball. Also add them to
  445. \fBdebian/source/include-binaries\fP: they will be added by default
  446. in subsequent builds and this option is thus no more needed.
  447. .TP
  448. .B \-\-no\-preparation
  449. Do not try to prepare the build tree by applying patches which are
  450. apparently unapplied.
  451. .TP
  452. .B \-\-single\-debian\-patch
  453. Use \fBdebian/patches/debian-changes\fP instead of
  454. \fBdebian/patches/debian-changes-\fP\fIversion\fP for the name of the
  455. automatic patch generated during build. This option is particularly
  456. useful when the package is maintained in a VCS and a patch set can't reliably
  457. be generated. Instead the current diff with upstream should be stored in a
  458. single patch. When using this option, it is recommended to create
  459. a debian/source/patch-header file explaining how the Debian changes can be
  460. best reviewed, for example in the VCS that is used.
  461. .TP
  462. .B \-\-create\-empty\-orig
  463. Automatically create the main original tarball as empty if it's missing
  464. and if there are supplementary original tarballs. This option is meant to
  465. be used when the source package is just a bundle of multiple upstream
  466. software and where there's no "main" software.
  467. .PP
  468. .B Extract options
  469. .TP
  470. .B \-\-skip\-debianization
  471. Skips extraction of the debian tarball on top of the upstream sources.
  472. .TP
  473. .B \-\-skip\-patches
  474. Do not apply patches at the end of the extraction.
  475. .
  476. .SS Format: 3.0 (custom)
  477. This format is particular. It doesn't represent a real source package
  478. format but can be used to create source packages with arbitrary files.
  479. .PP
  480. .B Build options
  481. .PP
  482. All non-option arguments are taken as files to integrate in the
  483. generated source package. They must exist and are preferrably
  484. in the current directory. At least one file must be given.
  485. .TP
  486. .BI \-\-target\-format= value
  487. \fBRequired\fP. Defines the real format of the generated source package.
  488. The generated .dsc file will contain this value in its \fIFormat\fP field
  489. and not "3.0 (custom)".
  490. .
  491. .SS Format: 3.0 (git) and 3.0 (bzr)
  492. Those formats are experimental. They generate a single tarball
  493. containing the corresponding VCS repository.
  494. .PP
  495. .B Extracting
  496. .PP
  497. The tarball is unpacked and then the VCS is used to checkout the current
  498. branch.
  499. .PP
  500. .B Building
  501. .PP
  502. Before going any further, some checks are done to ensure that we
  503. don't have any non-ignored uncommitted changes.
  504. .PP
  505. Then the VCS specific part of the source directory is copied over to a
  506. temporary directory. Before this temporary directory is packed in a tarball,
  507. various cleanup are done to save space.
  508. .SH FILE FORMATS
  509. .SS debian/source/format
  510. This file contains on a single line the format that should be used to
  511. build the source package (possible formats are described above). No leading
  512. or trailing spaces are allowed.
  513. .SS debian/source/include-binaries
  514. This file contains a list of binary files (one per line) that should be
  515. included in the debian tarball. Leading and trailing spaces are stripped.
  516. Lines starting with "#" are comments and are skipped. Empty lines are ignored.
  517. .SS debian/source/options
  518. This file contains a list of long options that should be automatically
  519. prepended to the set of command line options of a \fBdpkg\-source \-b\fR
  520. or \fBdpkg\-source \-\-print\-format\fR call. Options like
  521. \fB\-\-compression\fR and \fB\-\-compression\-level\fR are well suited for
  522. this file.
  523. .P
  524. Each option should be put on a separate line. Empty lines and lines
  525. starting with "#" are ignored. The leading "--" should be
  526. stripped and short options are not allowed. Optional spaces are allowed
  527. around the "=" symbol and optional quotes are allowed around the value.
  528. Here's an example of such a file:
  529. .P
  530. # let dpkg-source create a debian.tar.bz2 with maximal compression
  531. compression = "bzip2"
  532. compression-level = 9
  533. # use debian/patches/debian-changes as automatic patch
  534. single-debian-patch
  535. .P
  536. Note: \fBformat\fR options are not accepted in this file, you should
  537. use \fBdebian/source/format\fR instead.
  538. .SS debian/source/patch-header
  539. Free form text that is put on top of the automatic patch generated
  540. in formats "2.0" or "3.0 (quilt)".
  541. .SS debian/patches/series
  542. This file lists all patches that have to be applied (in the given order)
  543. on top of the upstream source package. Leading and trailing spaces are
  544. stripped. Lines starting with "#" are comments and are skipped. Empty
  545. lines are ignored. Remaining lines start with a patch filename (relative
  546. to the \fBdebian/patches/\fP directory) up to the first space character or
  547. the end of line. Optional quilt options can follow up to the end of line
  548. or the first "#" preceded by one or more spaces (which marks the start of
  549. a comment up to the end of line).
  550. .SH BUGS
  551. The point at which field overriding occurs compared to certain
  552. standard output field settings is rather confused.
  553. .SH SEE ALSO
  554. .BR dpkg\-deb (1),
  555. .BR dpkg (1),
  556. .BR dselect (1).
  557. .
  558. .SH AUTHORS
  559. Copyright \(co 1995-1996 Ian Jackson
  560. .br
  561. Copyright \(co 2000 Wichert Akkerman
  562. .br
  563. Copyright \(co 2008-2009 Rapha\[:e]l Hertzog
  564. .sp
  565. This is free software; see the GNU General Public Licence version 2 or later
  566. for copying conditions. There is NO WARRANTY.