dpkg-gencontrol.1 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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 © 2006, 2012-2013, 2015 Guillem Jover <guillem@debian.org>
  6. .\" Copyright © 2007-2008 Raphaël Hertzog <hertzog@debian.org>
  7. .\"
  8. .\" This is free software; you can redistribute it and/or modify
  9. .\" it under the terms of the GNU General Public License as published by
  10. .\" the Free Software Foundation; either version 2 of the License, or
  11. .\" (at your option) any later version.
  12. .\"
  13. .\" This is distributed in the hope that it will be useful,
  14. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. .\" GNU General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU General Public License
  19. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. .
  21. .TH dpkg\-gencontrol 1 "2013-09-06" "Debian Project" "dpkg utilities"
  22. .SH NAME
  23. dpkg\-gencontrol \- generate Debian control files
  24. .
  25. .SH SYNOPSIS
  26. .B dpkg\-gencontrol
  27. .RI [ option ...]
  28. .
  29. .SH DESCRIPTION
  30. .B dpkg\-gencontrol
  31. reads information from an unpacked Debian source tree and generates a
  32. binary package control file (which defaults to debian/tmp/DEBIAN/control);
  33. during this process it will simplify the relation fields.
  34. .sp
  35. Thus
  36. .BR Pre\-Depends ", " Depends ", " Recommends " and " Suggests
  37. are simplified in this
  38. order by removing dependencies which are known to be true according to the
  39. stronger dependencies already parsed. It will also remove any self-dependency
  40. (in fact it will remove any dependency which evaluates to true given the
  41. current version of the package as installed). Logically it keeps the
  42. intersection of multiple dependencies on the same package. The order
  43. of dependencies is preserved as best as possible: if any dependency
  44. must be discarded due to another dependency appearing further
  45. in the field, the superseding dependency will take the place of the
  46. discarded one.
  47. .sp
  48. The other relation fields
  49. .RB ( Enhances ", " Conflicts ", " Breaks ", " Replaces " and " Provides )
  50. are also simplified individually by computing the union of the various
  51. dependencies when a package is listed multiple times in the field.
  52. .sp
  53. .B dpkg\-gencontrol
  54. also adds an entry for the binary package to
  55. .BR debian/files .
  56. .
  57. .SH OPTIONS
  58. .TP
  59. .BI \-v version
  60. Sets the version number of the binary package which will be generated.
  61. .TP
  62. .BI \-V name = value
  63. Set an output substitution variable. See \fBdeb\-substvars\fP(5) for
  64. discussion of output substitution.
  65. .TP
  66. .BI \-T substvars-file
  67. Read substitution variables in
  68. .IR substvars-file ;
  69. the default is
  70. .BR debian/substvars .
  71. This option can be used multiple times to read substitution variables from
  72. multiple files (since dpkg 1.15.6).
  73. .TP
  74. .BI \-D field = value
  75. Override or add an output control file field.
  76. .TP
  77. .BI \-U field
  78. Remove an output control file field.
  79. .TP
  80. .BI \-c control-file
  81. Specifies the main source control file to read information from. The
  82. default is
  83. .BR debian/control .
  84. .TP
  85. .BI \-l changelog-file
  86. Specifies the changelog file to read information from. The
  87. default is
  88. .BR debian/changelog .
  89. .TP
  90. .BI \-f files-list-file
  91. Read or write the list of files to be uploaded here, rather than using
  92. .BR debian/files .
  93. .TP
  94. .BI \-F changelog-format
  95. Specifies the format of the changelog. See \fBdpkg\-parsechangelog\fP(1)
  96. for information about alternative formats.
  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 the dpkg
  112. build scripts but are now deprecated. Previously they were used to tell
  113. \fBdpkg\-gencontrol\fP 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 package-build-dir
  120. Tells
  121. .B dpkg\-source
  122. that the package is being built in
  123. .I package-build-dir
  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. .BR \-O [\fIfilename\fP]
  133. Print the control file to standard output (or \fIfilename\fP if specified,
  134. since dpkg 1.17.2), rather than to
  135. .B debian/tmp/DEBIAN/control
  136. (or
  137. .IB package-build-dir /DEBIAN/control
  138. if
  139. .B \-P
  140. was used).
  141. .TP
  142. .BR \-? ", " \-\-help
  143. Show the usage message and exit.
  144. .TP
  145. .BR \-\-version
  146. Show the version and exit.
  147. .
  148. .SH FILES
  149. .TP
  150. .B debian/control
  151. The main source control information file, giving version-independent
  152. information about the source package and the binary packages it can
  153. produce.
  154. .TP
  155. .B debian/files
  156. The list of generated files which are part of the upload being
  157. prepared.
  158. .B dpkg\-gencontrol
  159. adds the presumed filenames of binary packages whose control files it
  160. generates here.