Debian Codegraph @

manpages/debmake.1

raw
1 '\" t
2 .\" Title: debmake
3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.23
5 .\" Date: 2026-02-08
6 .\" Manual: Debmake Manual
7 .\" Source: DEBMAKE
8 .\" Language: English
9 .\"
10 .TH "DEBMAKE" "1" "2026-02-08" "DEBMAKE" "Debmake Manual"
11 .ie \n(.g .ds Aq \(aq
12 .el .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 . mso www.tmac
22 . am URL
23 . ad l
24 . .
25 . am MTO
26 . ad l
27 . .
28 . LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 debmake \- program to make a Debian source package
32 .SH "SYNOPSIS"
33 .sp
34 \fBdebmake\fP [\fB\-h\fP] [\fB\-n\fP] [\fB\-p\fP \fIpackage\fP] [\fB\-u\fP \fIversion\fP] [\fB\-r\fP \fIrevision\fP]
35 [\fB\-z\fP \fIextension\fP] [\fB\-b\fP "\fIbinarypackage\fP\fI[:type], ...\fP]"
36 [\fB\-D\fP \fIvalue\fP] [\fB\-e\fP \[email protected]\fP] [\fB\-f\fP "\fIfirstname lastname\fP"]
37 [\fB\-i\fP [\fBdebuild\fP|\fBsbuild\fP|\fBdgit sbuild\fP|\fBgbp buildpackage\fP|\fBdpkg\-buildpackage\fP| ...]]
38 [\fB\-m\fP] [\fB\-q\fP] [\fB\-v\fP] [\fB\-V\fP] [\fB\-w\fP \fI"addon, ..."\fP] [\fB\-x\fP [01234]] [\fB\-y\fP] [\fB\-B\fP]
39 [\fIURL\fP]
40 .SH "DESCRIPTION"
41 .sp
42 \fBdebmake\fP helps to build the Debian package from the upstream source.
43 .sp
44 Normally, this is done as follows:
45 .sp
46 .RS 4
47 .ie n \{\
48 \h'-04'\(bu\h'+03'\c
49 .\}
50 .el \{\
51 . sp -1
52 . IP \(bu 2.3
53 .\}
54 The upstream source is obtained as a tarball from a remote web site
55 or a cloned work tree using \(lq\fBgit clone\fP\(rq.
56 .sp
57 .RS 4
58 .ie n \{\
59 \h'-04'\(bu\h'+03'\c
60 .\}
61 .el \{\
62 . sp -1
63 . IP \(bu 2.3
64 .\}
65 For a tarball, it is expanded to many files in the source directory.
66 .RE
67 .sp
68 .RS 4
69 .ie n \{\
70 \h'-04'\(bu\h'+03'\c
71 .\}
72 .el \{\
73 . sp -1
74 . IP \(bu 2.3
75 .\}
76 For a cloned work tree, it is used as the source directory.
77 .RE
78 .RE
79 .sp
80 .RS 4
81 .ie n \{\
82 \h'-04'\(bu\h'+03'\c
83 .\}
84 .el \{\
85 . sp -1
86 . IP \(bu 2.3
87 .\}
88 debmake is typically invoked in the source directory without any
89 argument.
90 .sp
91 .RS 4
92 .ie n \{\
93 \h'-04'\(bu\h'+03'\c
94 .\}
95 .el \{\
96 . sp -1
97 . IP \(bu 2.3
98 .\}
99 The source directory is copied to ../\fIpackage\-version\fP/ directory.
100 .RE
101 .sp
102 .RS 4
103 .ie n \{\
104 \h'-04'\(bu\h'+03'\c
105 .\}
106 .el \{\
107 . sp -1
108 . IP \(bu 2.3
109 .\}
110 If ../\fIpackage_version\fP\fB.orig.tar.xz\fP is missing, it is generated.
111 .RE
112 .sp
113 .RS 4
114 .ie n \{\
115 \h'-04'\(bu\h'+03'\c
116 .\}
117 .el \{\
118 . sp -1
119 . IP \(bu 2.3
120 .\}
121 The current directory is moved to ../package\-version/.
122 .RE
123 .sp
124 .RS 4
125 .ie n \{\
126 \h'-04'\(bu\h'+03'\c
127 .\}
128 .el \{\
129 . sp -1
130 . IP \(bu 2.3
131 .\}
132 Template files are generated in the ../\fIpackage\-version\fP\fB/debian/\fP
133 directory
134 .RE
135 .RE
136 .sp
137 .RS 4
138 .ie n \{\
139 \h'-04'\(bu\h'+03'\c
140 .\}
141 .el \{\
142 . sp -1
143 . IP \(bu 2.3
144 .\}
145 Files in the ../\fIpackage\-version\fP\fB/debian/\fP directory should be manually
146 adjusted.
147 .RE
148 .sp
149 .RS 4
150 .ie n \{\
151 \h'-04'\(bu\h'+03'\c
152 .\}
153 .el \{\
154 . sp -1
155 . IP \(bu 2.3
156 .\}
157 \fBdpkg\-buildpackage\fP (usually from its wrapper \fBdebuild\fP, \fBsbuild\fP, ...) is
158 invoked in the ../\fIpackage\-version\fP/ directory to make Debian source
159 and binary packages.
160 .RE
161 .sp
162 Also, \fBdebmake\fP can be invoked with an argument. This argument can be \fIURL\fP
163 for a tarball hosted on a remote web site or for a source code accessed
164 by \(lq\fBgit clone\fP\(rq; or local \fIPATH\fP to the tarball or the source code.
165 .sp
166 Arguments to \fB\-b\fP, \fB\-f\fP, and \fB\-w\fP options need to be quoted to protect them from the shell.
167 .sp
168 Other tools also offer ways to obtain the upstream tarball and creating required symlink to build a Debian package depending on
169 your workflow. For example, \fBorigtargz\fP, \fBmk\-origtargz\fP, \fBgit\-deborig\fP, and \fBpristine\-tar\fP.
170 .SH "POSITIONAL ARGUMENTS"
171 .sp
172 \fIURL\fP
173 .RS 4
174 acquire the source tree from the tarball, the git repository or the source tree at this \fIURL\fP (or \fIPATH\fP) (if missing, the source tree uses the current directory)
175 .RE
176 .SH "OPTIONS"
177 .sp
178 \fB\-h\fP, \fB\-\-help\fP
179 .RS 4
180 show this help message and exit
181 .RE
182 .sp
183 \fB\-n\fP, \fB\-\-native\fP
184 make a native source package without \fB.orig.tar.xz\fP
185 .sp
186 \fB\-p\fP, \fB\-\-package package\fP
187 .RS 4
188 set the Debian package name
189 .RE
190 .sp
191 \fB\-u\fP, \fB\-\-upstreamversion\fP \fIversion\fP
192 .RS 4
193 set the upstream package version ("\fB@\fP" in \fIversion\fP is replaced by "\fB0~yymmddHHMM\fP" timestamp)
194 .RE
195 .sp
196 \fB\-r\fP, \fB\-\-revision\fP \fIrevision\fP
197 .RS 4
198 set the Debian package revision ("\fB@\fP" in \fIrevision\fP is replaced by "\fB0~yymmddHHMM\fP" timestamp)
199 .RE
200 .sp
201 \fB\-z\fP, \fB\-\-tarz\fP \fIextension\fP
202 .RS 4
203 set the tarball compression type for the missing upstream tarball, \fIextension\fP=(\fBtar.xz\fP|\fBtar.gz\fP|\fBtar.bz2\fP) (alias: \fBz\fP, \fBb\fP, \fBx\fP)
204 .RE
205 .sp
206 \fB\-b\fP, \fB\-\-binaryspec\fP \fI"binarypackage[:type], ..."\fP
207 .RS 4
208 set the binary package specs by a comma separated list of \fIbinarypackage:type\fP pairs. Here, \fIbinarypackage\fP is the binary package name, and the optional \fItype\fP is chosen from the following \fItype\fP values:
209 .sp
210 .RS 4
211 .ie n \{\
212 \h'-04'\(bu\h'+03'\c
213 .\}
214 .el \{\
215 . sp -1
216 . IP \(bu 2.3
217 .\}
218 \fBbin\fP: C/C++ compiled ELF binary code package (any, foreign) (default, alias: \fB""\fP, i.e., \fBnull\-string\fP)
219 .RE
220 .sp
221 .RS 4
222 .ie n \{\
223 \h'-04'\(bu\h'+03'\c
224 .\}
225 .el \{\
226 . sp -1
227 . IP \(bu 2.3
228 .\}
229 \fBdata\fP: Data (fonts, graphics, ...) package (all, foreign) (alias: \fBda\fP)
230 .RE
231 .sp
232 .RS 4
233 .ie n \{\
234 \h'-04'\(bu\h'+03'\c
235 .\}
236 .el \{\
237 . sp -1
238 . IP \(bu 2.3
239 .\}
240 \fBdev\fP: Library development package (any, same) (alias: \fBde\fP)
241 .RE
242 .sp
243 .RS 4
244 .ie n \{\
245 \h'-04'\(bu\h'+03'\c
246 .\}
247 .el \{\
248 . sp -1
249 . IP \(bu 2.3
250 .\}
251 \fBdoc\fP: Documentation package (all, foreign) (alias: \fBdo\fP)
252 .RE
253 .sp
254 .RS 4
255 .ie n \{\
256 \h'-04'\(bu\h'+03'\c
257 .\}
258 .el \{\
259 . sp -1
260 . IP \(bu 2.3
261 .\}
262 \fBlib\fP: Library package (any, same) (alias: \fBl\fP)
263 .RE
264 .sp
265 .RS 4
266 .ie n \{\
267 \h'-04'\(bu\h'+03'\c
268 .\}
269 .el \{\
270 . sp -1
271 . IP \(bu 2.3
272 .\}
273 \fBperl\fP: Perl script package (all, foreign) (alias: \fBpl\fP)
274 .RE
275 .sp
276 .RS 4
277 .ie n \{\
278 \h'-04'\(bu\h'+03'\c
279 .\}
280 .el \{\
281 . sp -1
282 . IP \(bu 2.3
283 .\}
284 \fBpython3\fP: Python (version 3) script package (all, foreign) (alias: \fBpy3\fP, \fBpython\fP, \fBpy\fP)
285 .RE
286 .sp
287 .RS 4
288 .ie n \{\
289 \h'-04'\(bu\h'+03'\c
290 .\}
291 .el \{\
292 . sp -1
293 . IP \(bu 2.3
294 .\}
295 \fBruby\fP: Ruby script package (all, foreign) (alias: \fBrb\fP)
296 .RE
297 .sp
298 .RS 4
299 .ie n \{\
300 \h'-04'\(bu\h'+03'\c
301 .\}
302 .el \{\
303 . sp -1
304 . IP \(bu 2.3
305 .\}
306 \fBnodejs\fP: Node.js based JavaScript package (all, foreign) (alias: \fBjs\fP)
307 .RE
308 .sp
309 .RS 4
310 .ie n \{\
311 \h'-04'\(bu\h'+03'\c
312 .\}
313 .el \{\
314 . sp -1
315 . IP \(bu 2.3
316 .\}
317 \fBscript\fP: Shell and other interpreted language script package (all, foreign) (alias: \fBsh\fP)
318 .RE
319 .sp
320 The pair values in the parentheses, such as (any, foreign), are the \fBArchitecture\fP and \fBMulti\-Arch\fP stanza values set in the \fBdebian/control\fP file. In many cases, the \fBdebmake\fP command makes good guesses for \fItype\fP from \fIbinarypackage\fP. If \fItype\fP is not obvious, \fItype\fP is set to \fBbin\fP.
321 .sp
322 Here are examples for typical binary package split scenarios where the upstream Debian source package name is \fBfoo\fP:
323 .sp
324 .RS 4
325 .ie n \{\
326 \h'-04'\(bu\h'+03'\c
327 .\}
328 .el \{\
329 . sp -1
330 . IP \(bu 2.3
331 .\}
332 Generating an executable binary package \fBfoo\fP:
333 .sp
334 .RS 4
335 .ie n \{\
336 \h'-04'\(bu\h'+03'\c
337 .\}
338 .el \{\
339 . sp -1
340 . IP \(bu 2.3
341 .\}
342 \(lq\fB\-b\(cqfoo:bin\*(Aq\fP\(rq, or its short form \(lq\fB\-b\*(Aq\-\*(Aq\fP\(rq, or no \fB\-b\fP option
343 .RE
344 .RE
345 .sp
346 .RS 4
347 .ie n \{\
348 \h'-04'\(bu\h'+03'\c
349 .\}
350 .el \{\
351 . sp -1
352 . IP \(bu 2.3
353 .\}
354 Generating an executable (python3) binary package \fBpython3\-foo\fP:
355 .sp
356 .RS 4
357 .ie n \{\
358 \h'-04'\(bu\h'+03'\c
359 .\}
360 .el \{\
361 . sp -1
362 . IP \(bu 2.3
363 .\}
364 \(lq\fB\-b\(cqpython3\-foo:py\*(Aq\fP\(rq, or its short form \(lq\fB\-b\(cqpython3\-foo\*(Aq\fP\(rq
365 .RE
366 .RE
367 .sp
368 .RS 4
369 .ie n \{\
370 \h'-04'\(bu\h'+03'\c
371 .\}
372 .el \{\
373 . sp -1
374 . IP \(bu 2.3
375 .\}
376 Generating a data package \fBfoo\fP:
377 .sp
378 .RS 4
379 .ie n \{\
380 \h'-04'\(bu\h'+03'\c
381 .\}
382 .el \{\
383 . sp -1
384 . IP \(bu 2.3
385 .\}
386 \(lq\fB\-b\(cqfoo:data\*(Aq\fP\(rq, or its short form \(lq\fB\-b\*(Aq\-:data\*(Aq\fP\(rq
387 .RE
388 .RE
389 .sp
390 .RS 4
391 .ie n \{\
392 \h'-04'\(bu\h'+03'\c
393 .\}
394 .el \{\
395 . sp -1
396 . IP \(bu 2.3
397 .\}
398 Generating a executable binary package \fBfoo\fP and a documentation one \fBfoo\-doc\fP:
399 .sp
400 .RS 4
401 .ie n \{\
402 \h'-04'\(bu\h'+03'\c
403 .\}
404 .el \{\
405 . sp -1
406 . IP \(bu 2.3
407 .\}
408 \(lq\fB\-b\(cqfoo:bin,foo\-doc:doc\*(Aq\fP\(rq, or its short form \(lq\fB\-b\*(Aq\-:\-doc\*(Aq\fP\(rq
409 .RE
410 .RE
411 .sp
412 .RS 4
413 .ie n \{\
414 \h'-04'\(bu\h'+03'\c
415 .\}
416 .el \{\
417 . sp -1
418 . IP \(bu 2.3
419 .\}
420 Generating a executable binary package \fBfoo\fP, a library package \fBlibfoo1\fP, and a library development package \fBlibfoo\-dev\fP:
421 .sp
422 .RS 4
423 .ie n \{\
424 \h'-04'\(bu\h'+03'\c
425 .\}
426 .el \{\
427 . sp -1
428 . IP \(bu 2.3
429 .\}
430 \(lq\fB\-b\(cqfoo:bin,libfoo1:lib,libfoo\-dev:dev\*(Aq\fP\(rq or its short form \(lq\fB\-b\*(Aq\-,libfoo1,libfoo\-dev\*(Aq\fP\(rq
431 .RE
432 .RE
433 .sp
434 If the source tree contents do not match settings for \fItype\fP, the \fBdebmake\fP command warns you.
435 .RE
436 .sp
437 \fB\-e\fP, \fB\-\-email\fP \[email protected]\fP
438 .RS 4
439 set e\-mail address
440 .sp
441 The default is taken from the value of the environment variable \fB$DEBEMAIL\fP.
442 .RE
443 .sp
444 \fB\-D\fP, \fB\-\-debug\fP \fIvalue\fP
445 .RS 4
446 set \fBDEBUG\fP environment variable to \fIvalue\fP for debug logging (substring of "\fBspPd\fP", use "\fB_\fP" to unset \fBDEBUG\fP)
447 .RE
448 .sp
449 \fB\-f\fP, \fB\-\-fullname\fP \fI"firstname lastname"\fP
450 .RS 4
451 set the fullname
452 .sp
453 The default is taken from the value of the environment variable \fB$DEBFULLNAME\fP.
454 .RE
455 .sp
456 \fB\-i\fP, \fB\-\-invoke\fP \fI[debuild|sbuild|dgit sbuild|gbp buildpackage|dpkg\-buildpackage| ...]\fP
457 .RS 4
458 invoke package build tool
459 .RE
460 .sp
461 \fB\-m\fP, \fB\-\-monoarch\fP
462 .RS 4
463 force packages to be non\-multiarch
464 .RE
465 .sp
466 \fB\-q\fP, \fB\-\-quitearly\fP
467 .RS 4
468 quit early before creating files in the debian directory
469 .RE
470 .sp
471 \fB\-v\fP, \fB\-\-version\fP
472 .RS 4
473 show version information
474 .RE
475 .sp
476 \fB\-V\fP, \fB\-\-verbose\fP
477 .RS 4
478 use \-\-verbose for shell commands if available
479 .RE
480 .sp
481 \fB\-w\fP, \fB\-\-with\fP \fI"addon ..."\fP
482 .RS 4
483 set additional \(lq\fBdh \-\-with\fP\(rq option arguments in \fBdebian/rules\fP
484 .sp
485 For Autotools based packages, if they install Python (version 3) programs, setting \fBpython3\fP as \fIaddon\fP to the \fBdebmake\fP command argument is needed since this is non\-obvious. But for \fBpyproject.toml\fP based Python packages, setting \fBpython3\fP as \fIaddon\fP to the \fBdebmake\fP command argument is not needed since this is obvious and the \fBdebmake\fP command automatically set it to the \fBdh\fP(1) command.
486 .RE
487 .sp
488 \fB\-x\fP, \fB\-\-extra\fP \fI[01234]\fP
489 .RS 4
490 generate extra configuration files as templates (default: 2)
491 .sp
492 Please note \fBdebian/changelog\fP, \fBdebian/control\fP, \fBdebian/copyright\fP, \fBdebian/rules\fP, and \fBdebian/source/format\fP are required configuration files to build a modern Debian binary package.
493 .sp
494 The number determines which configuration templates are generated.
495 .sp
496 .RS 4
497 .ie n \{\
498 \h'-04'\(bu\h'+03'\c
499 .\}
500 .el \{\
501 . sp -1
502 . IP \(bu 2.3
503 .\}
504 \fB\-x0\fP: all 5 required configuration template files. (selected option if any of these required files already exist)
505 .RE
506 .sp
507 .RS 4
508 .ie n \{\
509 \h'-04'\(bu\h'+03'\c
510 .\}
511 .el \{\
512 . sp -1
513 . IP \(bu 2.3
514 .\}
515 \fB\-x1\fP: all \fB\-x0\fP files + desirable configuration template files with binary package type supports.
516 .RE
517 .sp
518 .RS 4
519 .ie n \{\
520 \h'-04'\(bu\h'+03'\c
521 .\}
522 .el \{\
523 . sp -1
524 . IP \(bu 2.3
525 .\}
526 \fB\-x2\fP: all \fB\-x1\fP files + normal configuration template files with maintainer script supports. (default)
527 .RE
528 .sp
529 .RS 4
530 .ie n \{\
531 \h'-04'\(bu\h'+03'\c
532 .\}
533 .el \{\
534 . sp -1
535 . IP \(bu 2.3
536 .\}
537 \fB\-x3\fP: all \fB\-x2\fP files + optional configuration template files.
538 .RE
539 .sp
540 .RS 4
541 .ie n \{\
542 \h'-04'\(bu\h'+03'\c
543 .\}
544 .el \{\
545 . sp -1
546 . IP \(bu 2.3
547 .\}
548 \fB\-x4\fP: all \fB\-x3\fP files + deprecated configuration template files.
549 .RE
550 .RE
551 .sp
552 Some configuration template files are generated with the extra \fB.ex\fP suffix to ease their removal. To activate these, rename their file names to the ones without the \fB.ex\fP suffix and edit their contents.
553 Existing configuration files are never overwritten. If you wish to update some of the existing configuration files, please rename them before running the \fBdebmake\fP command and manually merge the generated configuration files with the old renamed ones.
554 .sp
555 \fB\-y\fP, \fB\-\-yes\fP
556 .RS 4
557 use once to \(lqforce yes\(rq for all prompts, twice to \(lqforce no\(rq
558 .RE
559 .sp
560 \fB\-B\fP, \fB\-\-backup\fP
561 .RS 4
562 keep the user editted ones without \fB.ex\fP suffix and create template files with \fB.ex\fP suffix
563 .RE
564 .SH "EXAMPLES"
565 .sp
566 For a well behaving source, you can build a good\-for\-local\-use installable single Debian binary package easily with one command. Test install of such a package generated in this way offers a good alternative to the traditional \(lq\fBmake install\fP\(rq command installing into the \fB/usr/local\fP directory since the Debian package can be removed cleanly by the \(lq\fBdpkg \-P\fP \*(Aq...\*(Aq\(rq command. Here are some examples of how to build such test packages.
567 .sp
568 For a typical C program source tree packaged with \fBautoconf\fP/\fBautomake\fP:
569 .sp
570 .RS 4
571 .ie n \{\
572 \h'-04'\(bu\h'+03'\c
573 .\}
574 .el \{\
575 . sp -1
576 . IP \(bu 2.3
577 .\}
578 \fBdebmake \-i sbuild\fP
579 .RE
580 .sp
581 For a typical Python (version 3) module source tree:
582 .sp
583 .RS 4
584 .ie n \{\
585 \h'-04'\(bu\h'+03'\c
586 .\}
587 .el \{\
588 . sp -1
589 . IP \(bu 2.3
590 .\}
591 \fBdebmake \-b":python3" \-i sbuild\fP
592 .RE
593 .sp
594 For a typical Python (version 3) module in the \fIpackage\-version\fP\fB.tar.xz\fP archive:
595 .sp
596 .RS 4
597 .ie n \{\
598 \h'-04'\(bu\h'+03'\c
599 .\}
600 .el \{\
601 . sp -1
602 . IP \(bu 2.3
603 .\}
604 \fBdebmake\fP \fIpackage\-version\fP\fB.tar.xz \-b":python3" \-i sbuild\fP
605 .RE
606 .sp
607 For a typical Perl module in the \fIpackage\-version\fP\fB.tar.xz\fP archive:
608 .sp
609 .RS 4
610 .ie n \{\
611 \h'-04'\(bu\h'+03'\c
612 .\}
613 .el \{\
614 . sp -1
615 . IP \(bu 2.3
616 .\}
617 \fBdebmake\fP \fIpackage\-version\fP\fB.tar.xz \-b":perl" \-i sbuild\fP
618 .RE
619 .SH "HELPER PACKAGES"
620 .sp
621 Packaging may require installation of some additional specialty helper packages.
622 .sp
623 .RS 4
624 .ie n \{\
625 \h'-04'\(bu\h'+03'\c
626 .\}
627 .el \{\
628 . sp -1
629 . IP \(bu 2.3
630 .\}
631 Python (version 3) programs may require the \fBpybuild\-plugin\-pyproject\fP package.
632 .RE
633 .sp
634 .RS 4
635 .ie n \{\
636 \h'-04'\(bu\h'+03'\c
637 .\}
638 .el \{\
639 . sp -1
640 . IP \(bu 2.3
641 .\}
642 The Autotools (\fBautoconf\fP + \fBautomake\fP) build system may require \fBautotools\-dev\fP or \fBdh\-autoreconf\fP package.
643 .RE
644 .sp
645 .RS 4
646 .ie n \{\
647 \h'-04'\(bu\h'+03'\c
648 .\}
649 .el \{\
650 . sp -1
651 . IP \(bu 2.3
652 .\}
653 Ruby programs may require the \fBgem2deb\fP package.
654 .RE
655 .sp
656 .RS 4
657 .ie n \{\
658 \h'-04'\(bu\h'+03'\c
659 .\}
660 .el \{\
661 . sp -1
662 . IP \(bu 2.3
663 .\}
664 Node.js based JavaScript programs may require the \fBpkg\-js\-tools\fP package.
665 .RE
666 .sp
667 .RS 4
668 .ie n \{\
669 \h'-04'\(bu\h'+03'\c
670 .\}
671 .el \{\
672 . sp -1
673 . IP \(bu 2.3
674 .\}
675 Java programs may require the \fBjavahelper\fP package.
676 .RE
677 .sp
678 .RS 4
679 .ie n \{\
680 \h'-04'\(bu\h'+03'\c
681 .\}
682 .el \{\
683 . sp -1
684 . IP \(bu 2.3
685 .\}
686 Gnome programs may require the \fBgobject\-introspection\fP package.
687 .RE
688 .sp
689 .RS 4
690 .ie n \{\
691 \h'-04'\(bu\h'+03'\c
692 .\}
693 .el \{\
694 . sp -1
695 . IP \(bu 2.3
696 .\}
697 etc.
698 .RE
699 .SH "CAVEAT"
700 .sp
701 Although \fBdebmake\fP is meant to provide template files for the package maintainer to work on, actual packaging activities are often performed without using \fBdebmake\fP while referencing only existing similar packages and \(lq\c
702 .URL "https://www.debian.org/doc/debian\-policy/" "Debian Policy Manual" "\(rq."
703 All template files generated by \fBdebmake\fP are required to be modified manually.
704 .sp
705 There are some points for \fBdebmake\fP:
706 .sp
707 .RS 4
708 .ie n \{\
709 \h'-04'\(bu\h'+03'\c
710 .\}
711 .el \{\
712 . sp -1
713 . IP \(bu 2.3
714 .\}
715 \fBdebmake\fP helps to write terse packaging tutorial \(lq\c
716 .URL "https://www.debian.org/doc/manuals/debmake\-doc/" "Guide for Debian Maintainers" "\(rq"
717 (\fBdebmake\-doc\fP package).
718 .RE
719 .sp
720 .RS 4
721 .ie n \{\
722 \h'-04'\(bu\h'+03'\c
723 .\}
724 .el \{\
725 . sp -1
726 . IP \(bu 2.3
727 .\}
728 \fBdebmake\fP provides short extracted license texts as \fBdebian/copyright\fP in decent accuracy to help license review.
729 .RE
730 .sp
731 .RS 4
732 .ie n \{\
733 \h'-04'\(bu\h'+03'\c
734 .\}
735 .el \{\
736 . sp -1
737 . IP \(bu 2.3
738 .\}
739 \(lqGuide for Debian Maintainers\(rq also serves as a tutorial with examples for the usage of debmake.
740 .RE
741 .sp
742 .RS 4
743 .ie n \{\
744 \h'-04'\(bu\h'+03'\c
745 .\}
746 .el \{\
747 . sp -1
748 . IP \(bu 2.3
749 .\}
750 \fBdebmake\fP internally calls \fBlicensecheck\fP from the \fBlicensecheck\fP package to create \fBdebian/copyright\fP if it doesn\(cqt exist.
751 .RE
752 .sp
753 .RS 4
754 .ie n \{\
755 \h'-04'\(bu\h'+03'\c
756 .\}
757 .el \{\
758 . sp -1
759 . IP \(bu 2.3
760 .\}
761 \fBdebmake\fP internally calls \fBlrc\fP from the \fBlicenserecon\fP package to verify \fBdebian/copyright\fP if it already exists.
762 .RE
763 .sp
764 There are some limitations for what characters may be used as a part of the Debian package. The most notable limitation is the prohibition of uppercase letters in the package name. Here is a summary as a set of regular expressions:
765 .sp
766 .RS 4
767 .ie n \{\
768 \h'-04'\(bu\h'+03'\c
769 .\}
770 .el \{\
771 . sp -1
772 . IP \(bu 2.3
773 .\}
774 Upstream package name (\fB\-p\fP): \f(CR[\-+.a\-z0\-9]{2,}\fP
775 .RE
776 .sp
777 .RS 4
778 .ie n \{\
779 \h'-04'\(bu\h'+03'\c
780 .\}
781 .el \{\
782 . sp -1
783 . IP \(bu 2.3
784 .\}
785 Binary package name (\fB\-b\fP): \f(CR[\-+.a\-z0\-9]{2,}\fP
786 .RE
787 .sp
788 .RS 4
789 .ie n \{\
790 \h'-04'\(bu\h'+03'\c
791 .\}
792 .el \{\
793 . sp -1
794 . IP \(bu 2.3
795 .\}
796 Upstream version (\fB\-u\fP): \f(CR[0\-9][\-+.:~a\-z0\-9A\-Z]*\fP
797 .RE
798 .sp
799 .RS 4
800 .ie n \{\
801 \h'-04'\(bu\h'+03'\c
802 .\}
803 .el \{\
804 . sp -1
805 . IP \(bu 2.3
806 .\}
807 Debian revision (\fB\-r\fP): \f(CR[0\-9][+.~a\-z0\-9A\-Z]*\fP
808 .RE
809 .sp
810 See the exact definition in \(lq\c
811 .URL "https://www.debian.org/doc/debian\-policy/#document\-ch\-controlfields" "Chapter 5 \- Control files and their fields" "\(rq"
812 in the \(lqDebian Policy Manual\(rq.
813 .sp
814 \fBdebmake\fP assumes relatively simple packaging cases. So all programs related to the interpreter are assumed to be \(lq\fBArchitecture: all\fP\(rq. This is not always true.
815 .SH "DEBUG"
816 .sp
817 Please report bugs to the \fBdebmake\fP package using the \fBreportbug\fP command.
818 .sp
819 The character set in the environment variable \fB$DEBUG\fP determines the logging output level.
820 .sp
821 .RS 4
822 .ie n \{\
823 \h'-04'\(bu\h'+03'\c
824 .\}
825 .el \{\
826 . sp -1
827 . IP \(bu 2.3
828 .\}
829 \fBs\fP: program progress logging
830 .RE
831 .sp
832 .RS 4
833 .ie n \{\
834 \h'-04'\(bu\h'+03'\c
835 .\}
836 .el \{\
837 . sp -1
838 . IP \(bu 2.3
839 .\}
840 \fBp\fP: key para[..] value logging
841 .RE
842 .sp
843 .RS 4
844 .ie n \{\
845 \h'-04'\(bu\h'+03'\c
846 .\}
847 .el \{\
848 . sp -1
849 . IP \(bu 2.3
850 .\}
851 \fBP\fP: all para[..] value logging
852 .RE
853 .sp
854 .RS 4
855 .ie n \{\
856 \h'-04'\(bu\h'+03'\c
857 .\}
858 .el \{\
859 . sp -1
860 . IP \(bu 2.3
861 .\}
862 \fBd\fP: para["debs"] value logging
863 .RE
864 .sp
865 Use this feature as:
866 .sp
867 .if n .RS 4
868 .nf
869 .fam C
870 [base_dir] $ export DEBUG=spd; debmake ...
871 .fam
872 .fi
873 .if n .RE
874 .sp
875 or
876 .sp
877 .if n .RS 4
878 .nf
879 .fam C
880 [base_dir] $ debmake \-D spd ...
881 .fam
882 .fi
883 .if n .RE
884 .sp
885 See \fBREADME.md\fP in the source for more.
886 .SH "AUTHOR"
887 .sp
888 Copyright © 2014\-2026 Osamu Aoki \c
889 .MTO "osamu\(atdebian.org" "" ""
890 .SH "LICENSE"
891 .sp
892 Expat License
893 .SH "SEE ALSO"
894 .sp
895 The \fBdebmake\-doc\fP package provides the \(lq\c
896 .URL "https://www.debian.org/doc/manuals/debmake\-doc/" "Guide for Debian Maintainers" "\(rq"
897 in plain text, HTML and PDF formats under the \fB/usr/share/doc/debmake\-doc/\fP directory.
898 .sp
899 See also \fBlicensecheck\fP(1), \fBlrc\fP(1), \fBdpkg\-source\fP(1), \fBdeb\-control\fP(5), \fBdebhelper\fP(7), \fBdh\fP(1), \fBdpkg\-buildpackage\fP(1), \fBdebuild\fP(1), \fBquilt\fP(1), \fBdpkg\-depcheck\fP(1), \fBsbuild\fP(1), \fBgbp\-buildpackage\fP(1), and \fBgbp\-pq\fP(1) manpages.