~ubuntu-branches/ubuntu/vivid/dpkg/vivid

« back to all changes in this revision

Viewing changes to man/ja/dpkg-buildpackage.1

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2014-04-21 18:14:10 UTC
  • mfrom: (1.6.8 sid)
  • Revision ID: package-import@ubuntu.com-20140421181410-94kvb2zodjd2og32
Tags: 1.17.7ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Allow -fstack-protector on arm64 now that GCC and glibc support it.
  - Change native source version/format mismatch errors into warnings
    until the dust settles on Debian bug 737634 about override options.
  - Add DPKG_UNTRANSLATED_MESSAGES environment check so that higher-level
    tools can get untranslated dpkg terminal log messages while at the
    same time having translated debconf prompts.
  - Special-case arm{el,hf} ELF objects in Shlibs/Objdump.pm for multilib.
  - Map unqualified package names of multiarch-same packages to the native
    arch instead of throwing an error, so that we don't break on upgrade
    when there are unqualified names stored in the dpkg trigger database.
  - Add logic to the postinst to `dpkg --add-architecture i386' on new
    installs on amd64, mimicking our previous behaviour with the conffile.
  - Apply a workaround from mvo to consider RC packages as multiarch,
    during the dpkg consistency checks. (see LP: 1015567 and 1057367).
* Drop obsolete migration code and guards from pre-trusty dpkg versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" dpkg manual page - dpkg-buildpackage(1)
2
 
.\"
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>
8
 
.\"
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.
13
 
.\"
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.
18
 
.\"
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/>.
21
 
.
22
 
.\"*******************************************************************
23
 
.\"
24
 
.\" This file was generated with po4a. Translate the source file.
25
 
.\"
26
 
.\"*******************************************************************
27
 
.TH dpkg\-buildpackage 1 2013\-12\-12 "Debian Project" "dpkg �桼�ƥ���ƥ�"
28
 
.SH ̾��
29
 
dpkg\-buildpackage \- �Х��ʥ�ѥå���������ӥ������ѥå������Υӥ��
30
 
.
31
 
.SH ��
32
 
\fBdpkg\-buildpackage\fP [\fIoption\fP...]
33
 
.
34
 
.SH ����
35
 
\fBdpkg\-buildpackage\fP �ϡ�Debian �ѥå������Υӥ�ɤ�ư������ץ������Ǥ��롣����ˤϰʲ��Υ��ƥåפ��ޤޤ��:
36
 
.IP \fB1.\fP 3
37
 
�͡��ʴĶ��ѿ� (\fB�Ķ��ѿ�\fP �򻲾ȤΤ���) ��������뤳�Ȥǡ��ӥ�ɴĶ������ꤷ��\fBdpkg\-source \-\-before\-build\fP
38
 
��ƤӽФ� (\fB\-T\fP �⤷���� \fB\-\-target\fP�����ꤵ��Ƥ��ʤ��¤�)��
39
 
.IP \fB2.\fP 3
40
 
�ӥ�ɤˤ������¸�ط�����������Ƥ��뤫�����礬ȯ�����Ƥ��ʤ���������å����� (\fB\-d\fP �����ꤵ��Ƥ��ʤ��¤�)��
41
 
.IP \fB3.\fP 3
42
 
\fB\-T\fP �⤷���� \fB\-\-target\fP
43
 
���ץ����ˤ�ꡢ�ӥ�ɤΥ������åȤ����ꤵ��Ƥ�����ϡ��������åȤ�ƤӽФ��ơ������Ǽ¹Ԥ���ߤ��롣����ʳ��ξ��� \fBfakeroot
44
 
debian/rules clean\fP ��ƤӽФ����ӥ�ɥĥ꡼�򥯥ꥢ���� (\fB\-nc\fP �����ꤵ��Ƥ��ʤ��¤�)��
45
 
.IP \fB4.\fP 3
46
 
\fBdpkg\-source \-b\fP ��ƤӽФ����������ѥå��������������� (\fB\-b\fP, \fB\-B\fP, \fB\-A\fP
47
 
�ˤ�äƥХ��ʥ�ѥå������ΤߤΥӥ�ɤ����ꤵ��Ƥ��ʤ��¤�)��
48
 
.IP \fB5.\fP 3
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 �����ꤵ��Ƥ������)
54
 
�Τ����줫���ͤ�Ȥ롣
55
 
.IP \fB6.\fP 3
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).
58
 
.IP \fB7.\fP 3
59
 
\fBdpkg\-genchanges\fP ��ƤӽФ��ơ�\fB.changes\fP �ե�������������롣\fBdpkg\-buildpackage\fP
60
 
�Υ��ץ�����¿���� \fBdpkg\-genchanges\fP �˰����Ѥ���롣
61
 
.IP \fB8.\fP 3
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).
64
 
.IP \fB9.\fP 3
65
 
\fB\-tc\fP �����ꤵ��Ƥ�����硢\fBfakeroot debian/rules clean\fP �����ٸƤӽФ���롣�Ǹ�� \fBdpkg\-source
66
 
\-\-after\-build\fP ���ƤӽФ���롣
67
 
.
68
 
.SH ���ץ����
69
 
.TP 
70
 
\fB\-b\fP
71
 
�Х��ʥ�ѥå������ΤߤΥӥ�ɤ���ꤹ�롣�������ե�����ϥӥ�ɤ��줺�����ۤ⤵��ʤ������ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
72
 
.TP 
73
 
\fB\-B\fP
74
 
�������ƥ������¸�Υѥå������ˤĤ��ơ��Х��ʥ�ѥå������ΤߤΥӥ�ɤ���ꤹ�롣���ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
75
 
.TP 
76
 
\fB\-A\fP
77
 
�������ƥ��������¸�Υѥå������ˤĤ��ơ��Х��ʥ�ѥå������ΤߤΥӥ�ɤ���ꤹ�롣���ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
78
 
.TP 
79
 
\fB\-S\fP
80
 
�������ѥå������ΤߤΥӥ�ɤ���ꤹ�롣�Х��ʥ�ѥå������Ϻ�������ʤ������ץ����� \fBdpkg\-genchanges\fP ���Ϥ���롣
81
 
.TP 
82
 
\fB\-F\fP
83
 
�Х��ʥ�ѥå������ȥ������ѥå�������ξ����ӥ�ɤ��롢�̾�Υե�ӥ�ɤ���ꤹ�롣����ϥӥ�ɥ��ץ�������ꤷ�ʤ��ä��ݤΥǥե���Ȥε�ư�Ǥ��롣
84
 
.TP 
85
 
\fB\-\-target=\fP\fItarget\fP
86
 
.TQ
87
 
\fB\-\-target \fP\fItarget\fP
88
 
.TQ
89
 
\fB\-T\fP\fItarget\fP
90
 
�ӥ�ɴĶ��������ˡ�\fBdebian/rules\fP \fItarget\fP ��ƤӽФ��������ǥѥå������Υӥ�ɽ�������ߤ��롣\fB\-\-as\-root\fP
91
 
�����ꤵ��Ƥ�����硢���ޥ�ɤ� root �Ȥ��Ƽ¹Ԥ���� (\fB\-r\fP �⻲�ȤΤ���)��Debian policy �ˤ�äơ������� root
92
 
�Ǥμ¹Ԥ�ɬ�ܤȤ���Ƥ��륿�����åȤˤĤ��Ƥϡ��ܥ��ץ��������פǤ��롣
93
 
.TP 
94
 
\fB\-\-as\-root\fP
95
 
\fB\-\-target\fP ��ʻ���ƻ��ꤵ�줿���Τ�ͭ���Ǥ��ꡢtarget �μ¹Ԥ� root ���¤�ɬ�פǤ��뤳�Ȥ���ꤹ�롣
96
 
.TP 
97
 
\fB\-si\fP
98
 
.TQ
99
 
\fB\-sa\fP
100
 
.TQ
101
 
\fB\-sd\fP
102
 
.TQ
103
 
\fB\-v\fP\fIversion\fP
104
 
.TQ
105
 
\fB\-C\fP\fIchanges\-description\fP
106
 
.TQ
107
 
\fB\-m\fP\fImaintainer\-address\fP
108
 
.TQ
109
 
\fB\-e\fP\fImaintainer\-address\fP
110
 
\fBdpkg\-genchanges\fP �ˤ��Τޤް����Ϥ���롣������Υޥ˥奢��ڡ����򻲾ȤΤ��ȡ�
111
 
.TP 
112
 
\fB\-a\fP\fIarchitecture\fP
113
 
�ӥ���оݤȤʤ� Debian �������ƥ��������ꤹ�롣�ӥ�ɤ�¹Ԥ���ޥ���Υ������ƥ�����ϼ�ưŪ��Ƚ�̤��졢�ۥ��ȥޥ���Υǥե�����ͤȤʤ롣
114
 
.TP 
115
 
\fB\-t\fP\fIgnu\-system\-type\fP
116
 
�ӥ���оݤȤʤ� GNU �����ƥॿ���פ���ꤹ�롣����� \-a ���ץ���������Ȥ��ƥ������åȤ� Debian
117
 
�������ƥ�������б�����ǥե���Ȥ� GNU �����ƥॿ���פ��񤭤��뤿����Ѥ����롣
118
 
.TP 
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.
125
 
.TP 
126
 
\fB\-j\fP\fIjobs\fP
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.
135
 
.TP 
136
 
\fB\-D\fP
137
 
�ӥ�ɤΰ�¸�ط��ȶ��������å��������꤬������Ͻ��������Ǥ����롣����ϥǥե���Ȥε�ư�Ǥ��롣
138
 
.TP 
139
 
\fB\-d\fP
140
 
�ӥ�ɤΰ�¸�ط��ȶ��������å����ʤ���
141
 
.TP 
142
 
\fB\-nc\fP
143
 
�������ĥ꡼��õ�ʤ� (\fB\-B\fP, \fB\-A\fP, \fB\-S\fP ������⤬���ꤵ��ʤ����ϡ�\fB\-b\fP �����ꤵ�줿�ȸ��ʤ����)��
144
 
.TP 
145
 
\fB\-tc\fP
146
 
�ѥå������Υӥ�ɸ�˥������ĥ꡼��õ�� (\fIgain\-root\-command\fP \fBdebian/rules clean\fP ���Ѥ�����)��
147
 
.TP 
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 ���Ѥ��ƥ桼���Υ������ư��������Ǥ��뤿��Ŭ�ڤǤϤʤ���
157
 
.TP 
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 ����Ѥ���) ����˻��Ѥ��뤳�Ȥ�Ǥ��롣
163
 
.TP 
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
170
 
metacharacters.
171
 
.TP 
172
 
\fB\-k\fP\fIkey\-id\fP
173
 
�ѥå������˽�̾����ݤ˻��Ѥ��븰��ID����ꤹ�롣
174
 
.TP 
175
 
\fB\-us\fP
176
 
�������ѥå������˽�̾���ʤ���
177
 
.TP 
178
 
\fB\-uc\fP
179
 
\&\fB.changes\fP �ե�����˽�̾���ʤ���
180
 
.TP 
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.
184
 
.TP 
185
 
\fB\-i\fP[\fIregex\fP]
186
 
.TQ
187
 
\fB\-I\fP[\fIpattern\fP]
188
 
.TQ
189
 
\fB\-s\fP[\fBnsAkurKUR\fP]
190
 
.TQ
191
 
\fB\-z\fP, \fB\-Z\fP
192
 
\fBdpkg\-source\fP �ˤ��Τޤް����Ϥ���롣������Υޥ˥奢��ڡ����򻲾ȤΤ��ȡ�
193
 
.TP 
194
 
\fB\-\-source\-option=\fP\fIopt\fP
195
 
\fBdpkg\-source\fP �� \fIopt\fP ���ץ���������Ϥ���
196
 
.TP 
197
 
\fB\-\-changes\-option=\fP\fIopt\fP
198
 
\fBdpkg\-genchanges\fP �� \fIopt\fP ���ץ���������Ϥ���
199
 
.TP 
200
 
\fB\-\-admindir=\fP\fIdir\fP
201
 
.TQ
202
 
\fB\-\-admindir \fP\fIdir\fP
203
 
\fBdpkg\fP �ǡ����١����ΰ��֤��ѹ����롣�ǥե���Ȥΰ��֤� \fI/var/lib/dpkg\fP �Ǥ��롣
204
 
.TP 
205
 
\fB\-?\fP, \fB\-\-help\fP
206
 
������ˡ��ɽ�����ƽ�λ���롣
207
 
.TP 
208
 
\fB\-\-version\fP
209
 
�С����������ɽ�����ƽ�λ���롣
210
 
.
211
 
.SH �Ķ��ѿ�
212
 
.TP 
213
 
\fBDEB_SIGN_KEYID\fP
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.
216
 
.TP 
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.
221
 
 
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
 
���ץ����ˤ�ä����ꤵ�줿�ѿ��ϥӥ�ɴĶ��˥ޡ�������롣
228
 
.
229
 
.SH ����
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
239
 
exit code.
240
 
.SH �Х�
241
 
\fIgain\-root\-command\fP ����� \fIsign\-command\fP
242
 
����Ƭ�ΰ����Ȥ��ơ����ڡ����䥷����Υ᥿����饯�������Ǥ���褦�ˤ��٤��Ǥ��롣
243
 
.
244
 
.SH ��Ϣ����
245
 
.ad l
246
 
.nh
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).
249
 
.SH ������
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>.
258
 
.SH ��������
259
 
Debian JP Documentation ML <debian-doc@debian.or.jp>.