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

« back to all changes in this revision

Viewing changes to man/es/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 "Proyecto Debian" "Herramientas de dpkg"
28
 
.SH NOMBRE
29
 
dpkg\-buildpackage \- Construcci�n de paquetes binarios o fuente a partir de
30
 
las fuentes
31
 
.
32
 
.SH SINOPSIS
33
 
\fBdpkg\-buildpackage\fP [\fIopci�n\fP...]
34
 
.
35
 
.SH DESCRIPCI�N
36
 
\fBdpkg\-buildpackage\fP es un programa que automatiza el proceso de
37
 
construcci�n de un paquete de Debian. �ste consiste de los siguientes pasos:
38
 
.IP \fB1.\fP 3
39
 
Preparaci�n del entorno de construcci�n, definiendo varias variables de
40
 
entorno (consulte \fBVARIABLES DE ENTORNO\fP) para ejecutar \fBdpkg\-source
41
 
\-\-before\-build\fP (a menos que se defina \fB\-T\fP o \fB\-\-target\fP.
42
 
.IP \fB2.\fP 3
43
 
Verificar que las dependencias y conflictos de construcci�n
44
 
(�build\-dependencies� y �build\-conflicts�, respectivamente) est�n
45
 
satisfechas (a menos que especifique \fB\-d\fP).
46
 
.IP \fB3.\fP 3
47
 
Si se selecciona un objetivo espec�fico con \fB\-T\fP o \fB\-\-target\fP, ejecutar
48
 
ese objetivo y se detiene. De no ser as�, ejecuta \fBfakeroot debian/rules
49
 
clean\fP para limpiar el �rbol de construcci�n (a menos que especifique
50
 
\fB\-nc\fP).
51
 
.IP \fB4.\fP 3
52
 
Ejecuci�n de \fBdpkg\-source \-b\fP para generar el paquete fuente (a menos que
53
 
se requiera s�lo la construcci�n del paquete binario con \fB\-b\fP, \fB\-B\fP o
54
 
\fB\-A\fP).
55
 
.IP \fB5.\fP 3
56
 
Ejecuci�n de \fBdebian/rules\fP \fIbuild\-target\fP seguido de \fBfakeroot
57
 
debian/rules\fP \fIbinary\-target\fP (a menos que s�lo se solicite la construcci�n
58
 
de las fuentes mediante \fB\-S\fP). Tenga en cuenta que y \fBbuild\-target\fP y
59
 
\fIbinary\-target\fP son \fBbuild\fP o \fBbinary\fP (por omisi�n, o si se define
60
 
\fB\-b\fP), o \fBbuild\-arch\fP y \fBbinary\-arch\fP (si se define \fB\-B\fP), o
61
 
\fBbuild\-indep\fP y \fBbinary\-indep\fP (si se define \fB\-A\fP).
62
 
.IP \fB6.\fP 3
63
 
It calls \fBgpg2\fP or \fBgpg\fP to sign the \fB.dsc\fP file (if any, unless \fB\-us\fP
64
 
is specified or on UNRELEASED builds).
65
 
.IP \fB7.\fP 3
66
 
Ejecuci�n de \fBdpkg\-genchanges\fP para generar el fichero \fB.changes\fP. Muchas
67
 
de las opciones de \fBdpkg\-buildpackage\fP se introducen a \fBdpkg\-genchanges\fP.
68
 
.IP \fB8.\fP 3
69
 
It calls \fBgpg2\fP or \fBgpg\fP to sign the \fB.changes\fP file (unless \fB\-uc\fP is
70
 
specified or on UNRELEASED builds).
71
 
.IP \fB9.\fP 3
72
 
Si se especifica \fB\-tc\fP, se ejecutar� nuevamente \fBfakeroot debian/rules
73
 
clean\fP. Por �ltimo, ejecuta \fBdpkg\-source \-\-after\-build\fP.
74
 
.
75
 
.SH OPCIONES
76
 
.TP 
77
 
\fB\-b\fP
78
 
Especifica una construcci�n s�lo binaria, no se construir�n ficheros de
79
 
fuentes y/o distribuidas. Se introduce a \fBdpkg\-genchanges\fP.
80
 
.TP 
81
 
\fB\-B\fP
82
 
Especifica una construcci�n s�lo binaria, limitada a paquetes dependientes
83
 
de arquitectura. Se introduce a \fBdpkg\-genchanges\fP.
84
 
.TP 
85
 
\fB\-A\fP
86
 
Especifica una construcci�n s�lo binaria, limitada a paquetes independientes
87
 
de la arquitectura. Se introduce a \fBdpkg\-genchanges\fP.
88
 
.TP 
89
 
\fB\-S\fP
90
 
Especifica una construcci�n s�lo de las fuentes, no se construir� ning�n
91
 
paquete binario. Se introduce a \fBdpkg\-genchanges\fP.
92
 
.TP 
93
 
\fB\-F\fP
94
 
Define una construcci�n completa normal, se construyen los paquetes binarios
95
 
y de fuente. Es id�ntica al comportamiento predefinido cuando no se define
96
 
ninguna opci�n de construcci�n.
97
 
.TP 
98
 
\fB\-\-target=\fP\fItarget\fP
99
 
.TQ
100
 
\fB\-\-target \fP\fItarget\fP
101
 
.TQ
102
 
\fB\-T\fP\fItarget\fP
103
 
Ejecuta \fBdebian/rules\fP \fItarget\fP despu�s de definir el entorno de
104
 
construcci�n, deteniendo en este punto el proceso de construcci�n del
105
 
paquete. Si se introduce \fB\-\-as\-root\fP, la orden se ejecutar� como el usuario
106
 
�root� (v�ase \fB\-r\fP). Tenga en cuenta que los objetivos oficiales que
107
 
precisan ejecutarse como administrador seg�n las directrices de Debian no
108
 
necesitan esta opci�n.
109
 
.TP 
110
 
\fB\-\-as\-root\fP
111
 
Su uso s�lo tiene sentido con \fB\-\-target\fP. Requiere que se ejecute el
112
 
objetivo con permisos del usuario �root�.
113
 
.TP 
114
 
\fB\-si\fP
115
 
.TQ
116
 
\fB\-sa\fP
117
 
.TQ
118
 
\fB\-sd\fP
119
 
.TQ
120
 
\fB\-v\fP\fIversi�n\fP
121
 
.TQ
122
 
\fB\-C\fP\fIdescripci�n\-de\-cambios\fP
123
 
.TQ
124
 
\fB\-m\fP\fIdirecci�n\-mantenedor\fP
125
 
.TQ
126
 
\fB\-e\fP\fIdirecci�n\-mantenedor\fP
127
 
Se introduce sin cambios a \fBdpkg\-genchanges\fP. Consulte la p�gina de manual.
128
 
.TP 
129
 
\fB\-a\fP\fIarquitectura\fP
130
 
Especifica la arquitectura de Debian para la cual se construye el
131
 
paquete. La arquitectura de la m�quina en la que se construye el paquete se
132
 
detecta autom�ticamente, y es tambi�n la arquitectura de destino por omisi�n
133
 
para la m�quina anfitri�n.
134
 
.TP 
135
 
\fB\-t\fP\fItipo\-sistema\-gnu\fP
136
 
Define el tipo de sistema GNU para el cual se construye el paquete. Se puede
137
 
utilizar en lugar de �\-a�, o como un complemento para invalidar el tipo de
138
 
sistema GNU predefinido de la arquitectura Debian de destino.
139
 
.TP 
140
 
\fB\-P\fP\fIprofile\fP[\fB,\fP...]
141
 
Specify the profile(s) we build, as a comma\-separated list, without the
142
 
"\fBprofile.\fP" namespace prefix. The default behavior is to build for no
143
 
specific profile. Also adds them (as a space separated list) to the
144
 
\fBDEB_BUILD_PROFILES\fP environment variable which allows, for example,
145
 
\fBdebian/rules\fP files to use this information for conditional builds.
146
 
.TP 
147
 
\fB\-j\fP\fItareas\fP
148
 
Number of jobs allowed to be run simultaneously, equivalent to the
149
 
\fBmake\fP(1)  option of the same name. Will add itself to the \fBMAKEFLAGS\fP
150
 
environment variable, which should cause all subsequent make invocations to
151
 
inherit the option. Also adds \fBparallel=\fP\fIjobs\fP to the
152
 
\fBDEB_BUILD_OPTIONS\fP environment variable which allows debian/rules files to
153
 
use this information for their own purposes.  The \fBparallel=\fP\fIjobs\fP in
154
 
\fBDEB_BUILD_OPTIONS\fP environment variable will override the \fB\-j\fP value if
155
 
this option is given.
156
 
.TP 
157
 
\fB\-D\fP
158
 
Verifica las dependencias y los conflictos de construcci�n, interrumpiendo
159
 
el proceso si alguna no est� satisfecha. Este es el comportamiento por
160
 
omisi�n.
161
 
.TP 
162
 
\fB\-d\fP
163
 
No revisa dependencias ni conflictos de construcci�n.
164
 
.TP 
165
 
\fB\-nc\fP
166
 
No limpia el �rbol de fuentes (implica \fB\-b\fP si no se introdujo \fB\-B\fP, \fB\-A\fP
167
 
o \fB\-S\fP).
168
 
.TP 
169
 
\fB\-tc\fP
170
 
Limpia el �rbol de fuentes (usando \fIorden\-para\-obtener\-root\fP \fBdebian/rules
171
 
clean\fP) despu�s de la creaci�n del paquete.
172
 
.TP 
173
 
\fB\-r\fP\fIorden\-para\-obtener\-root\fP
174
 
Cuando \fBdpkg\-buildpackage\fP necesite ejecutar parte del proceso de
175
 
construcci�n como �root�, a�ade el prefijo \fIorden\-para\-obtener\-root\fP a la
176
 
orden a ejecutar en caso de haberse especificado. La
177
 
\fIorden\-para\-obtener\-root\fP debe ser el nombre de un programa que est� dentro
178
 
del \fBPATH\fP, y tomar� como argumentos el nombre del proceso a ejecutar, as�
179
 
como los argumentos que �ste toma. La \fIorden\-para\-obtener\-root\fP puede
180
 
incluir par�metros, pero no caracteres especiales del int�rprete de
181
 
�rdenes. La \fIorden\-para\-obtener\-root\fP puede ser \fBfakeroot\fP, \fBsudo\fP,
182
 
\fBsuper\fP o \fBreally\fP. \fBsu\fP no es adecuado ya que s�lo puede iniciar el
183
 
int�rprete de �rdenes del usuario con \fB\-c\fP, en lugar de introducir los
184
 
argumentos individualmente a la orden a ejecutar.
185
 
.TP 
186
 
\fB\-R\fP\fIfichero\-reglas\fP
187
 
Habitualmente, construir un paquete de Debian incluye ejecutar
188
 
\fBdebian/rules\fP como una orden con varios par�metros est�ndar. Esta opci�n
189
 
posibilita ejecutar otro programa para construir el paquete (puede incluir
190
 
par�metros separados por espacios). Por otra parte, se puede utilizar para
191
 
ejecutar el fichero de reglas (�rules�) est�ndar con otro programa de make
192
 
(por ejemplo, usando \fB/usr/local/bin/make \-f debian/rules\fP como
193
 
\fIfichero\-reglas\fP.
194
 
.TP 
195
 
\fB\-p\fP\fIorden\-para\-firmar\fP
196
 
When \fBdpkg\-buildpackage\fP needs to execute GPG to sign a source control
197
 
(\fB.dsc\fP) file or a \fB.changes\fP file it will run \fIsign\-command\fP (searching
198
 
the \fBPATH\fP if necessary) instead of \fBgpg2\fP or \fBgpg\fP. \fIsign\-command\fP will
199
 
get all the arguments that \fBgpg2\fP or \fBgpg\fP would have
200
 
gotten. \fIsign\-command\fP should not contain spaces or any other shell
201
 
metacharacters.
202
 
.TP 
203
 
\fB\-k\fP\fIllave\-id\fP
204
 
Especifica una llave de identificaci�n a utilizar para firmar los paquetes.
205
 
.TP 
206
 
\fB\-us\fP
207
 
No firma el paquete fuente.
208
 
.TP 
209
 
\fB\-uc\fP
210
 
No firma el fichero \fB.changes\fP.
211
 
.TP 
212
 
\fB\-\-force\-sign\fP
213
 
Force the signing of the resulting files (since dpkg 1.17.0), regardless of
214
 
\fB\-us\fP or \fB\-uc\fP or other internal heuristics.
215
 
.TP 
216
 
\fB\-i\fP[\fIregex\fP]
217
 
.TQ
218
 
\fB\-I\fP[\fIpattern\fP]
219
 
.TQ
220
 
\fB\-s\fP[\fBnsAkurKUR\fP]
221
 
.TQ
222
 
\fB\-z\fP, \fB\-Z\fP
223
 
Se introduce sin cambios a \fBdpkg\-source\fP. Consulte la p�gina de manual.
224
 
.TP 
225
 
\fB\-\-source\-option=\fP\fIopci�n\fP
226
 
Introduce la opci�n \fIopci�n\fP a \fBdpkg\-source\fP.
227
 
.TP 
228
 
\fB\-\-changes\-option=\fP\fIopci�n\fP
229
 
Introduce la opci�n \fIopci�n\fP a \fBdpkg\-genchanges\fP.
230
 
.TP 
231
 
\fB\-\-admindir=\fP\fIdirectorio\fP
232
 
.TQ
233
 
\fB\-\-admindir\fP \fIdirectorio\fP
234
 
Cambia el directorio con la base de datos de \fBdpkg\fP. Por omisi�n es
235
 
\fI/var/lib/dpkg\fP.
236
 
.TP 
237
 
\fB\-?\fP, \fB\-\-help\fP
238
 
Muestra el modo de uso y termina.
239
 
.TP 
240
 
\fB\-\-version\fP
241
 
Muestra la versi�n y termina.
242
 
.
243
 
.SH ENTORNO
244
 
.TP 
245
 
\fBDEB_SIGN_KEYID\fP
246
 
If set, it will be used to sign the \fB.changes\fP and \fB.dsc\fP files.
247
 
Overridden by the \fB\-k\fP option.
248
 
.TP 
249
 
\fBDEB_BUILD_PROFILES\fP
250
 
If set, it will be used as the active build profile(s) for the package being
251
 
built. It is a space separated list of profile names, without the
252
 
"\fBprofile.\fP" namespace prefix. Overridden by the \fB\-P\fP option.
253
 
 
254
 
.SS "Reliance on exported environment flags"
255
 
A�n en el caso de que \fBdpkg\-buildpackage\fP exporte algunas variables,
256
 
\fBdebian/rules\fP no deber�a depender de su presencia, sino que deber�a
257
 
utilizar la interfaz adecuada para obtener los valores necesarios.
258
 
.SS "Variables definidas por dpkg\-architecture"
259
 
\fBdpkg\-architecture\fP se ejecuta con los par�metros \fB\-a\fP y \fB\-t\fP. Toda
260
 
variable que ofrece una salida mediante su opci�n \fB\-s\fP se integra en el
261
 
entorno de construcci�n.
262
 
.
263
 
.SH NOTAS
264
 
.SS "Las opciones de compilaci�n ya no se exportan."
265
 
Between dpkg 1.14.17 and 1.16.1, \fBdpkg\-buildpackage\fP exported compiler
266
 
flags (\fBCFLAGS\fP, \fBCXXFLAGS\fP, \fBFFLAGS\fP, \fBCPPFLAGS\fP and \fBLDFLAGS\fP) with
267
 
values as returned by \fBdpkg\-buildflags\fP. This is no longer the case.
268
 
.SS "Default build targets"
269
 
\fBdpkg\-buildpackage\fP is using the \fBbuild\-arch\fP and \fBbuild\-indep\fP targets
270
 
since dpkg 1.16.2. Those targets are thus mandatory. But to avoid breakages
271
 
of existing packages, and ease the transition, it will fallback to using the
272
 
\fBbuild\fP target if \fBmake \-f debian/rules \-qn\fP \fIbuild\-target\fP returns 2 as
273
 
exit code.
274
 
.SH FALLOS
275
 
Deber�a ser posible especificar espacios y caracteres especiales del
276
 
int�rprete de �rdenes en los argumentos iniciales de la
277
 
\fIorden\-para\-obtener\-root\fP y la \fIorden\-para\-firmar\fP.
278
 
.
279
 
.SH "V�ASE TAMBI�N"
280
 
.ad l
281
 
.nh
282
 
\fBdpkg\-source\fP(1), \fBdpkg\-architecture\fP(1), \fBdpkg\-buildflags\fP(1),
283
 
\fBdpkg\-genchanges\fP(1), \fBfakeroot\fP(1), \fBgpg2\fP(1), \fBgpg\fP(1).
284
 
.SH TRADUCTOR
285
 
Rudy Godoy <rudy@kernel\-panik.org>,
286
 
Rub�n Porras <nahoo@inicia.es>,
287
 
Bruno Barrera C. <bruno.barrera@igloo.cl>,
288
 
Carlos Izquierdo <gheesh@ertis.net>,
289
 
Esteban Manchado y
290
 
NOK.
291
 
Debian L10n Spanish <debian\-l10n\-spanish@lists.debian.org>.
292
 
.br
293
 
Revisiones por Santiago Vila <sanvila@unex.es>,
294
 
Javier Fern�ndez\-Sanguino, Rub�n Porras,
295
 
Luis Uribe y Omar Campagne.