1
.\" dpkg manual page - dpkg-buildpackage(1)
3
.\" Copyright © 1995-1996 Ian Jackson
4
.\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
5
.\" Copyright © 2007-2008 Frank Lichtenheld <djpig@debian.org>
6
.\" Copyright © 2008-2013 Guillem Jover <guillem@debian.org>
7
.\" Copyright © 2008-2012 Raphaël Hertzog <hertzog@debian.org>
9
.\" This is free software; you can redistribute it and/or modify
10
.\" it under the terms of the GNU General Public License as published by
11
.\" the Free Software Foundation; either version 2 of the License, or
12
.\" (at your option) any later version.
14
.\" This is distributed in the hope that it will be useful,
15
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
.\" GNU General Public License for more details.
19
.\" You should have received a copy of the GNU General Public License
20
.\" along with this program. If not, see <https://www.gnu.org/licenses/>.
22
.\"*******************************************************************
24
.\" This file was generated with po4a. Translate the source file.
26
.\"*******************************************************************
27
.TH dpkg\-buildpackage 1 2013\-12\-12 "Debian Project" "dpkg �桼�ƥ���ƥ�"
29
dpkg\-buildpackage \- �Х��ʥ�ѥå���������ӥ������ѥå������Υӥ��
32
\fBdpkg\-buildpackage\fP [\fIoption\fP...]
35
\fBdpkg\-buildpackage\fP �ϡ�Debian �ѥå������Υӥ�ɤ�ư������ץ������Ǥ��롣����ˤϰʲ��Υ��ƥåפ��ޤޤ��:
37
�͡��ʴĶ��ѿ� (\fB�Ķ��ѿ�\fP �ȤΤ���) ��������뤳�Ȥǡ��ӥ�ɴĶ������ꤷ��\fBdpkg\-source \-\-before\-build\fP
38
��ƤӽФ� (\fB\-T\fP �⤷���� \fB\-\-target\fP�����ꤵ��Ƥ��ʤ��¤�)��
40
�ӥ�ɤˤ������¸�ط�����������Ƥ��뤫�����礬ȯ�����Ƥ��ʤ���������å����� (\fB\-d\fP �����ꤵ��Ƥ��ʤ��¤�)��
42
\fB\-T\fP �⤷���� \fB\-\-target\fP
43
���ץ����ˤ�ꡢ�ӥ�ɤΥ������åȤ����ꤵ��Ƥ�����ϡ��������åȤ�ƤӽФ��ơ������Ǽ¹Ԥ���ߤ��롣����ʳ��ξ��� \fBfakeroot
44
debian/rules clean\fP ��ƤӽФ����ӥ�ɥĥ�ꥢ���� (\fB\-nc\fP �����ꤵ��Ƥ��ʤ��¤�)��
46
\fBdpkg\-source \-b\fP ��ƤӽФ����������ѥå��������������� (\fB\-b\fP, \fB\-B\fP, \fB\-A\fP
47
�ˤ�äƥХ��ʥ�ѥå������ΤߤΥӥ�ɤ����ꤵ��Ƥ��ʤ��¤�)��
49
\fBfakeroot debian/rules\fP \fIbinary\-target\fP ��³����\fBdebian/rules\fP
50
\fBbuild\-target\fP ��ƤӽФ� (\fB\-S\fP �ˤ�äƥ������ѥå������ΤߤΥӥ�ɤ����ꤵ��Ƥ��ʤ��¤�)��\fIbuild\-target\fP
51
����� \fIbinary\-target\fP �� \fBbuild\fP ����� \fBbinary\fP (�ǥե���ȡ��⤷���� \fB\-b\fP
52
�����ꤵ��Ƥ������)��\fBbuild\-arch\fP ����� \fBbinary\-arch\fP (\fB\-B\fP
53
�����ꤵ��Ƥ������)��\fBbuild\-indep\fP ����� \fBbinary\-indep\fP (\fB\-A\fP �����ꤵ��Ƥ������)
56
It calls \fBgpg2\fP or \fBgpg\fP to sign the \fB.dsc\fP file (if any, unless \fB\-us\fP
57
is specified or on UNRELEASED builds).
59
\fBdpkg\-genchanges\fP ��ƤӽФ��ơ�\fB.changes\fP �ե�������������롣\fBdpkg\-buildpackage\fP
60
�Υ��ץ�����¿���� \fBdpkg\-genchanges\fP �˰����Ѥ���롣
62
It calls \fBgpg2\fP or \fBgpg\fP to sign the \fB.changes\fP file (unless \fB\-uc\fP is
63
specified or on UNRELEASED builds).
65
\fB\-tc\fP �����ꤵ��Ƥ�����硢\fBfakeroot debian/rules clean\fP �����ٸƤӽФ���롣�Ǹ�� \fBdpkg\-source
66
\-\-after\-build\fP ���ƤӽФ���롣
71
�Х��ʥ�ѥå������ΤߤΥӥ�ɤ���ꤹ�롣�������ե�����ϥӥ�ɤ��줺�����ۤ⤵��ʤ������ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
74
�������ƥ������¸�Υѥå������ˤĤ��ơ��Х��ʥ�ѥå������ΤߤΥӥ�ɤ���ꤹ�롣���ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
77
�������ƥ��������¸�Υѥå������ˤĤ��ơ��Х��ʥ�ѥå������ΤߤΥӥ�ɤ���ꤹ�롣���ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
80
�������ѥå������ΤߤΥӥ�ɤ���ꤹ�롣�Х��ʥ�ѥå������Ϻ�������ʤ������ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
83
�Х��ʥ�ѥå������ȥ������ѥå�������ξ����ӥ�ɤ��롢�̾�Υե�ӥ�ɤ���ꤹ�롣����ϥӥ�ɥ��ץ�������ꤷ�ʤ��ä��ݤΥǥե���Ȥε�ư�Ǥ��롣
85
\fB\-\-target=\fP\fItarget\fP
87
\fB\-\-target \fP\fItarget\fP
90
�ӥ�ɴĶ��������ˡ�\fBdebian/rules\fP \fItarget\fP ��ƤӽФ��������ǥѥå������Υӥ�ɽ�������ߤ��롣\fB\-\-as\-root\fP
91
�����ꤵ��Ƥ�����硢���ޥ�ɤ� root �Ȥ��Ƽ¹Ԥ���� (\fB\-r\fP �⻲�ȤΤ���)��Debian policy �ˤ�äơ������� root
92
�Ǥμ¹Ԥ�ɬ�ܤȤ���Ƥ��륿�����åȤˤĤ��Ƥϡ��ܥ��ץ��������פǤ��롣
95
\fB\-\-target\fP ��ʻ���ƻ��ꤵ�줿���Τ�ͭ���Ǥ��ꡢtarget �μ¹Ԥ� root ���¤�ɬ�פǤ��뤳�Ȥ���ꤹ�롣
103
\fB\-v\fP\fIversion\fP
105
\fB\-C\fP\fIchanges\-description\fP
107
\fB\-m\fP\fImaintainer\-address\fP
109
\fB\-e\fP\fImaintainer\-address\fP
110
\fBdpkg\-genchanges\fP �ˤ��Τޤް����Ϥ���롣������Υޥ˥奢��ڡ����ȤΤ��ȡ�
112
\fB\-a\fP\fIarchitecture\fP
113
�ӥ���оݤȤʤ� Debian �������ƥ��������ꤹ�롣�ӥ�ɤ�¹Ԥ���ޥ���Υ������ƥ�����ϼ�ưŪ��Ƚ�̤��졢�ۥ��ȥޥ���Υǥե�����ͤȤʤ롣
115
\fB\-t\fP\fIgnu\-system\-type\fP
116
�ӥ���оݤȤʤ� GNU �����ƥॿ���פ���ꤹ�롣����� \-a ���ץ���������Ȥ��ƥ������åȤ� Debian
117
�������ƥ�������б�����ǥե���Ȥ� GNU �����ƥॿ���פ����뤿����Ѥ����롣
119
\fB\-P\fP\fIprofile\fP[\fB,\fP...]
120
Specify the profile(s) we build, as a comma\-separated list, without the
121
"\fBprofile.\fP" namespace prefix. The default behavior is to build for no
122
specific profile. Also adds them (as a space separated list) to the
123
\fBDEB_BUILD_PROFILES\fP environment variable which allows, for example,
124
\fBdebian/rules\fP files to use this information for conditional builds.
127
Number of jobs allowed to be run simultaneously, equivalent to the
128
\fBmake\fP(1) option of the same name. Will add itself to the \fBMAKEFLAGS\fP
129
environment variable, which should cause all subsequent make invocations to
130
inherit the option. Also adds \fBparallel=\fP\fIjobs\fP to the
131
\fBDEB_BUILD_OPTIONS\fP environment variable which allows debian/rules files to
132
use this information for their own purposes. The \fBparallel=\fP\fIjobs\fP in
133
\fBDEB_BUILD_OPTIONS\fP environment variable will override the \fB\-j\fP value if
134
this option is given.
137
�ӥ�ɤΰ�¸�ط��ȶ��������å��������꤬������Ͻ��������Ǥ����롣����ϥǥե���Ȥε�ư�Ǥ��롣
140
�ӥ�ɤΰ�¸�ط��ȶ��������å����ʤ���
143
�������ĥ��õ�ʤ� (\fB\-B\fP, \fB\-A\fP, \fB\-S\fP ������⤬���ꤵ��ʤ����ϡ�\fB\-b\fP �����ꤵ�줿�ȸ��ʤ����)��
146
�ѥå������Υӥ�ɸ�˥������ĥ��õ�� (\fIgain\-root\-command\fP \fBdebian/rules clean\fP ���Ѥ�����)��
148
\fB\-r\fP\fIgain\-root\-command\fP
149
\fBdpkg\-buildpackage\fP ���ӥ�ɽ����ΰ����� root
150
���¤Ǽ¹Ԥ���ɬ�פ������硢���Υ��ץ�����ꤵ��Ƥ���С��¹Ԥ��륳�ޥ�ɤ����� \fIgain\-root\-command\fP
151
���դ����롣���Υ��ץ�����ꤵ��Ƥ��ʤ��ä����ϡ�\fBfakeroot\fP
152
��¸�ߤ��Ƥ���С����줬�ǥե���Ȥ��Ѥ����롣\fIgain\-root\-command\fP ��\fBPATH\fP
153
��Υץ������̾�Ǥ���ɬ�פ����ꡢ�ºݤ˼¹Ԥ��������ޥ�ɤ�³�������Υ��ޥ�ɤΰ���������Ȥ��ƻ��ꤹ�롣\fIgain\-root\-command\fP �ˤ�
154
(���ڡ����Ƕ��ڤ�줿) �ѥ�����ޤ�Ƥ�褤����������Υ����饯����ޤ�뤳�ȤϤǤ��ʤ���\fIgain\-root\-command\fP ���̾�
155
\fBfakeroot\fP, \fBsudo\fP, \fBsuper\fP, \fBreally\fP �ʤɤǤ��롣\fBsu\fP
156
�ϡ��¹Ԥ��������ޥ�ɤ˰�����ġ��˰����Ϥ��ΤǤϤʤ���\fB\-c\fP ���Ѥ��ƥ桼���Υ������ư��������Ǥ��뤿��Ŭ�ڤǤϤʤ���
158
\fB\-R\fP\fIrules\-file\fP
159
Debian �ѥå������Υӥ�ɤκݤϡ��̾� \fBdebian/rules\fP
160
���ޥ�ɤ����Ĥ���ɸ��Ū�ʰ������դ��Ƽ¹Ԥ���롣���Υ��ץ����ˤ�ꡢ�ѥå������Υӥ�ɤκݤ��̤Υץ���������Ѥ��뤳�Ȥ���ǽ�Ȥʤ�
161
(���ڡ����Ƕ��ڤ�줿������ޤ�뤳�Ȥ��ǽ�Ǥ���)��ɸ��Υ롼��ե�������̤� make �ץ������Ǽ¹Ԥ��� (�㤨�� \fIrules\-file\fP
162
������� \fB/usr/local/bin/make \-f debian/rules\fP ����Ѥ���) ����˻��Ѥ��뤳�Ȥ�Ǥ��롣
164
\fB\-p\fP\fIsign\-command\fP
165
When \fBdpkg\-buildpackage\fP needs to execute GPG to sign a source control
166
(\fB.dsc\fP) file or a \fB.changes\fP file it will run \fIsign\-command\fP (searching
167
the \fBPATH\fP if necessary) instead of \fBgpg2\fP or \fBgpg\fP. \fIsign\-command\fP will
168
get all the arguments that \fBgpg2\fP or \fBgpg\fP would have
169
gotten. \fIsign\-command\fP should not contain spaces or any other shell
172
\fB\-k\fP\fIkey\-id\fP
173
�ѥå������˽�̾����ݤ˻��Ѥ��븰��ID����ꤹ�롣
176
�������ѥå������˽�̾���ʤ���
179
\&\fB.changes\fP �ե�����˽�̾���ʤ���
181
\fB\-\-force\-sign\fP
182
Force the signing of the resulting files (since dpkg 1.17.0), regardless of
183
\fB\-us\fP or \fB\-uc\fP or other internal heuristics.
185
\fB\-i\fP[\fIregex\fP]
187
\fB\-I\fP[\fIpattern\fP]
189
\fB\-s\fP[\fBnsAkurKUR\fP]
192
\fBdpkg\-source\fP �ˤ��Τޤް����Ϥ���롣������Υޥ˥奢��ڡ����ȤΤ��ȡ�
194
\fB\-\-source\-option=\fP\fIopt\fP
195
\fBdpkg\-source\fP �� \fIopt\fP ���ץ���������Ϥ���
197
\fB\-\-changes\-option=\fP\fIopt\fP
198
\fBdpkg\-genchanges\fP �� \fIopt\fP ���ץ���������Ϥ���
200
\fB\-\-admindir=\fP\fIdir\fP
202
\fB\-\-admindir \fP\fIdir\fP
203
\fBdpkg\fP �ǡ����١����ΰ��֤��ѹ����롣�ǥե���Ȥΰ��֤� \fI/var/lib/dpkg\fP �Ǥ��롣
205
\fB\-?\fP, \fB\-\-help\fP
206
������ˡ��ɽ�����ƽ�λ���롣
209
�С����������ɽ�����ƽ�λ���롣
214
If set, it will be used to sign the \fB.changes\fP and \fB.dsc\fP files.
215
Overridden by the \fB\-k\fP option.
217
\fBDEB_BUILD_PROFILES\fP
218
If set, it will be used as the active build profile(s) for the package being
219
built. It is a space separated list of profile names, without the
220
"\fBprofile.\fP" namespace prefix. Overridden by the \fB\-P\fP option.
222
.SS "Reliance on exported environment flags"
223
\fBdpkg\-buildpackage\fP �����Ĥ����ѿ������ݡ��Ȥ��Ƥ����Ȥ��Ƥ⡢\fBdebian/rules\fP
224
�Ϥ���¸�ߤ˰�¸���ƤϤʤ�ʤ��������ɬ�פ��ͤ�������뤿��Υ��ե���������Ѥ��뤳�ȡ�
225
.SS "dpkg\-architecture �ˤ�ä����ꤵ����ѿ�"
226
\fBdpkg\-architecture\fP �� \fB\-a\fP ����� \fB\-t\fP ������Ȥ��ƸƤӽФ���롣���Υ��ޥ�ɤ� \fB\-s\fP
227
���ץ����ˤ�ä����ꤵ�줿�ѿ��ϥӥ�ɴĶ��˥ޡ�������롣
230
.SS ����ѥ���ե饰�Υ������ݡ������
231
Between dpkg 1.14.17 and 1.16.1, \fBdpkg\-buildpackage\fP exported compiler
232
flags (\fBCFLAGS\fP, \fBCXXFLAGS\fP, \fBFFLAGS\fP, \fBCPPFLAGS\fP and \fBLDFLAGS\fP) with
233
values as returned by \fBdpkg\-buildflags\fP. This is no longer the case.
234
.SS "Default build targets"
235
\fBdpkg\-buildpackage\fP is using the \fBbuild\-arch\fP and \fBbuild\-indep\fP targets
236
since dpkg 1.16.2. Those targets are thus mandatory. But to avoid breakages
237
of existing packages, and ease the transition, it will fallback to using the
238
\fBbuild\fP target if \fBmake \-f debian/rules \-qn\fP \fIbuild\-target\fP returns 2 as
241
\fIgain\-root\-command\fP ����� \fIsign\-command\fP
242
����Ƭ�ΰ����Ȥ��ơ����ڡ����䥷����Υ����饯�������Ǥ���褦�ˤ��٤��Ǥ��롣
247
\fBdpkg\-source\fP(1), \fBdpkg\-architecture\fP(1), \fBdpkg\-buildflags\fP(1),
248
\fBdpkg\-genchanges\fP(1), \fBfakeroot\fP(1), \fBgpg2\fP(1), \fBgpg\fP(1).
250
�ⶶ �� <monyo@monyo.com>.
251
���� �� <kise@fuyuneko.jp>.
252
�ظ� ���� <sekido@mbox.kyoto-inet.or.jp>.
253
��ë ��Ÿ <nabe@debian.or.jp>.
254
��߷ ˾ <nabetaro@debian.or.jp>.
255
���� �� <ishikawa@linux.or.jp>.
256
���� ʸ�� <ukai@debian.or.jp>.
257
���� ��ͺ <nakano@apm.seikei.ac.jp>.
259
Debian JP Documentation ML <debian-doc@debian.or.jp>.