version 1, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
DPKG-SOURCE |
| |
|
2 |
!!!DPKG-SOURCE |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
COMMON OPTIONS |
| |
|
7 |
DPKG-SOURCE OPTIONS |
| |
|
8 |
DPKG-GENCONTROL OPTIONS |
| |
|
9 |
DPKG-SHLIBDEPS OPTIONS |
| |
|
10 |
DPKG-GENCHANGES OPTIONS |
| |
|
11 |
DPKG-BUILDPACKAGE OPTIONS |
| |
|
12 |
DPKG-DISTADDFILE ARGUMENTS |
| |
|
13 |
DPKG-PARSECHANGELOG ARGUMENTS |
| |
|
14 |
VARIABLE SUBSTITUTION |
| |
|
15 |
FILES |
| |
|
16 |
BUGS |
| |
|
17 |
SEE ALSO |
| |
|
18 |
AUTHOR |
| |
|
19 |
COPYRIGHT |
| |
|
20 |
---- |
| |
|
21 |
!!NAME |
| |
|
22 |
|
| |
|
23 |
|
| |
|
24 |
dpkg-source, dpkg-gencontrol, dpkg-shlibdeps, dpkg-genchanges, dpkg-buildpackage, dpkg-distaddfile, dpkg-parsechangelog - Debian source package tools |
| |
|
25 |
!!SYNOPSIS |
| |
|
26 |
|
| |
|
27 |
|
| |
|
28 |
__dpkg-source -x__ ''filename''__.dsc |
| |
|
29 |
dpkg-source -b__ [[''options''] ''directory'' |
| |
|
30 |
[[''orig-directory''|'']__ |
| |
|
31 |
dpkg-gencontrol__ [[''options'']__ |
| |
|
32 |
dpkg-shlibdeps__ ''options''__ |
| |
|
33 |
dpkg-genchanges__ [[''options'']__ |
| |
|
34 |
dpkg-buildpackage__ [[''options'']__ |
| |
|
35 |
dpkg-distaddfile__ [[''options''] ''filename section |
| |
|
36 |
priority''__ |
| |
|
37 |
dpkg-parsechangelog__ [[''options''] |
| |
|
38 |
!!DESCRIPTION |
| |
|
39 |
|
| |
|
40 |
|
| |
|
41 |
__dpkg-source__ packs and unpacks Debian source |
| |
|
42 |
archives. |
| |
|
43 |
|
| |
|
44 |
|
| |
|
45 |
__dpkg-gencontrol__ reads information from an unpacked |
| |
|
46 |
Debian source tree and generates a binary package control |
| |
|
47 |
file (which defaults to debian/tmp/DEBIAN/control); it also |
| |
|
48 |
adds an entry for the binary package to |
| |
|
49 |
__debian/files__. |
| |
|
50 |
|
| |
|
51 |
|
| |
|
52 |
__dpkg-shlibdeps__ calculates shared library dependencies |
| |
|
53 |
for executables named in its arguments. The dependencies are |
| |
|
54 |
added to the substitution variables file |
| |
|
55 |
__debian/substvars__ as variable names |
| |
|
56 |
__shlibs:__''dependencyfield'' where |
| |
|
57 |
''dependencyfield'' is a dependency field name. Any other |
| |
|
58 |
variables starting ''shlibs:'' are removed from the file. |
| |
|
59 |
__dpkg-shlibdeps__ will read shared library dependency |
| |
|
60 |
information from __debian/shlibs.local__, |
| |
|
61 |
__/etc/dpkg/shlibs.override__, the __shlibs__ control |
| |
|
62 |
area file of the package containing the file which |
| |
|
63 |
__objdump__ reports as satisfying the library dependency, |
| |
|
64 |
or __/etc/dpkg/shlibs.default__. The first match will be |
| |
|
65 |
used. See the ''Debian packaging manual'' for details of |
| |
|
66 |
the format of shared library dependency files. |
| |
|
67 |
|
| |
|
68 |
|
| |
|
69 |
__dpkg-genchanges__ reads information from an unpacked |
| |
|
70 |
and built Debian source tree and from the files it has |
| |
|
71 |
generated and generates a Debian upload control file |
| |
|
72 |
(__.changes__ file). |
| |
|
73 |
|
| |
|
74 |
|
| |
|
75 |
__dpkg-buildpackage__ is a control script which can be |
| |
|
76 |
used to help automate the building of a |
| |
|
77 |
package. |
| |
|
78 |
|
| |
|
79 |
|
| |
|
80 |
__dpkg-distaddfile__ adds an entry for a named file to |
| |
|
81 |
__debian/files__. |
| |
|
82 |
|
| |
|
83 |
|
| |
|
84 |
__dpkg-parsechangelog__ reads and parses the changelog of |
| |
|
85 |
an unpacked Debian source tree and outputs the information |
| |
|
86 |
in it to standard output in a machine-readable |
| |
|
87 |
form. |
| |
|
88 |
|
| |
|
89 |
|
| |
|
90 |
None of these commands allow multiple options to be combined |
| |
|
91 |
into one, and they do not allow the value for an option to |
| |
|
92 |
be specified in a separate argument. |
| |
|
93 |
!!COMMON OPTIONS |
| |
|
94 |
|
| |
|
95 |
|
| |
|
96 |
Many of these programs share options; these are described |
| |
|
97 |
here, together with the programs that accept |
| |
|
98 |
them. |
| |
|
99 |
|
| |
|
100 |
|
| |
|
101 |
__-h__ |
| |
|
102 |
|
| |
|
103 |
|
| |
|
104 |
Display the particular program's version and usage message, |
| |
|
105 |
including a synopsis of the options it understands. This |
| |
|
106 |
option is understood by all the source package |
| |
|
107 |
tools. |
| |
|
108 |
|
| |
|
109 |
|
| |
|
110 |
__-v__''version'' |
| |
|
111 |
|
| |
|
112 |
|
| |
|
113 |
In __dpkg-buildpackage__, __dpkg-genchanges__ and |
| |
|
114 |
__dpkg-parsechangelog__ this causes changelog information |
| |
|
115 |
from all versions strictly later than ''version'' (which |
| |
|
116 |
must appear in the changelog file) to be used. |
| |
|
117 |
|
| |
|
118 |
|
| |
|
119 |
In __dpkg-gencontrol__ it sets the version number of the |
| |
|
120 |
binary package which will be generated. |
| |
|
121 |
|
| |
|
122 |
|
| |
|
123 |
__-C__''changesdescription'' |
| |
|
124 |
|
| |
|
125 |
|
| |
|
126 |
Read the description of the changes from the file |
| |
|
127 |
''changesdescription'' rather than using the information |
| |
|
128 |
from the source tree's changelog file. This is understood by |
| |
|
129 |
__dpkg-buildpackage__ and |
| |
|
130 |
__dpkg-genchanges__. |
| |
|
131 |
|
| |
|
132 |
|
| |
|
133 |
__-m__''maintaineraddress'' |
| |
|
134 |
|
| |
|
135 |
|
| |
|
136 |
Use ''maintaineraddress'' as the name and email address |
| |
|
137 |
of the maintainer for this package, rather than using the |
| |
|
138 |
information from the source tree's control. This is |
| |
|
139 |
understood by __dpkg-buildpackage__ and |
| |
|
140 |
__dpkg-genchanges__. |
| |
|
141 |
|
| |
|
142 |
|
| |
|
143 |
__-e__''maintaineraddress'' |
| |
|
144 |
|
| |
|
145 |
|
| |
|
146 |
Use ''maintaineraddress'' as the name and email address |
| |
|
147 |
of the maintainer for this upload, rather than using the |
| |
|
148 |
information from the source tree's changelog. This is |
| |
|
149 |
understood by __dpkg-buildpackage__ and |
| |
|
150 |
__dpkg-genchanges__. |
| |
|
151 |
|
| |
|
152 |
|
| |
|
153 |
__-si__, __-sa__, __-sd__ |
| |
|
154 |
|
| |
|
155 |
|
| |
|
156 |
These options control whether the original source archive is |
| |
|
157 |
included in the upload generated by __dpkg-buildpackage__ |
| |
|
158 |
and __dpkg-genchanges__ if any source is being generated |
| |
|
159 |
(ie, __-b__ or __-B__ haven't been used). |
| |
|
160 |
|
| |
|
161 |
|
| |
|
162 |
By default, or if __-si__ is specified, the original |
| |
|
163 |
source will be included if the version number ends in |
| |
|
164 |
__-0__ or __-1__, ie if the Debian revision part of |
| |
|
165 |
the version number is __0__ or __1__. |
| |
|
166 |
|
| |
|
167 |
|
| |
|
168 |
__-sa__ forces the inclusion of the original source; |
| |
|
169 |
__-sd__ forces its exclusion and includes only the |
| |
|
170 |
diff. |
| |
|
171 |
|
| |
|
172 |
|
| |
|
173 |
__-V__''name''__=__''value'' |
| |
|
174 |
|
| |
|
175 |
|
| |
|
176 |
Set an output substitution variable. This option is |
| |
|
177 |
understood by __dpkg-source__, __dpkg-gencontrol__ and |
| |
|
178 |
__dpkg-genchanges__. See below for a discussion of output |
| |
|
179 |
substitution. |
| |
|
180 |
|
| |
|
181 |
|
| |
|
182 |
__-T__''substvarsfile'' |
| |
|
183 |
|
| |
|
184 |
|
| |
|
185 |
Read (or, for __dpkg-shlibdeps__, write) substitution |
| |
|
186 |
variables in ''substvarsfile''; the default is |
| |
|
187 |
__debian/substvars__. This option is understood by |
| |
|
188 |
__dpkg-source__, __dpkg-gencontrol__, |
| |
|
189 |
__dpkg-shlibdeps__ and |
| |
|
190 |
__dpkg-genchanges__. |
| |
|
191 |
|
| |
|
192 |
|
| |
|
193 |
__-D__''field''__=__''value'' |
| |
|
194 |
|
| |
|
195 |
|
| |
|
196 |
Override or add an output control file field. This option is |
| |
|
197 |
understood by __dpkg-source__, __dpkg-gencontrol__ and |
| |
|
198 |
__dpkg-genchanges__. |
| |
|
199 |
|
| |
|
200 |
|
| |
|
201 |
__-U__''field'' |
| |
|
202 |
|
| |
|
203 |
|
| |
|
204 |
Remove an output control file field. This option is |
| |
|
205 |
understood by __dpkg-source__, __dpkg-gencontrol__ and |
| |
|
206 |
__dpkg-genchanges__. |
| |
|
207 |
|
| |
|
208 |
|
| |
|
209 |
__-b__|__-B__|__-S__ |
| |
|
210 |
|
| |
|
211 |
|
| |
|
212 |
For __dpkg-genchanges__ and __dpkg-buildpackage -b__ |
| |
|
213 |
and __-B__ specify that a binary-only build is taking |
| |
|
214 |
place. __-b__ indicates that no source files are to be |
| |
|
215 |
built and/or distributed, and __-B__ that no |
| |
|
216 |
architecture-independent binary package files are to be |
| |
|
217 |
distributed either. __-S__ specifies that only the source |
| |
|
218 |
should be uploaded and no binary packages need to be made. |
| |
|
219 |
The distinction between __-b__ and __-B__ is only used |
| |
|
220 |
by __dpkg-buildpackage__; __dpkg-genchanges__ just |
| |
|
221 |
produces a __.changes__ file for whatever files were |
| |
|
222 |
produced by the __binary-*__ target(s) of the package |
| |
|
223 |
being built. |
| |
|
224 |
|
| |
|
225 |
|
| |
|
226 |
__-b__ tells __dpkg-source__ to build a source package |
| |
|
227 |
(rather than to extract one) - see below. |
| |
|
228 |
|
| |
|
229 |
|
| |
|
230 |
__-c__''controlfile'' |
| |
|
231 |
|
| |
|
232 |
|
| |
|
233 |
Specifies the main source control file to read information |
| |
|
234 |
from. The default is __debian/control__. This option is |
| |
|
235 |
understood by __dpkg-source__, __dpkg-gencontrol__ and |
| |
|
236 |
__dpkg-genchanges__. |
| |
|
237 |
|
| |
|
238 |
|
| |
|
239 |
__-l__''changelogfile'' |
| |
|
240 |
|
| |
|
241 |
|
| |
|
242 |
Specifies the change log file to read information from. The |
| |
|
243 |
default is __debian/changelog__. This option is |
| |
|
244 |
understood by __dpkg-source__, __dpkg-gencontrol__ and |
| |
|
245 |
__dpkg-genchanges__. |
| |
|
246 |
|
| |
|
247 |
|
| |
|
248 |
__-f__''fileslistfile'' |
| |
|
249 |
|
| |
|
250 |
|
| |
|
251 |
Read or write the list of files to be uploaded here, rather |
| |
|
252 |
than using __debian/files__. This option is understood by |
| |
|
253 |
__dpkg-gencontrol__, __dpkg-genchanges__ and |
| |
|
254 |
__dpkg-distaddfile__. |
| |
|
255 |
|
| |
|
256 |
|
| |
|
257 |
__-F__''changelogformat'' |
| |
|
258 |
|
| |
|
259 |
|
| |
|
260 |
Specifies the format of the changelog. By default the format |
| |
|
261 |
is read from a special line near the bottom of the changelog |
| |
|
262 |
(see the Debian packaging manual) or failing that defaults |
| |
|
263 |
to __debian__, the standard format described in the |
| |
|
264 |
''Debian packaging manual''. This option is understood by |
| |
|
265 |
__dpkg-source__, __dpkg-gencontrol__ and |
| |
|
266 |
__dpkg-genchanges__. |
| |
|
267 |
|
| |
|
268 |
|
| |
|
269 |
__-W__ |
| |
|
270 |
|
| |
|
271 |
|
| |
|
272 |
This option turns certain errors into warnings. Only |
| |
|
273 |
dpkg-source uses this, but __dpkg-buildpackage__ |
| |
|
274 |
recognizes it, and passes it thru to |
| |
|
275 |
__dpkg-source__. |
| |
|
276 |
|
| |
|
277 |
|
| |
|
278 |
__-E__ |
| |
|
279 |
|
| |
|
280 |
|
| |
|
281 |
This option negates a previously set __-W__. It is |
| |
|
282 |
currently only understood by __dpkg-buildpackage__ and |
| |
|
283 |
__dpkg-source__. |
| |
|
284 |
!!DPKG-SOURCE OPTIONS |
| |
|
285 |
|
| |
|
286 |
|
| |
|
287 |
When the common options __-c__ and __-l__ are given |
| |
|
288 |
with relative pathnames these are interpreted starting at |
| |
|
289 |
the source tree's top level directory. |
| |
|
290 |
|
| |
|
291 |
|
| |
|
292 |
__-x__ |
| |
|
293 |
|
| |
|
294 |
|
| |
|
295 |
Extract a source package. One non-option argument should be |
| |
|
296 |
supplied, the name of the Debian source control file |
| |
|
297 |
(__.dsc__). No options are useful with __dpkg-source |
| |
|
298 |
-x__. __dpkg-source__ will read the names of the other |
| |
|
299 |
file(s) making up the source package from the control file; |
| |
|
300 |
they are assumed to be in the same directory as the |
| |
|
301 |
__.dsc__. |
| |
|
302 |
|
| |
|
303 |
|
| |
|
304 |
The files in the extracted package will have their |
| |
|
305 |
permissions and ownerships set to those which would have |
| |
|
306 |
been expected if the files and directories had simply been |
| |
|
307 |
created - directories and executable files will be 0777 and |
| |
|
308 |
plain files will be 0666, both modified by the extractors' |
| |
|
309 |
umask; if the parent directory is setgid then the extracted |
| |
|
310 |
directories will be too, and all the files and directories |
| |
|
311 |
will inherit its group ownership. |
| |
|
312 |
|
| |
|
313 |
|
| |
|
314 |
__-b__ |
| |
|
315 |
|
| |
|
316 |
|
| |
|
317 |
Build: pack up a source tree. One or two non-option |
| |
|
318 |
arguments should be supplied. The first is taken as the name |
| |
|
319 |
of the directory containing the unpacked source tree. If a |
| |
|
320 |
second argument is supplied it should be the name of the |
| |
|
321 |
original source directory or tarfile or the empty string if |
| |
|
322 |
the package is a Debian-specific one and so has no |
| |
|
323 |
Debianisation diffs. If no second argument is supplied then |
| |
|
324 |
__dpkg-source__ will look for the original source tarfile |
| |
|
325 |
''package''_____''upstream-version''__.orig.tar.gz__ |
| |
|
326 |
or the original source directory |
| |
|
327 |
''directory''__.orig__ or the empty string (no |
| |
|
328 |
original source, and so no diff) depending on the |
| |
|
329 |
arguments. |
| |
|
330 |
|
| |
|
331 |
|
| |
|
332 |
__-i[[__ |
| |
|
333 |
|
| |
|
334 |
|
| |
|
335 |
You may specify a perl regular expression to match files you |
| |
|
336 |
want filtered out of the list of files for the diff. (This |
| |
|
337 |
list is generated by a find command.) __-i__ by itself |
| |
|
338 |
enables the option, with a default that will filter out CVS, |
| |
|
339 |
RCS and libtool .deps subdirectories, and all files within |
| |
|
340 |
them, as well as ~ suffixed backup files and |
| |
|
341 |
DEADJOEs. |
| |
|
342 |
|
| |
|
343 |
|
| |
|
344 |
This is very helpful in cutting out extraneous files that |
| |
|
345 |
get included in the .diff.gz, (eg: |
| |
|
346 |
cvs-buildpackage(1)'', it is |
| |
|
347 |
necessary to perform an extra checkout/update into a |
| |
|
348 |
directory you keep pristine, to generate the .orig.tar.gz |
| |
|
349 |
from. That directory will have CVS/Entries files in it that |
| |
|
350 |
will contain timestamps that differ from the ones in your |
| |
|
351 |
working directory, thus causing them to be unnecessarily |
| |
|
352 |
included in every .diff.gz, unless you use the __-i__ |
| |
|
353 |
switch. |
| |
|
354 |
|
| |
|
355 |
|
| |
|
356 |
__-sa__,__-sp__,__-su__,__-sk__,__-sA__,__-sP__,__-sU__,__-sK__,__-ss__ |
| |
|
357 |
with __-b__ |
| |
|
358 |
|
| |
|
359 |
|
| |
|
360 |
If __-sk__ or __-sp__ is specified __dpkg-source__ |
| |
|
361 |
expects the original source as a tarfile, by default |
| |
|
362 |
''package''_____''upstream-version''__.orig.tar.gz__. |
| |
|
363 |
It will leave this original source in place as a tarfile, or |
| |
|
364 |
copy it to the current directory if it isn't already there |
| |
|
365 |
If __-sp__ is used rather than __-sk__ it will remove |
| |
|
366 |
it again afterwards. |
| |
|
367 |
|
| |
|
368 |
|
| |
|
369 |
If __-su__ or __-sr__ is specified the original source |
| |
|
370 |
is expected as a directory, by default |
| |
|
371 |
''package''__-__''upstream-version''__.orig__ |
| |
|
372 |
and __dpkg-source__ will create a new original source |
| |
|
373 |
archive from it. If __-sr__ is used __dpkg-source will |
| |
|
374 |
remove that directory after it has been |
| |
|
375 |
used.__ |
| |
|
376 |
|
| |
|
377 |
|
| |
|
378 |
If __-ss__ is specified __dpkg-source__ will expect |
| |
|
379 |
that the original source is available both as a directory |
| |
|
380 |
and as a tarfile. If will use the directory to create the |
| |
|
381 |
diff, but the tarfile to create the __.dsc__. This option |
| |
|
382 |
must be used with care - if the directory and tarfile do not |
| |
|
383 |
match a bad source archive will be generated. |
| |
|
384 |
|
| |
|
385 |
|
| |
|
386 |
If __-sn__ is specified __dpkg-source__ will not look |
| |
|
387 |
for any original source, and will not generate a diff. The |
| |
|
388 |
second argument, if supplied, must be the empty string. This |
| |
|
389 |
is used for Debian-specific packages which do not have a |
| |
|
390 |
separate upstream source and therefore have no debianisation |
| |
|
391 |
diffs. |
| |
|
392 |
|
| |
|
393 |
|
| |
|
394 |
If __-sa__ or __-sA__ is specified __dpkg-source__ |
| |
|
395 |
will look for the original source archive as a tarfile or as |
| |
|
396 |
a directory - the second argument, if any, may be either, or |
| |
|
397 |
the empty string (this is equivalent to using __-sn__). |
| |
|
398 |
If a tarfile is found it will unpack it to create the diff |
| |
|
399 |
and remove it afterwards (this is equivalent to __-sp__); |
| |
|
400 |
if a directory is found it will pack it to create the |
| |
|
401 |
original source and remove it afterwards (this is equivalent |
| |
|
402 |
to __-sr__); if neither is found it will assume that the |
| |
|
403 |
package has no debianisation diffs, only a straightforward |
| |
|
404 |
source archive (this is equivalent to __-sn__). If both |
| |
|
405 |
are found then dpkg-source will ignore the directory, |
| |
|
406 |
overwriting it, if __-sA__ was specified (this is |
| |
|
407 |
equivalent to __-sP__) or raise an error if __-sa__ |
| |
|
408 |
was specified. __-sA__ is the default. |
| |
|
409 |
|
| |
|
410 |
|
| |
|
411 |
__-sa__, __-sp__, __-sk__, __-su__ and |
| |
|
412 |
__-sr__ will not overwrite existing tarfiles or |
| |
|
413 |
directories. If this is desired then __-sA__, __-sP__, |
| |
|
414 |
__-sK__, __-su__ and __-sR__ should be used |
| |
|
415 |
instead. |
| |
|
416 |
|
| |
|
417 |
|
| |
|
418 |
__-sp__,__-su__,__-sn__ with __-x__ |
| |
|
419 |
|
| |
|
420 |
|
| |
|
421 |
In all cases any existing original source tree will be |
| |
|
422 |
removed. |
| |
|
423 |
|
| |
|
424 |
|
| |
|
425 |
If __-sp__ is used when extracting then the original |
| |
|
426 |
source (if any) will be left as a tarfile. If it is not |
| |
|
427 |
already located in the current directory or if an existing |
| |
|
428 |
but different file is there it will be copied there. This is |
| |
|
429 |
the default. |
| |
|
430 |
|
| |
|
431 |
|
| |
|
432 |
__-su__ unpacks the original source tree. |
| |
|
433 |
|
| |
|
434 |
|
| |
|
435 |
__-sn__ ensures that the original source is neither |
| |
|
436 |
copied to the current directory nor unpacked. Any original |
| |
|
437 |
source tree that was in the current directory is still |
| |
|
438 |
removed. |
| |
|
439 |
!!DPKG-GENCONTROL OPTIONS |
| |
|
440 |
|
| |
|
441 |
|
| |
|
442 |
__dpkg-gencontrol__ does not take any non-option |
| |
|
443 |
arguments. |
| |
|
444 |
|
| |
|
445 |
|
| |
|
446 |
__-p__''package'' |
| |
|
447 |
|
| |
|
448 |
|
| |
|
449 |
Generate information for the binary package ''package''. |
| |
|
450 |
If the source control file lists only one binary package |
| |
|
451 |
then this option may be omitted; otherwise it is essential |
| |
|
452 |
to select which binary package's information to |
| |
|
453 |
generate. |
| |
|
454 |
|
| |
|
455 |
|
| |
|
456 |
__-n__''filename'' |
| |
|
457 |
|
| |
|
458 |
|
| |
|
459 |
Assume the filename of the package will be ''filename'' |
| |
|
460 |
instead of the normal package_version_arch.deb |
| |
|
461 |
filename. |
| |
|
462 |
|
| |
|
463 |
|
| |
|
464 |
__-is__, __-ip__, __-isp__ |
| |
|
465 |
|
| |
|
466 |
|
| |
|
467 |
Include the __Section__ and __Priority__ fields for |
| |
|
468 |
this package from the main source control file in the binary |
| |
|
469 |
package control file being generated. Usually this |
| |
|
470 |
information is not included here, but only in the |
| |
|
471 |
__.changes__ file. __-isp__ includes both fields, |
| |
|
472 |
__-is__ only the __Section__ and __-ip__ only the |
| |
|
473 |
__Priority__. |
| |
|
474 |
|
| |
|
475 |
|
| |
|
476 |
__-P__''packagebuilddir'' |
| |
|
477 |
|
| |
|
478 |
|
| |
|
479 |
Tells __dpkg-source__ that the package is being built in |
| |
|
480 |
''packagebuilddir'' instead of __debian/tmp__. This |
| |
|
481 |
value is used to find the default value of the |
| |
|
482 |
__Installed-Size__ substitution variable and control file |
| |
|
483 |
field (using __du__), and for the default location of the |
| |
|
484 |
output file. |
| |
|
485 |
|
| |
|
486 |
|
| |
|
487 |
__-O__ |
| |
|
488 |
|
| |
|
489 |
|
| |
|
490 |
Causes the control file to be printed to standard output, |
| |
|
491 |
rather than to __debian/tmp/DEBIAN/control__ (or |
| |
|
492 |
''packagebuilddir''__/DEBIAN/control__ if __-P__ |
| |
|
493 |
was used). |
| |
|
494 |
!!DPKG-SHLIBDEPS OPTIONS |
| |
|
495 |
|
| |
|
496 |
|
| |
|
497 |
__dpkg-shlibdeps__ interprets non-option arguments as |
| |
|
498 |
executable names, just as if they'd been supplied as |
| |
|
499 |
__-e__''executable''. |
| |
|
500 |
|
| |
|
501 |
|
| |
|
502 |
__-e__''executable'' |
| |
|
503 |
|
| |
|
504 |
|
| |
|
505 |
Include dependencies appropriate for the shared libraries |
| |
|
506 |
required by ''executable''. |
| |
|
507 |
|
| |
|
508 |
|
| |
|
509 |
__-d__''dependencyfield'' |
| |
|
510 |
|
| |
|
511 |
|
| |
|
512 |
Add dependencies to be added to the control file dependency |
| |
|
513 |
field ''dependencyfield''. (The dependencies for this |
| |
|
514 |
field are placed in the variable |
| |
|
515 |
__shlibs:__''dependencyfield''.) |
| |
|
516 |
|
| |
|
517 |
|
| |
|
518 |
The __-d__''dependencyfield'' option takes effect for |
| |
|
519 |
all executables after the option, until the next |
| |
|
520 |
__-d__''dependencyfield''. The default |
| |
|
521 |
''dependencyfield'' is __Depends__. |
| |
|
522 |
|
| |
|
523 |
|
| |
|
524 |
If the same dependency entry (or set of alternatives) |
| |
|
525 |
appears in more than one of the recognised dependency field |
| |
|
526 |
names __Pre-Depends__, __Depends__, __Recommends__, |
| |
|
527 |
__Enhances__ or __Suggests__ then |
| |
|
528 |
__dpkg-shlibdeps__ will automatically remove the |
| |
|
529 |
dependency from all fields except the one representing the |
| |
|
530 |
most important dependencies. |
| |
|
531 |
|
| |
|
532 |
|
| |
|
533 |
__-p__''varnameprefix'' |
| |
|
534 |
|
| |
|
535 |
|
| |
|
536 |
Causes substitution variables to start with |
| |
|
537 |
''varnameprefix''__:__ instead of __shlib:__. |
| |
|
538 |
Likewise, any existing substitution variables starting with |
| |
|
539 |
''varnameprefix''__:__ (rather than __shlib:__) are |
| |
|
540 |
removed from the the substitution variables |
| |
|
541 |
file. |
| |
|
542 |
|
| |
|
543 |
|
| |
|
544 |
__-L__''localshlibsfile'' |
| |
|
545 |
|
| |
|
546 |
|
| |
|
547 |
Causes __dpkg-shlibs__ to read overriding shared library |
| |
|
548 |
dependency information from ''localshlibsfile'' instead |
| |
|
549 |
of __debian/shlibs.local__. |
| |
|
550 |
|
| |
|
551 |
|
| |
|
552 |
__-O__ |
| |
|
553 |
|
| |
|
554 |
|
| |
|
555 |
Causes the substitution variable settings to be printed to |
| |
|
556 |
standard output, rather than being added to the substitution |
| |
|
557 |
variables file (__debian/substvars__ by |
| |
|
558 |
default). |
| |
|
559 |
!!DPKG-GENCHANGES OPTIONS |
| |
|
560 |
|
| |
|
561 |
|
| |
|
562 |
__dpkg-genchanges__ does not take any non-option |
| |
|
563 |
arguments. |
| |
|
564 |
|
| |
|
565 |
|
| |
|
566 |
__-u__''uploadfilesdir'' |
| |
|
567 |
|
| |
|
568 |
|
| |
|
569 |
Look for the files to be uploaded in ''uploadfilesdir'' |
| |
|
570 |
rather than __..__ (__dpkg-genchanges__ needs to find |
| |
|
571 |
these files so that it can include their sizes and checksums |
| |
|
572 |
in the __.changes__ file). |
| |
|
573 |
|
| |
|
574 |
|
| |
|
575 |
__-q__ |
| |
|
576 |
|
| |
|
577 |
|
| |
|
578 |
Usually __dpkg-genchanges__ will produce informative |
| |
|
579 |
messages on standard error, for example about how many of |
| |
|
580 |
the package's source files are being uploaded. __-q__ |
| |
|
581 |
suppresses these messages. |
| |
|
582 |
!!DPKG-BUILDPACKAGE OPTIONS |
| |
|
583 |
|
| |
|
584 |
|
| |
|
585 |
__dpkg-buildpackage__ does not take any non-option |
| |
|
586 |
arguments. |
| |
|
587 |
|
| |
|
588 |
|
| |
|
589 |
__-k__''key-id'' |
| |
|
590 |
|
| |
|
591 |
|
| |
|
592 |
Specify a key-ID to use when signing packages. |
| |
|
593 |
|
| |
|
594 |
|
| |
|
595 |
__-r__''gain-root-command'' |
| |
|
596 |
|
| |
|
597 |
|
| |
|
598 |
When __dpkg-buildpackage__ needs to execute part of the |
| |
|
599 |
build process as root, it prefixes the command it executes |
| |
|
600 |
with ''gain-root-command'' if one has been specified. |
| |
|
601 |
''gain-root-command'' should be the name of a program on |
| |
|
602 |
the __PATH__ and will get as arguments the name of the |
| |
|
603 |
real command to run and the arguments it should take. |
| |
|
604 |
''gain-root-command'' should not contain spaces or any |
| |
|
605 |
other shell metacharacters. ''gain-root-command'' might |
| |
|
606 |
typically be __sudo__, __super__ or __really__. |
| |
|
607 |
__su__ is not suitable, since it requires a __-c__ |
| |
|
608 |
option to run a command and even then it can only invoke the |
| |
|
609 |
user's shell with __-c__ instead of passing arguments |
| |
|
610 |
individually to the command to be run. |
| |
|
611 |
|
| |
|
612 |
|
| |
|
613 |
__-p__''sign-command'' |
| |
|
614 |
|
| |
|
615 |
|
| |
|
616 |
When __dpkg-buildpackage__ needs to execute GPG or PGP to |
| |
|
617 |
sign a source control (__.dsc__) file or a |
| |
|
618 |
__.changes__ file it will run ''sign-command'' |
| |
|
619 |
(searching the __PATH__ if necessary) instead of |
| |
|
620 |
__pgp__. ''sign-command'' will get all the arguments |
| |
|
621 |
that __pgp__ would have gotten. If ''sign-command'' |
| |
|
622 |
takes its arguments in GPG rather than PGP style, you should |
| |
|
623 |
give the __-sgpg__ option. ''sign-command'' should not |
| |
|
624 |
contain spaces or any other shell |
| |
|
625 |
metacharacters. |
| |
|
626 |
|
| |
|
627 |
|
| |
|
628 |
__-tc__ |
| |
|
629 |
|
| |
|
630 |
|
| |
|
631 |
Clean the source tree (using ''gain-root-command'' |
| |
|
632 |
__debian/rules clean__) after the package has been |
| |
|
633 |
built. |
| |
|
634 |
|
| |
|
635 |
|
| |
|
636 |
__-us__, __-uc__ |
| |
|
637 |
|
| |
|
638 |
|
| |
|
639 |
Do not sign the source package or the .changes file, |
| |
|
640 |
respectively. |
| |
|
641 |
|
| |
|
642 |
|
| |
|
643 |
__-a__''architecture'' |
| |
|
644 |
|
| |
|
645 |
|
| |
|
646 |
Specify the Debian architecture we build for. The |
| |
|
647 |
architecture of the machine we build on is determined |
| |
|
648 |
automatically, and is also the default for the host |
| |
|
649 |
machine. |
| |
|
650 |
|
| |
|
651 |
|
| |
|
652 |
__-i[[__ |
| |
|
653 |
|
| |
|
654 |
|
| |
|
655 |
Passed unchanged to __dpkg-source__. |
| |
|
656 |
|
| |
|
657 |
|
| |
|
658 |
__-D__ |
| |
|
659 |
|
| |
|
660 |
|
| |
|
661 |
Check build dependencies and conflicts; abort if |
| |
|
662 |
unsatisfied. |
| |
|
663 |
|
| |
|
664 |
|
| |
|
665 |
__-d__ |
| |
|
666 |
|
| |
|
667 |
|
| |
|
668 |
Do not check build dependencies and conflicts. |
| |
|
669 |
|
| |
|
670 |
|
| |
|
671 |
__-nc__ |
| |
|
672 |
|
| |
|
673 |
|
| |
|
674 |
Do not clean the source tree(imlies -b). |
| |
|
675 |
!!DPKG-DISTADDFILE ARGUMENTS |
| |
|
676 |
|
| |
|
677 |
|
| |
|
678 |
__dpkg-distaddfile__ does not take any non-common |
| |
|
679 |
options. It takes three non-option arguments, the filename |
| |
|
680 |
and the section and priority for the __.changes__ |
| |
|
681 |
file. |
| |
|
682 |
|
| |
|
683 |
|
| |
|
684 |
The filename should be specified relative to the directory |
| |
|
685 |
where __dpkg-genchanges__ will expect to find the files, |
| |
|
686 |
usually __..__, rather than being a pathname relative to |
| |
|
687 |
the current directory when __dpkg-distaddfile__ is |
| |
|
688 |
run. |
| |
|
689 |
!!DPKG-PARSECHANGELOG ARGUMENTS |
| |
|
690 |
|
| |
|
691 |
|
| |
|
692 |
__dpkg-parsechangelog__ does not take any non-common |
| |
|
693 |
options or non-option arguments. |
| |
|
694 |
!!VARIABLE SUBSTITUTION |
| |
|
695 |
|
| |
|
696 |
|
| |
|
697 |
Before __dpkg-source__, __dpkg-gencontrol__ and |
| |
|
698 |
__dpkg-genchanges__ write their control information (to |
| |
|
699 |
the source control file __.dsc__ for __dpkg-source__ |
| |
|
700 |
and to standard output for __dpkg-gencontrol__ and |
| |
|
701 |
__dpkg-genchanges__) they perform some variable |
| |
|
702 |
substitutions on the output file. |
| |
|
703 |
|
| |
|
704 |
|
| |
|
705 |
A variable substitution has the form |
| |
|
706 |
__${__''variable-name''__}__. Variable names |
| |
|
707 |
consist of alphanumerics, hyphens and colons and start with |
| |
|
708 |
an alphanumeric. Variable substitutions are performed |
| |
|
709 |
repeatedly until none are left; the full text of the field |
| |
|
710 |
after the substitution is rescanned to look for more |
| |
|
711 |
substitutions. |
| |
|
712 |
|
| |
|
713 |
|
| |
|
714 |
After all the substitutions have been done each occurence of |
| |
|
715 |
the string __${}__ (which is not a legal substitution) is |
| |
|
716 |
replaced with a __$__ sign. |
| |
|
717 |
|
| |
|
718 |
|
| |
|
719 |
Variables can be set using the __-V__ common option. They |
| |
|
720 |
can be also specified in the file __debian/substvars__ |
| |
|
721 |
(or whatever other file is specified using the __-T__ |
| |
|
722 |
option). This file consists of lines of the form |
| |
|
723 |
''name''__=__''value''. Trailing whitespace on each |
| |
|
724 |
line, blank lines, and lines starting with a __#__ symbol |
| |
|
725 |
(comments) are ignored. |
| |
|
726 |
|
| |
|
727 |
|
| |
|
728 |
Additionally, the following standard variables are |
| |
|
729 |
available: |
| |
|
730 |
|
| |
|
731 |
|
| |
|
732 |
__Arch__ |
| |
|
733 |
|
| |
|
734 |
|
| |
|
735 |
The current build architecture (from __dpkg |
| |
|
736 |
--print-architecture__). |
| |
|
737 |
|
| |
|
738 |
|
| |
|
739 |
__Source-Version__ |
| |
|
740 |
|
| |
|
741 |
|
| |
|
742 |
The source package version (from the changelog |
| |
|
743 |
file). |
| |
|
744 |
|
| |
|
745 |
|
| |
|
746 |
__Installed-Size__ |
| |
|
747 |
|
| |
|
748 |
|
| |
|
749 |
The total size of the package's installed files. This value |
| |
|
750 |
is copied into the corresponding control file field; setting |
| |
|
751 |
it will modify the value of that field. If this variable |
| |
|
752 |
isn't set __dpkg-gencontrol__ will use __du -k |
| |
|
753 |
debian/tmp__ to find the default value. |
| |
|
754 |
|
| |
|
755 |
|
| |
|
756 |
__Extra-Size__ |
| |
|
757 |
|
| |
|
758 |
|
| |
|
759 |
Additional disk space used when the package is installed. If |
| |
|
760 |
this variable is set its value is added to that of the |
| |
|
761 |
__Installed-Size__ variable (whether set explicitly or |
| |
|
762 |
using the default value) before it is copied into the |
| |
|
763 |
__Installed-Size__ control file field. |
| |
|
764 |
|
| |
|
765 |
|
| |
|
766 |
__F:__''fieldname'' |
| |
|
767 |
|
| |
|
768 |
|
| |
|
769 |
The value of the output field ''fieldname'' (which must |
| |
|
770 |
be given in the canonical capitalisation). Setting these |
| |
|
771 |
variables has no effect other than on places where they are |
| |
|
772 |
expanded explicitly. |
| |
|
773 |
|
| |
|
774 |
|
| |
|
775 |
__Format__ |
| |
|
776 |
|
| |
|
777 |
|
| |
|
778 |
The __.changes__ file format version generated by this |
| |
|
779 |
version of the source packaging scripts. If you set this |
| |
|
780 |
variable the contents of the __Format__ field in the |
| |
|
781 |
__.changes__ file will change too. |
| |
|
782 |
|
| |
|
783 |
|
| |
|
784 |
__Newline__, __Space__, __Tab__ |
| |
|
785 |
|
| |
|
786 |
|
| |
|
787 |
These variables each hold the corresponding |
| |
|
788 |
character. |
| |
|
789 |
|
| |
|
790 |
|
| |
|
791 |
__shlibs:__''dependencyfield'' |
| |
|
792 |
|
| |
|
793 |
|
| |
|
794 |
Variable settings with names of this form are generated by |
| |
|
795 |
__dpkg-shlibdeps__ - see above. |
| |
|
796 |
|
| |
|
797 |
|
| |
|
798 |
If a variable is referred to but not defined it generates a |
| |
|
799 |
warning and an empty value is assumed. |
| |
|
800 |
!!FILES |
| |
|
801 |
|
| |
|
802 |
|
| |
|
803 |
__debian/control__ |
| |
|
804 |
|
| |
|
805 |
|
| |
|
806 |
The main source control information file, giving |
| |
|
807 |
version-independent information about the source package and |
| |
|
808 |
the binary packages it can produce. |
| |
|
809 |
|
| |
|
810 |
|
| |
|
811 |
__debian/changelog__ |
| |
|
812 |
|
| |
|
813 |
|
| |
|
814 |
The changelog file, used to obtain version-dependent |
| |
|
815 |
information about the source package, such as the urgency |
| |
|
816 |
and distribution of an upload, the changes made since a |
| |
|
817 |
particular release, and the source version number |
| |
|
818 |
itself. |
| |
|
819 |
|
| |
|
820 |
|
| |
|
821 |
__debian/files__ |
| |
|
822 |
|
| |
|
823 |
|
| |
|
824 |
The list of generated files which are part of the upload |
| |
|
825 |
being prepared. __dpkg-gencontrol__ adds the presumed |
| |
|
826 |
filenames of binary packages whose control files it |
| |
|
827 |
generates here; __dpkg-distaddfile__ can be used to add |
| |
|
828 |
additional files. __dpkg-genchanges__ reads the data here |
| |
|
829 |
when producing a __.changes__ file. |
| |
|
830 |
|
| |
|
831 |
|
| |
|
832 |
__debian/substvars__ |
| |
|
833 |
|
| |
|
834 |
|
| |
|
835 |
List of substitution variables and values. |
| |
|
836 |
|
| |
|
837 |
|
| |
|
838 |
__debian/shlibs.local__ |
| |
|
839 |
|
| |
|
840 |
|
| |
|
841 |
Package-local overriding shared library dependency |
| |
|
842 |
information. |
| |
|
843 |
|
| |
|
844 |
|
| |
|
845 |
__/etc/dpkg/shlibs.override__ |
| |
|
846 |
|
| |
|
847 |
|
| |
|
848 |
Per-system overriding shared library dependency |
| |
|
849 |
information. |
| |
|
850 |
|
| |
|
851 |
|
| |
|
852 |
__/etc/dpkg/shlibs.default__ |
| |
|
853 |
|
| |
|
854 |
|
| |
|
855 |
Per-system default shared library dependency |
| |
|
856 |
information. |
| |
|
857 |
!!BUGS |
| |
|
858 |
|
| |
|
859 |
|
| |
|
860 |
The point at which field overriding occurs compared to |
| |
|
861 |
certain standard output field settings is rather |
| |
|
862 |
confused. |
| |
|
863 |
|
| |
|
864 |
|
| |
|
865 |
The binary package entries in the __debian/files__ file |
| |
|
866 |
will be passed through variable substitution twice. This |
| |
|
867 |
should not matter, since __$__, __{__ and __}__ are |
| |
|
868 |
not legal in package names or version numbers. |
| |
|
869 |
|
| |
|
870 |
|
| |
|
871 |
It should be possible to specify spaces and shell |
| |
|
872 |
metacharacters in and initial arguments for |
| |
|
873 |
''gain-root-command'' and |
| |
|
874 |
''sign-command''. |
| |
|
875 |
!!SEE ALSO |
| |
|
876 |
|
| |
|
877 |
|
| |
|
878 |
''Debian packaging manual'','' |
| |
|
879 |
Debian policy manual'',__ |
| |
|
880 |
dpkg-deb__(1), dpkg(8), dselect(8), |
| |
|
881 |
gpg(1), pgp(1). |
| |
|
882 |
!!AUTHOR |
| |
|
883 |
|
| |
|
884 |
|
| |
|
885 |
The utilities and this manpage were written by Ian |
| |
|
886 |
Jackson. |
| |
|
887 |
!!COPYRIGHT |
| |
|
888 |
|
| |
|
889 |
|
| |
|
890 |
Copyright (C) 1995-1996 Ian Jackson |
| |
|
891 |
Copyright (C) 2000 Wichert Akkerman |
| |
|
892 |
This is free software; see the GNU General Public Licence |
| |
|
893 |
version 2 or later for copying conditions. There is NO |
| |
|
894 |
WARRANTY. See __/usr/share/doc/dpkg/copyright__ and |
| |
|
895 |
__/usr/share/common-licenses/GPL__ for |
| |
|
896 |
details. |
| |
|
897 |
---- |