dpkg-source.1 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. .\" Hey, Emacs! This is an -*- nroff -*- source file.
  2. .\" Authors: Ian Jackson
  3. .TH DPKG\-SOURCE 1 "Januari 2000" "Debian Project" "dpkg utilities"
  4. .SH NAME
  5. dpkg\-source, dpkg\-gencontrol, dpkg\-shlibdeps, dpkg\-genchanges,
  6. dpkg\-buildpackage, dpkg\-distaddfile, dpkg\-parsechangelog
  7. \- Debian source package tools
  8. .SH SYNOPSIS
  9. .B dpkg-source
  10. .BI "-x " filename .dsc
  11. .br
  12. .B dpkg-source -b
  13. .RI [ options "] " directory " [" orig-directory |'']
  14. .br
  15. .B dpkg-gencontrol
  16. .RI [ options ]
  17. .br
  18. .B dpkg-shlibdeps
  19. .IR options
  20. .br
  21. .B dpkg-genchanges
  22. .RI [ options ]
  23. .br
  24. .B dpkg-buildpackage
  25. .RI [ options ]
  26. .br
  27. .B dpkg-distaddfile
  28. .RI [ options ] " filename section priority"
  29. .br
  30. .B dpkg-parsechangelog
  31. .RI [ options ]
  32. .SH DESCRIPTION
  33. .B dpkg-source
  34. packs and unpacks Debian source archives.
  35. .B dpkg-gencontrol
  36. reads information from an unpacked Debian source tree and generates a
  37. binary package control file (which defaults to debian/tmp/DEBIAN/control);
  38. it also adds an entry for the binary package to
  39. .BR debian/files .
  40. .B dpkg-shlibdeps
  41. calculates shared library dependencies for executables named in its
  42. arguments. The dependencies are added to the substitution
  43. variables file
  44. .B debian/substvars
  45. as variable names
  46. .BI shlibs: dependencyfield
  47. where
  48. .I dependencyfield
  49. is a dependency field name. Any other variables starting
  50. .I shlibs:
  51. are removed from the file.
  52. .B dpkg-shlibdeps
  53. will read shared library dependency information from
  54. .BR debian/shlibs.local ,
  55. .BR /etc/dpkg/shlibs.override ,
  56. the
  57. .B shlibs
  58. control area file of the package containing the file which
  59. .B objdump
  60. reports as satisfying the library dependency, or
  61. .BR /etc/dpkg/shlibs.default .
  62. The first match will be used. See the
  63. .I Debian packaging manual
  64. for details of the format of shared library dependency files.
  65. .B dpkg-genchanges
  66. reads information from an unpacked and built Debian source tree and
  67. from the files it has generated and generates a Debian upload control
  68. file
  69. .RB ( .changes " file)."
  70. .B dpkg-buildpackage
  71. is a control script which can be used to help automate the building of
  72. a package.
  73. .B dpkg-distaddfile
  74. adds an entry for a named file to
  75. .BR debian/files .
  76. .B dpkg-parsechangelog
  77. reads and parses the changelog of an unpacked Debian source tree and
  78. outputs the information in it to standard output in a machine-readable
  79. form.
  80. None of these commands allow multiple options to be combined into one,
  81. and they do not allow the value for an option to be specified in a
  82. separate argument.
  83. .SH COMMON OPTIONS
  84. Many of these programs share options; these are described here,
  85. together with the programs that accept them.
  86. .TP
  87. .BI -h
  88. Display the particular program's version and usage message, including
  89. a synopsis of the options it understands. This option is understood
  90. by all the source package tools.
  91. .TP
  92. .BI -v version
  93. In
  94. .BR dpkg-buildpackage ", " dpkg-genchanges " and " dpkg-parsechangelog
  95. this causes changelog information from all versions strictly later
  96. than
  97. .I version
  98. (which must appear in the changelog file) to be used.
  99. In
  100. .BR dpkg-gencontrol
  101. it sets the version number of the binary package which will be
  102. generated.
  103. .TP
  104. .BI -C changesdescription
  105. Read the description of the changes from the file
  106. .I changesdescription
  107. rather than using the information from the source tree's changelog
  108. file. This is understood by
  109. .BR dpkg-buildpackage " and " dpkg-genchanges .
  110. .TP
  111. .BI -m maintaineraddress
  112. Use
  113. .I maintaineraddress
  114. as the name and email address of the maintainer for this package,
  115. rather than using the information from the source tree's control.
  116. This is understood by
  117. .BR dpkg-buildpackage " and " dpkg-genchanges .
  118. .TP
  119. .BI -e maintaineraddress
  120. Use
  121. .I maintaineraddress
  122. as the name and email address of the maintainer for this upload,
  123. rather than using the information from the source tree's changelog.
  124. This is understood by
  125. .BR dpkg-buildpackage " and " dpkg-genchanges .
  126. .TP
  127. .BR -si ", " -sa ", " -sd
  128. These options control whether the original source archive is included
  129. in the upload generated by
  130. .BR dpkg-buildpackage " and " dpkg-genchanges
  131. if any source is being generated (ie,
  132. .BR -b " or " -B
  133. haven't been used).
  134. By default, or if
  135. .B -si
  136. is specified, the original source will be included if the version
  137. number ends in
  138. .BR -0 " or " -1 ,
  139. ie if the Debian revision part of the version number is
  140. .BR 0 " or " 1 .
  141. .B -sa
  142. forces the inclusion of the original source;
  143. .B -sd
  144. forces its exclusion and includes only the diff.
  145. .TP
  146. .BI -V name = value
  147. Set an output substitution variable.
  148. This option is understood by
  149. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  150. See below for a discussion of output substitution.
  151. .TP
  152. .BI -T substvarsfile
  153. Read (or, for
  154. .BR dpkg-shlibdeps ,
  155. write) substitution variables in
  156. .IR substvarsfile ;
  157. the default is
  158. .BR debian/substvars .
  159. This option is understood by
  160. .BR dpkg-source ", " dpkg-gencontrol ", " dpkg-shlibdeps " and " dpkg-genchanges .
  161. .TP
  162. .BI -D field = value
  163. Override or add an output control file field.
  164. This option is understood by
  165. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  166. .TP
  167. .BI -U field
  168. Remove an output control file field.
  169. This option is understood by
  170. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  171. .TP
  172. .BR -b | -B | -S
  173. For
  174. .BR dpkg-genchanges " and " dpkg-buildpackage
  175. .BR -b " and " -B
  176. specify that a binary-only build is taking place.
  177. .B -b
  178. indicates that no source files are to be built and/or distributed, and
  179. .B -B
  180. that no architecture-independent binary package files are to be
  181. distributed either.
  182. .B -S
  183. specifies that only the source should be uploaded and no binary packages
  184. need to be made. The distinction between
  185. .BR -b " and " -B
  186. is only used by
  187. .BR dpkg-buildpackage ;
  188. .B dpkg-genchanges
  189. just produces a
  190. .B .changes
  191. file for whatever files were produced by the
  192. .B binary-*
  193. target(s) of the package being built.
  194. .B -b
  195. tells
  196. .B dpkg-source
  197. to build a source package (rather than to extract one) - see below.
  198. .TP
  199. .BI -c controlfile
  200. Specifies the main source control file to read information from. The
  201. default is
  202. .BR debian/control .
  203. This option is understood by
  204. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  205. .TP
  206. .BI -l changelogfile
  207. Specifies the change log file to read information from. The
  208. default is
  209. .BR debian/changelog .
  210. This option is understood by
  211. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  212. .TP
  213. .BI -f fileslistfile
  214. Read or write the list of files to be uploaded here, rather than using
  215. .BR debian/files .
  216. This option is understood by
  217. .BR dpkg-gencontrol ", " dpkg-genchanges " and " dpkg-distaddfile .
  218. .TP
  219. .BI -F changelogformat
  220. Specifies the format of the changelog. By default the format is read
  221. from a special line near the bottom of the changelog (see the
  222. Debian packaging manual) or failing that defaults to
  223. .BR debian ,
  224. the standard format described in the
  225. .IR "Debian packaging manual" .
  226. This option is understood by
  227. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  228. .SH DPKG-SOURCE OPTIONS
  229. When the common options
  230. .BR -c " and " -l
  231. are given with relative pathnames these are interpreted starting at
  232. the source tree's top level directory.
  233. .TP
  234. .B -x
  235. Extract a source package. One non-option argument should be supplied,
  236. the name of the Debian source control file
  237. .RB ( .dsc ).
  238. No options are useful with
  239. .BR "dpkg-source -x" .
  240. .B dpkg-source
  241. will read the names of the other file(s) making up the source package
  242. from the control file; they are assumed to be in the same directory as
  243. the
  244. .BR .dsc .
  245. The files in the extracted package will have their permissions and
  246. ownerships set to those which would have been expected if the files
  247. and directories had simply been created - directories and executable
  248. files will be 0777 and plain files will be 0666, both modified by the
  249. extractors' umask; if the parent directory is setgid then the
  250. extracted directories will be too, and all the files and directories
  251. will inherit its group ownership.
  252. .TP
  253. .B -b
  254. Build: pack up a source tree. One or two non-option arguments should
  255. be supplied. The first is taken as the name of the directory
  256. containing the unpacked source tree. If a second argument is supplied
  257. it should be the name of the original source directory or tarfile or
  258. the empty string if the package is a Debian-specific one and so has no
  259. Debianisation diffs. If no second argument is supplied then
  260. .B dpkg-source
  261. will look for the original source tarfile
  262. .IB package _ upstream-version .orig.tar.gz
  263. or the original source directory
  264. .IB directory .orig
  265. or the empty string (no original source, and so no diff) depending on
  266. the arguments.
  267. .TP
  268. .B -i[<regexp>]
  269. You may specify a perl regular expression to match files you want
  270. filtered out of the list of files for the diff. (This list is
  271. generated by a find command.) \fB-i\fR by itself enables the option,
  272. with a default that will filter out CVS, RCS and libtool .deps
  273. subdirectories, and all files within them, as well as ~ suffixed
  274. backup files and DEADJOEs.
  275. This is very helpful in cutting out extraneous files that get included
  276. in the .diff.gz, (eg: "debian/BUGS_TODO/*" or "debian/RCS/*,v"). For
  277. instance, if you maintain a package that you track via remote CVS,
  278. where you don't have access permissions for commiting the debian
  279. control files and making tags for \fIcvs-buildpackage(1)\fR, it is
  280. necessary to perform an extra checkout/update into a directory you
  281. keep pristine, to generate the .orig.tar.gz from. That directory will
  282. have CVS/Entries files in it that will contain timestamps that differ
  283. from the ones in your working directory, thus causing them to be
  284. unnecessarily included in every .diff.gz, unless you use the \fB-i\fR
  285. switch.
  286. .TP
  287. .BR -sa , -sp , -su , -sk , -sA , -sP , -sU , -sK , -ss " with " -b
  288. If
  289. .BR -sk " or " -sp
  290. is specified
  291. .B dpkg-source
  292. expects the original source as a tarfile, by default
  293. .IB package _ upstream-version .orig.tar.gz\fR.
  294. It will leave this original source in place as a tarfile, or copy it
  295. to the current directory if it isn't already there
  296. If
  297. .B -sp
  298. is used rather than
  299. .B -sk
  300. it will remove it again afterwards.
  301. If
  302. .BR -su " or " -sr
  303. is specified the original source is expected as a directory, by
  304. default
  305. .IB package - upstream-version .orig
  306. and
  307. .B dpkg-source
  308. will create a new original source archive from it. If
  309. .B -sr
  310. is used
  311. .B dpkg-source will remove that directory after it has been used.
  312. If
  313. .B -ss
  314. is specified
  315. .B dpkg-source
  316. will expect that the original source is available both as a directory
  317. and as a tarfile. If will use the directory to create the diff, but
  318. the tarfile to create the
  319. .BR .dsc .
  320. This option must be used with care - if the directory and tarfile do
  321. not match a bad source archive will be generated.
  322. If
  323. .B -sn
  324. is specified
  325. .B dpkg-source
  326. will not look for any original source, and will not generate a diff.
  327. The second argument, if supplied, must be the empty string. This is
  328. used for Debian-specific packages which do not have a separate
  329. upstream source and therefore have no debianisation diffs.
  330. If
  331. .BR -sa " or " -sA
  332. is specified
  333. .B dpkg-source
  334. will look for the original source archive as a tarfile or as a
  335. directory - the second argument, if any, may be either, or the empty
  336. string (this is equivalent to using
  337. .BR -sn ).
  338. If a tarfile is found it will unpack it to create the diff and remove
  339. it afterwards (this is equivalent to
  340. .BR -sp );
  341. if a directory is found it will pack it to create the original source
  342. and remove it afterwards (this is equivalent to
  343. .BR -sr );
  344. if neither is found it will assume that the package has no
  345. debianisation diffs, only a straightforward source archive (this is
  346. equivalent to
  347. .BR -sn ).
  348. If both are found then dpkg-source will ignore the directory,
  349. overwriting it, if
  350. .B -sA
  351. was specified (this is equivalent to
  352. .BR -sP )
  353. or raise an error if
  354. .B -sa
  355. was specified.
  356. .B -sA
  357. is the default.
  358. .BR -sa ", " -sp ", " -sk ", " -su " and " -sr
  359. will not overwrite existing tarfiles or directories. If this is
  360. desired then
  361. .BR -sA ", " -sP ", " -sK ", " -su " and " -sR
  362. should be used instead.
  363. .TP
  364. .BR -sp , -su , -sn " with " -x
  365. In all cases any existing original source tree will be removed.
  366. If
  367. .B -sp
  368. is used when extracting then the original source (if any) will be left
  369. as a tarfile. If it is not already located in the current directory
  370. or if an existing but different file is there it will be copied there.
  371. This is the default.
  372. .B -su
  373. unpacks the original source tree.
  374. .B -sn
  375. ensures that the original source is neither copied to the current
  376. directory nor unpacked. Any original source tree that was in the
  377. current directory is still removed.
  378. .SH DPKG-GENCONTROL OPTIONS
  379. .B dpkg-gencontrol
  380. does not take any non-option arguments.
  381. .TP
  382. .BI -p package
  383. Generate information for the binary package
  384. .IR package .
  385. If the source control file lists only one binary package then this
  386. option may be omitted; otherwise it is essential to select which
  387. binary package's information to generate.
  388. .TP
  389. .BI -n filename
  390. Assume the filename of the package will be
  391. .I filename
  392. instead of the normal package_version_arch.deb filename.
  393. .TP
  394. .BR -is ", " -ip ", " -isp
  395. Include the
  396. .BR Section " and " Priority
  397. fields for this package from the main source control file in the
  398. binary package control file being generated. Usually this information
  399. is not included here, but only in the
  400. .B .changes
  401. file.
  402. .B -isp
  403. includes both fields,
  404. .BR -is " only the " Section " and " -ip " only the " Priority .
  405. .TP
  406. .BI -P packagebuilddir
  407. Tells
  408. .B dpkg-source
  409. that the package is being built in
  410. .I packagebuilddir
  411. instead of
  412. .BR debian/tmp .
  413. This value is used to find the default value of the
  414. .B Installed-Size
  415. substitution variable and control file field (using
  416. .BR du ),
  417. and for the default location of the output file.
  418. .TP
  419. .B -O
  420. Causes the control file to be printed to standard output, rather than
  421. to
  422. .B debian/tmp/DEBIAN/control
  423. (or
  424. .IB packagebuilddir /DEBIAN/control
  425. if
  426. .B -P
  427. was used).
  428. .SH DPKG-SHLIBDEPS OPTIONS
  429. .B dpkg-shlibdeps
  430. interprets non-option arguments as executable names, just as if they'd
  431. been supplied as
  432. .BI -e executable\fR.
  433. .TP
  434. .BI -e executable
  435. Include dependencies appropriate for the shared libraries required by
  436. .IR executable .
  437. .TP
  438. .BI -d dependencyfield
  439. Add dependencies to be added to the control file dependency field
  440. .IR dependencyfield .
  441. (The dependencies for this field are placed in the variable
  442. .BI shlibs: dependencyfield\fR.)
  443. The
  444. .BI -d dependencyfield
  445. option takes effect for all executables after the option, until the
  446. next
  447. .BI -d dependencyfield\fR.
  448. The default
  449. .I dependencyfield
  450. is
  451. .BR Depends .
  452. If the same dependency entry (or set of alternatives) appears in more
  453. than one of the recognised dependency field names
  454. .BR Pre-Depends ", " Depends ", " Recommends ", " Enhances " or " Suggests
  455. then
  456. .B dpkg-shlibdeps
  457. will automatically remove the dependency from all fields except the
  458. one representing the most important dependencies.
  459. .TP
  460. .BI -p varnameprefix
  461. Causes substitution variables to start with
  462. .IB varnameprefix :
  463. instead of
  464. .BR shlib: .
  465. Likewise, any existing substitution variables starting with
  466. .IB varnameprefix :
  467. (rather than
  468. .BR shlib: )
  469. are removed from the the substitution variables file.
  470. .TP
  471. .BI -L localshlibsfile
  472. Causes
  473. .B dpkg-shlibs
  474. to read overriding shared library dependency information from
  475. .I localshlibsfile
  476. instead of
  477. .BR debian/shlibs.local .
  478. .TP
  479. .B -O
  480. Causes the substitution variable settings to be printed to standard
  481. output, rather than being added to the substitution variables file
  482. .RB ( debian/substvars
  483. by default).
  484. .SH DPKG-GENCHANGES OPTIONS
  485. .B dpkg-genchanges
  486. does not take any non-option arguments.
  487. .TP
  488. .BI -u uploadfilesdir
  489. Look for the files to be uploaded in
  490. .I uploadfilesdir
  491. rather than
  492. .B ..
  493. .RB ( dpkg-genchanges
  494. needs to find these files so that it can include their sizes and
  495. checksums in the
  496. .B .changes
  497. file).
  498. .TP
  499. .B -q
  500. Usually
  501. .B dpkg-genchanges
  502. will produce informative messages on standard error, for example about
  503. how many of the package's source files are being uploaded.
  504. .B -q
  505. suppresses these messages.
  506. .SH DPKG-BUILDPACKAGE OPTIONS
  507. .B dpkg-buildpackage
  508. does not take any non-option arguments.
  509. .TP
  510. .BI -k key-id
  511. Specify a key-ID to use when signing packages.
  512. .TP
  513. .BI -r gain-root-command
  514. When
  515. .B dpkg-buildpackage
  516. needs to execute part of the build process as root, it prefixes the
  517. command it executes with
  518. .I gain-root-command
  519. if one has been specified.
  520. .I gain-root-command
  521. should be the name of a program on the
  522. .B PATH
  523. and will get as arguments the name of the real command to run and the
  524. arguments it should take.
  525. .I gain-root-command
  526. should not contain spaces or any other shell metacharacters.
  527. .\" what happens, if it contains spaces? (hs)
  528. .I gain-root-command
  529. might typically be
  530. .BR sudo ", " super " or " really .
  531. .B su
  532. is not suitable, since it requires a
  533. .B -c
  534. option to run a command and even then it can only invoke the user's
  535. shell with
  536. .B -c
  537. instead of passing arguments individually to the command to be run.
  538. .TP
  539. .BI -p sign-command
  540. When
  541. .B dpkg-buildpackage
  542. needs to execute GPG or PGP to sign a source control
  543. .RB ( .dsc )
  544. file or a
  545. .B .changes
  546. file it will run
  547. .I sign-command
  548. (searching the
  549. .B PATH
  550. if necessary) instead of
  551. .BR pgp .
  552. .I sign-command
  553. will get all the arguments that
  554. .B pgp
  555. would have gotten. If
  556. .I sign-command
  557. takes its arguments in GPG rather than PGP style, you should give
  558. the
  559. .B -sgpg
  560. option.
  561. .I sign-command
  562. should not contain spaces or any other shell metacharacters.
  563. .TP
  564. .B -tc
  565. Clean the source tree (using
  566. .I gain-root-command
  567. .BR "debian/rules clean" )
  568. after the package has been built.
  569. .TP
  570. .BR -us ", " -uc
  571. Do not sign the source package or the .changes file, respectively.
  572. .TP
  573. .BI -a architecture
  574. Specify the Debian architecture we build for. The architecture of the
  575. machine we build on is determined automatically, and is also the default
  576. for the host machine.
  577. .TP
  578. .B -i[<regexp>]
  579. Passed unchanged to
  580. .BR dpkg-source .
  581. .TP
  582. .B -D
  583. Check build dependancies and conflicts; abort if unsatisfied.
  584. .TP
  585. .B -d
  586. Do not check build dependancies and conflicts.
  587. .SH DPKG-DISTADDFILE ARGUMENTS
  588. .B dpkg-distaddfile
  589. does not take any non-common options. It takes three non-option
  590. arguments, the filename and the section and priority for the
  591. .B .changes
  592. file.
  593. The filename should be specified relative to the directory where
  594. .B dpkg-genchanges
  595. will expect to find the files, usually
  596. .BR .. ,
  597. rather than being a pathname relative to the current directory when
  598. .B dpkg-distaddfile
  599. is run.
  600. .SH DPKG-PARSECHANGELOG ARGUMENTS
  601. .B dpkg-parsechangelog
  602. does not take any non-common options or non-option arguments.
  603. .SH VARIABLE SUBSTITUTION
  604. Before
  605. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges
  606. write their control information (to the source control file
  607. .B .dsc
  608. for
  609. .B dpkg-source
  610. and to standard output for
  611. .BR dpkg-gencontrol " and " dpkg-genchanges )
  612. they perform some variable substitutions on the output file.
  613. A variable substitution has the form
  614. .BI ${ variable-name }\fR.
  615. Variable names consist of alphanumerics, hyphens and colons and start
  616. with an alphanumeric. Variable substitutions are performed repeatedly
  617. until none are left; the full text of the field after the substitution
  618. is rescanned to look for more substitutions.
  619. After all the substitutions have been done each occurence of the
  620. string
  621. .B ${}
  622. (which is not a legal substitution) is replaced with a
  623. .B $
  624. sign.
  625. Variables can be set using the
  626. .B -V
  627. common option. They can be also specified in the file
  628. .B debian/substvars
  629. (or whatever other file is specified using the
  630. .B -T
  631. option). This file consists of lines of the form
  632. .IB name = value\fR.
  633. Trailing whitespace on each line, blank lines, and
  634. lines starting with a
  635. .B #
  636. symbol (comments) are ignored.
  637. Additionally, the following standard variables are available:
  638. .TP
  639. .BI Arch
  640. The current build architecture (from
  641. .BR "dpkg \-\-print-architecture" ).
  642. .TP
  643. .B Source-Version
  644. The source package version (from the changelog file).
  645. .TP
  646. .B Installed-Size
  647. The total size of the package's installed files. This value is copied
  648. into the corresponding control file field; setting it will modify the
  649. value of that field. If this variable isn't set
  650. .B dpkg-gencontrol
  651. will use
  652. .B du -k debian/tmp
  653. to find the default value.
  654. .TP
  655. .B Extra-Size
  656. Additional disk space used when the package is installed. If this
  657. variable is set its value is added to that of the
  658. .B Installed-Size
  659. variable (whether set explicitly or using the default value) before it
  660. is copied into the
  661. .B Installed-Size
  662. control file field.
  663. .TP
  664. .BI F: fieldname
  665. The value of the output field
  666. .IR fieldname
  667. (which must be given in the canonical capitalisation). Setting these
  668. variables has no effect other than on places where they are expanded
  669. explicitly.
  670. .TP
  671. .B Format
  672. The
  673. .B .changes
  674. file format version generated by this version of the source packaging
  675. scripts. If you set this variable the contents of the
  676. .B Format
  677. field in the
  678. .B .changes
  679. file will change too.
  680. .TP
  681. .BR Newline ", " Space ", " Tab
  682. These variables each hold the corresponding character.
  683. .TP
  684. .BI shlibs: dependencyfield
  685. Variable settings with names of this form are generated by
  686. .B dpkg-shlibdeps
  687. - see above.
  688. .LP
  689. If a variable is referred to but not defined it generates a warning
  690. and an empty value is assumed.
  691. .SH FILES
  692. .TP
  693. .B debian/control
  694. The main source control information file, giving version-independent
  695. information about the source package and the binary packages it can
  696. produce.
  697. .TP
  698. .B debian/changelog
  699. The changelog file, used to obtain version-dependent information about
  700. the source package, such as the urgency and distribution of an upload,
  701. the changes made since a particular release, and the source version
  702. number itself.
  703. .TP
  704. .B debian/files
  705. The list of generated files which are part of the upload being
  706. prepared.
  707. .B dpkg-gencontrol
  708. adds the presumed filenames of binary packages whose control files it
  709. generates here;
  710. .B dpkg-distaddfile
  711. can be used to add additional files.
  712. .B dpkg-genchanges
  713. reads the data here when producing a
  714. .B .changes
  715. file.
  716. .TP
  717. .B debian/substvars
  718. List of substitution variables and values.
  719. .TP
  720. .B debian/shlibs.local
  721. Package-local overriding shared library dependency information.
  722. .TP
  723. .B /etc/dpkg/shlibs.override
  724. Per-system overriding shared library dependency information.
  725. .TP
  726. .B /etc/dpkg/shlibs.default
  727. Per-system default shared library dependency information.
  728. .SH BUGS
  729. The point at which field overriding occurs compared to certain
  730. standard output field settings is rather confused.
  731. The binary package entries in the
  732. .B debian/files
  733. file will be passed through variable substitution twice. This should
  734. not matter, since
  735. .BR $ ", " { " and " }
  736. are not legal in package names or version numbers.
  737. It should be possible to specify spaces and shell metacharacters in
  738. and initial arguments for
  739. .IR gain-root-command " and " sign-command .
  740. .SH SEE ALSO
  741. .IR "Debian packaging manual" ,
  742. .br
  743. .IR "Debian policy manual" ,
  744. .br
  745. .BR dpkg\-deb (1),
  746. .BR dpkg (8),
  747. .BR dselect (8),
  748. .BR gpg (1),
  749. .BR pgp (1).
  750. .SH AUTHOR
  751. The utilities and this manpage were written by Ian Jackson.
  752. .SH COPYRIGHT
  753. Copyright (C) 1995-1996 Ian Jackson
  754. .br
  755. Copyright (C) 2000 Wichert Akkerman
  756. .br
  757. This is free software; see the GNU General Public Licence version 2 or later
  758. for copying conditions. There is NO WARRANTY. See
  759. .B /usr/share/doc/dpkg/copyright
  760. and
  761. .B /usr/share/common-licenses/GPL
  762. for details.