2010-12-11 14:12:02 -08:00
|
|
|
.TH BACKPORTPACKAGE "1" "December 2010" "ubuntu-dev-tools"
|
|
|
|
.SH NAME
|
|
|
|
backportpackage \- helper to test package backports
|
|
|
|
.SH SYNOPSIS
|
2010-12-12 19:16:59 -08:00
|
|
|
.TP
|
|
|
|
.B backportpackage \fR[\fIadditional options\fR]
|
|
|
|
\-\-upload <\fIupload target\fR>
|
|
|
|
.br
|
2010-12-16 01:05:29 -08:00
|
|
|
<\fIsource package name or .dsc URL/file\fR>
|
2010-12-12 19:16:59 -08:00
|
|
|
.PP
|
|
|
|
.B backportpackage \-h
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2010-12-15 20:19:28 -08:00
|
|
|
.B \-d \fIDEST\fR, \-\-destination=\fIDEST\fR
|
2010-12-18 12:16:24 -08:00
|
|
|
Backport the package to the specified Ubuntu release. If this option
|
|
|
|
is unspecified, then \fBbackportpackage\fR defaults to the release on
|
|
|
|
which it is currently running.
|
2010-12-12 19:16:59 -08:00
|
|
|
.TP
|
2010-12-15 20:19:28 -08:00
|
|
|
.B \-s \fISOURCE\fR, \-\-source=\fISOURCE\fR
|
2010-12-12 19:16:59 -08:00
|
|
|
Backport the package from the specified Ubuntu release. If neither
|
|
|
|
this option nor \fB\-\-version\fR are specified, then
|
|
|
|
\fBbackportpackage\fR defaults to the current Ubuntu development
|
|
|
|
release.
|
|
|
|
.TP
|
2010-12-18 12:16:02 -08:00
|
|
|
.B \-S \fISUFFIX\fR, \-\-suffix=\fISUFFIX\fR
|
|
|
|
Add the specified suffix to the version number when
|
|
|
|
backporting. \fBbackportpackage\fR will always append
|
|
|
|
~\fIDESTINATION\fR1 to the original version number, and if
|
|
|
|
\fISUFFIX\fR is specified, it is appended to that, to get version
|
|
|
|
numbers of the form
|
|
|
|
\fIORIGINAL_VERSION\fR~\fIDESTINATION\fR1\fISUFFIX\fR. If the
|
|
|
|
backported package is being uploaded to a PPA, then \fISUFFIX\fR
|
|
|
|
defaults to \fB~ppa1\fR, otherwise the default is blank.
|
|
|
|
.TP
|
2010-12-12 20:11:49 -08:00
|
|
|
.B \-b, \-\-build
|
|
|
|
Build the package with the specified builder before uploading. Note
|
|
|
|
for \fBpbuilder\fR(8) users: This assumes the common configuration,
|
|
|
|
where the \fBDIST\fR environment is read by \fBpbuilderrc\fR(5) to
|
|
|
|
select the correct base image.
|
|
|
|
.TP
|
|
|
|
.B \-B \fIBUILDER\fR, \fB\-\-builder\fR=\fIBUILDER
|
|
|
|
Use the specified builder to build the package. Supported are
|
2010-12-17 14:06:35 +01:00
|
|
|
\fBpbuilder\fR(8), \fBpbuilder-dist\fR(1), and \fBsbuild\fR(1). This overrides
|
2010-12-12 20:11:49 -08:00
|
|
|
\fBUBUNTUTOOLS_BUILDER\fR. The default is \fBpbuilder\fR(8).
|
|
|
|
.TP
|
2010-12-13 04:00:14 -08:00
|
|
|
.B \-U, \-\-update
|
2010-12-17 11:46:33 +01:00
|
|
|
Update the build environment before attempting to build.
|
2010-12-13 04:00:14 -08:00
|
|
|
.TP
|
2010-12-12 20:11:49 -08:00
|
|
|
.B \-u \fIUPLOAD\fR, \-\-upload=\fIUPLOAD\fR
|
|
|
|
Upload to \fIUPLOAD\fR with \fBdput\fR(1) (after confirmation).
|
|
|
|
.TP
|
2010-12-18 12:29:38 -08:00
|
|
|
.B \-y, \-\-yes
|
|
|
|
Do not prompt before uploading to a PPA. For everyone's safety, this
|
|
|
|
option is ignored if \fIUPLOAD\fR is \fBubuntu\fR.
|
|
|
|
.TP
|
2010-12-12 20:11:49 -08:00
|
|
|
.B \-v \fIVERSION\fR, \-\-version=\fIVERSION\fR
|
2010-12-15 20:19:28 -08:00
|
|
|
If the \fB\-\-source\fR option is specified, then
|
|
|
|
\fBbackportpackage\fR verifies that the current version of \fIsource
|
|
|
|
package\fR in \fISOURCE\fR is the same as \fIVERSION\fR. Otherwise,
|
2010-12-12 19:16:59 -08:00
|
|
|
\fBbackportpackage\fR finds version \fIVERSION\fR of \fIsource
|
|
|
|
package\fR, regardless of the release in which it was published (or if
|
2010-12-16 01:05:29 -08:00
|
|
|
that version is still current). This option is ignored if a .dsc URL
|
|
|
|
or path is passed in instead of a source package name.
|
2010-12-12 19:16:59 -08:00
|
|
|
.TP
|
2010-12-16 00:06:57 -08:00
|
|
|
.B \-w \fIWORKDIR\fR, \-\-workdir=\fIWORKDIR\fR
|
|
|
|
If \fIWORKDIR\fR is specified, then all files are downloaded,
|
|
|
|
unpacked, built into, and otherwise manipulated in
|
|
|
|
\fIWORKDIR\fR. Otherwise, a temporary directory is created, which is
|
|
|
|
deleted before \fIbackportpackage\fR exits.
|
|
|
|
.TP
|
2010-12-12 20:11:49 -08:00
|
|
|
.B \-l \fIINSTANCE\fR, \-\-launchpad=\fIINSTANCE\fR
|
2010-12-12 19:16:59 -08:00
|
|
|
Use the specified instance of Launchpad (e.g. "staging"), instead of
|
|
|
|
the default of "production".
|
2010-12-20 01:07:17 +02:00
|
|
|
.TP
|
|
|
|
.B \-\-no\-conf\fR, \fB\-\-noconf
|
|
|
|
Do not read any configuration files.
|
|
|
|
This can only be used as the first option given on the command\-line.
|
2010-12-11 14:12:02 -08:00
|
|
|
.SH DESCRIPTION
|
2010-12-16 01:05:29 -08:00
|
|
|
\fBbackportpackage\fR fetches a package from one Ubuntu release or
|
|
|
|
from a specified .dsc path or URL and creates a no-change backport of
|
|
|
|
that package to a previous release, optionally doing a test build of
|
|
|
|
the package and/or uploading the resulting backport for testing.
|
2010-12-11 14:12:02 -08:00
|
|
|
.PP
|
2010-12-16 01:05:29 -08:00
|
|
|
Unless a working directory is specified, the backported package is
|
|
|
|
fetched and built in a temporary directory in \fB/tmp\fR, which is
|
|
|
|
removed once the script finishes running.
|
2010-12-11 15:49:49 -08:00
|
|
|
.PP
|
2010-12-12 19:16:59 -08:00
|
|
|
\fBbackportpackage\fR is only recommended for testing backports in a
|
2010-12-11 14:12:02 -08:00
|
|
|
PPA, not uploading backports to the Ubuntu archive.
|
2010-12-19 22:32:53 +02:00
|
|
|
.SH CONFIGURATION VARIABLES
|
2010-12-20 01:08:07 +02:00
|
|
|
The following variables can be set in the environment or in
|
2010-12-19 22:32:53 +02:00
|
|
|
.BR ubuntu\-dev\-tools (5)
|
|
|
|
configuration files:
|
2010-12-12 20:11:49 -08:00
|
|
|
.TP
|
2010-12-19 22:32:53 +02:00
|
|
|
.BR BACKPORTPACKAGE_BUILDER ", " UBUNTUTOOLS_BUILDER
|
|
|
|
The default value for \fB\-\-builder\fR.
|
|
|
|
.TP
|
|
|
|
.BR BACKPORTPACKAGE_UPDATE_BUILDER ", " UBUNTUTOOLS_UPDATE_BUILDER
|
|
|
|
The default value for \fB--update\fR.
|
|
|
|
.TP
|
|
|
|
.BR BACKPORTPACKAGE_LPINSTANCE ", " UBUNTUTOOLS_LPINSTANCE
|
|
|
|
The default value for \fB--launchpad\fR.
|
2010-12-15 21:18:48 -08:00
|
|
|
.SH EXAMPLES
|
|
|
|
Test-build in your PPA a backport of znc from the current development
|
2010-12-16 00:06:57 -08:00
|
|
|
release to your workstation's release, deleting the build products
|
|
|
|
afterwards:
|
2010-12-15 21:18:48 -08:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
.B backportpackage -u ppa:\fIuser\fR/\fIppa\fB znc
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
Backport squashfs-tools from Maverick to both Karmic and Lucid and
|
2010-12-16 00:06:57 -08:00
|
|
|
test-build both locally, leaving all build products in the current
|
|
|
|
working directory:
|
2010-12-15 21:18:48 -08:00
|
|
|
.IP
|
|
|
|
.nf
|
2010-12-16 01:05:29 -08:00
|
|
|
.B backportpackage -b -s maverick -d karmic -d lucid -w . \\\\
|
|
|
|
.B " "squashfs-tools
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
Fetch a package from a PPA, backport it to Hardy, then upload it back
|
|
|
|
to the same PPA:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
.B backportpackage -d hardy -u ppa:\fIuser\fR/\fIppa\fR \\\\
|
|
|
|
.B " "https://launchpad.net/\fIsome/file.dsc\fR
|
2010-12-15 21:18:48 -08:00
|
|
|
.fi
|
2010-12-19 22:32:53 +02:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR ubuntu\-dev\-tools (5)
|
2010-12-11 14:12:02 -08:00
|
|
|
.SH AUTHOR
|
2010-12-12 19:16:59 -08:00
|
|
|
\fBbackportpackage\fR and this manpage were written by Evan Broder
|
2010-12-11 14:12:02 -08:00
|
|
|
<evan@ebroder.net>
|
|
|
|
.PP
|
|
|
|
Both are released under GNU General Public License, version 2.
|