dpkg-gencontrol.1 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .\" dpkg manual page - dpkg-gencontrol(1)
  2. .\"
  3. .\" Copyright © 1995-1996 Ian Jackson <ian@chiark.chu.cam.ac.uk>
  4. .\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
  5. .\" Copyright © 2007-2008 Raphaël Hertzog <hertzog@debian.org>
  6. .\"
  7. .\" This is free software; you can redistribute it and/or modify
  8. .\" it under the terms of the GNU General Public License as published by
  9. .\" the Free Software Foundation; either version 2 of the License, or
  10. .\" (at your option) any later version.
  11. .\"
  12. .\" This is distributed in the hope that it will be useful,
  13. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. .\" GNU General Public License for more details.
  16. .\"
  17. .\" You should have received a copy of the GNU General Public License
  18. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. .
  20. .TH dpkg\-gencontrol 1 "2011-08-14" "Debian Project" "dpkg utilities"
  21. .SH NAME
  22. dpkg\-gencontrol \- generate Debian control files
  23. .
  24. .SH SYNOPSIS
  25. .B dpkg\-gencontrol
  26. .RI [ option ...]
  27. .
  28. .SH DESCRIPTION
  29. .B dpkg\-gencontrol
  30. reads information from an unpacked Debian source tree and generates a
  31. binary package control file (which defaults to debian/tmp/DEBIAN/control);
  32. during this process it will simplify the relation fields.
  33. .sp
  34. Thus
  35. .IR Pre\-Depends ", " Depends ", " Recommends " and " Suggests
  36. are simplified in this
  37. order by removing dependencies which are known to be true according to the
  38. stronger dependencies already parsed. It will also remove any self-dependency
  39. (in fact it will remove any dependency which evaluates to true given the
  40. current version of the package as installed). Logically it keeps the
  41. intersection of multiple dependencies on the same package. The order
  42. of dependencies is preserved as best as possible: if any dependency
  43. must be discarded due to another dependency appearing further
  44. in the field, the superseding dependency will take the place of the
  45. discarded one.
  46. .sp
  47. The other relation fields
  48. .RI ( Enhances ", " Conflicts ", " Breaks ", " Replaces " and " Provides )
  49. are also simplified individually by computing the union of the various
  50. dependencies when a package is listed multiple times in the field.
  51. .sp
  52. .B dpkg\-gencontrol
  53. also adds an entry for the binary package to
  54. .BR debian/files .
  55. .
  56. .SH OPTIONS
  57. .TP
  58. .BI \-v version
  59. Sets the version number of the binary package which will be generated.
  60. .TP
  61. .BI \-V name = value
  62. Set an output substitution variable. See \fBdeb\-substvars\fP(5) for
  63. discussion of output substitution.
  64. .TP
  65. .BI \-T substvarsfile
  66. Read substitution variables in
  67. .IR substvarsfile ;
  68. the default is
  69. .BR debian/substvars .
  70. This option can be used multiple times to read substitution variables from
  71. multiple files.
  72. .TP
  73. .BI \-D field = value
  74. Override or add an output control file field.
  75. .TP
  76. .BI \-U field
  77. Remove an output control file field.
  78. .TP
  79. .BI \-c controlfile
  80. Specifies the main source control file to read information from. The
  81. default is
  82. .BR debian/control .
  83. .TP
  84. .BI \-l changelogfile
  85. Specifies the change log file to read information from. The
  86. default is
  87. .BR debian/changelog .
  88. .TP
  89. .BI \-f fileslistfile
  90. Read or write the list of files to be uploaded here, rather than using
  91. .BR debian/files .
  92. .TP
  93. .BI \-F changelogformat
  94. Specifies the format of the changelog. By default the format is read
  95. from a special line near the bottom of the changelog or failing that
  96. defaults to the debian standard format.
  97. .TP
  98. .BI \-p package
  99. Generate information for the binary package
  100. .IR package .
  101. If the source control file lists only one binary package then this
  102. option may be omitted; otherwise it is essential to select which
  103. binary package's information to generate.
  104. .TP
  105. .BI \-n filename
  106. Assume the filename of the package will be
  107. .I filename
  108. instead of the normal package_version_arch.deb filename.
  109. .TP
  110. .BR \-is ", " \-ip ", " \-isp
  111. These options are ignored for compatibility with older versions of
  112. dpkg\-dev but are now deprecated. Previously they were used to tell
  113. dpkg\-gencontrol to include the Section and Priority fields in the
  114. control file. This is now the default behaviour. If you want to
  115. get the old behaviour you can use the
  116. .B \-U
  117. option to delete the fields from the control file.
  118. .TP
  119. .BI \-P packagebuilddir
  120. Tells
  121. .B dpkg\-source
  122. that the package is being built in
  123. .I packagebuilddir
  124. instead of
  125. .BR debian/tmp .
  126. This value is used to find the default value of the
  127. .B Installed\-Size
  128. substitution variable and control file field (using
  129. .BR du ),
  130. and for the default location of the output file.
  131. .TP
  132. .B \-O
  133. Print the control file to standard output, rather than to
  134. .B debian/tmp/DEBIAN/control
  135. (or
  136. .IB packagebuilddir /DEBIAN/control
  137. if
  138. .B \-P
  139. was used).
  140. .TP
  141. .BR \-h ", " \-\-help
  142. Show the usage message and exit.
  143. .TP
  144. .BR \-\-version
  145. Show the version and exit.
  146. .
  147. .SH FILES
  148. .TP
  149. .B debian/control
  150. The main source control information file, giving version-independent
  151. information about the source package and the binary packages it can
  152. produce.
  153. .TP
  154. .B debian/files
  155. The list of generated files which are part of the upload being
  156. prepared.
  157. .B dpkg\-gencontrol
  158. adds the presumed filenames of binary packages whose control files it
  159. generates here.