10
We build Ubuntu ``.deb`` packages for Bazaar as an important part of the release
11
process. These packages are hosted in a few `Personal Package Archives (PPA)`__ on
10
We build Ubuntu ``.deb`` packages for Bazaar as an important part of the
11
release process. These packages are hosted in a few `Personal Package
12
Archives (PPA)`__ on Launchpad.
14
14
__ https://help.launchpad.net/PPAQuickStart
16
As of June 2010, there are three PPAs:
16
As of September 2010, there are four PPAs:
18
<https://launchpad.net/~bzr/+archive>
18
<https://launchpad.net/~bzr/+archive/ppa>
19
19
Final released versions and updates.
20
Most users who want updates to bzr should add this.
22
<https://launchpad.net/~bzr/+archive/proposed>
23
Proposed uploads to move into ~bzr, awaiting testing.
21
25
<https://launchpad.net/~bzr-beta-ppa/+archive>
24
28
<https://launchpad.net/~bzr-nightly-ppa/+archive>
25
29
Automatic nightly builds from trunk.
27
We build packages for every supported Ubuntu release
28
<https://wiki.ubuntu.com/Releases>. Packages need no longer be updated
29
when the release passes end-of-life because all users should
30
have upgraded by then.
32
31
We build a distinct package for each distrorelease.
33
32
If you upload a release-specific version, you should add a suffix to the
34
33
package version, e.g. ``bzr.1.3-1~bazaar1~dapper1``.
43
42
The packaging information is kept in branches of bzr on Launchpad, named
45
<https://code.launchpad.net/~bzr/bzr/packaging-hardy>.
44
<https://code.launchpad.net/~bzr/ubuntu/hardy/bzr/bzr-ppa>.
47
<lp:~bzr/bzr/packaging-hardy>. These branches are intended to be used
46
<lp:~bzr/ubuntu/hardy/bzr/bzr-ppa>. These branches are intended to be used
48
47
with the ``bzr-builddeb`` plugin.
49
**You should almost always upload to the beta ppa first** and then either
50
upload again or copy the packages into the release ppa. That reduces the
51
risk of breaking the main archive from which people get bzr updates.
57
We build packages for every supported Ubuntu release
58
<https://wiki.ubuntu.com/Releases>. Packages need no longer be updated
59
when the release passes end-of-life because all users should
60
have upgraded by then.
62
As of August 2010, the following releases are supported:
67
* Jaunty (support ends October 2010)
69
* Dapper LTS (supported but no longer updated for new releases)
71
The ``rmadison bzr`` command will gives you an up-to-date summary
72
of which bzr releases are current in each Ubuntu release.
56
80
* You must have a GPG key registered to your Launchpad account.
58
* Configure ``dput`` to upload to our PPA with this section in your
62
fqdn = ppa.launchpad.net
64
incoming = ~bzr-beta-ppa/ubuntu
66
allow_unsigned_uploads = 0
69
fqdn = ppa.launchpad.net
71
incoming = ~bzr/ubuntu
73
allow_unsigned_uploads = 0
75
You may also want to add these lines to prevent inadvertently attempting
76
to upload into Ubuntu or Debian, which will give a somewhat unclear
82
On reasonably recent versions of Ubuntu you no longer need special dput
83
configuration, because you can just say ::
85
dput ppa:bzr/proposed <source.changes
88
However, you may still want to add these lines to ``~/.dput.cf`` prevent
89
inadvertently attempting to upload into Ubuntu or Debian, which will
90
give a somewhat unclear error::
80
93
default_host_main = notspecified
119
Overview of packaging with builddeb
120
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122
* First update the oldest supported branch, using ``bzr merge-upstream``.
124
* Run ``bzr builddeb -S -- -sa`` to build a source package, then put
127
(``-S`` says to make a source-only upload, which is
128
required for Launchpad's builders. ``--sa`` says to include the
129
``.orig.tgz`` even if this doesn't seem to be the first upload for an
130
upstream release: this is often needed when rebuilding something that's
131
previously been uploaded to Debian or Ubuntu or into a different PPA.)
133
* Now merge across that change into each supported branch with a
134
simple ``bzr merge``.
136
Locally testing using pbuilder
137
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139
It may be useful to locally test builds inside pbuilder. You may want to
140
use the script from <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=255165>
141
to wrap it, and to give it sensible defaults for your local machine.
143
Update all packages in proposed before copping the main ppa
144
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
146
If one updates bzr, and there are plugins that are not compatible with the
147
new version of bzr, this can cause pain for users using the ppa. In order to
148
avoid this, we first get all packages up to date in the proposed ppa, and then
149
copy them to the main ppa.
114
160
export PACKAGE="bzr"
115
161
export UBUNTU_RELEASES="dapper hardy intrepid jaunty karmic"
116
162
~/dev/bzr/bzr.dev/tools/packaging/update-packaging-branches.sh
163
* Optionaly merge debian unstable.
117
164
~/dev/bzr/bzr.dev/tools/packaging/update-changelogs.sh
118
165
~/dev/bzr/bzr.dev/tools/packaging/update-control.sh 1.16 1.17 1.18
119
166
~/dev/bzr/bzr.dev/tools/packaging/build-packages.sh
120
dput bzr-beta-ppa ${PACKAGE}_$VERSION*.changes
167
dput ppa:bzr/proposed ${PACKAGE}_$VERSION*.changes
122
169
Rinse and repeat for all the plugins by changing VERSION and PACKAGE.
160
207
#. Checkout (or update) the packaging branch for each supported release::
162
bzr co lp:~bzr/bzr/packaging-hardy
209
bzr co lp:~bzr/ubuntu/hardy/bzr/bzr-ppa
164
211
There is a script available to help::
166
213
tools/packaging/update-packaging-branches.sh
215
#. Optionaly, merge the Debian unstable branch into each of the packaging
216
branches. You can find the Debian unstable branch here:
217
http://bzr.debian.org/pkg-bazaar/
168
219
#. The ``bzr-builddeb`` step will download the original tarball if you do
169
220
not already have it, putting it into a ``tarballs`` directory.
221
272
#. Build the source packages::
223
cd packaging-$DISTRO; bzr builddeb -S
274
cd bzr-$DISTRO; bzr builddeb -S
225
276
This will create a ``.changes`` file. If you didn't configure builddeb
226
277
to automatically sign them, you can use ::
235
286
tools/packaging/build-packages.sh
237
#. Upload into the beta PPA for each release::
239
dput bzr-beta-ppa bzr*1.17-1*.changes
241
#. For final release versions, also copy it into the ``~bzr`` PPA::
243
dput bzr-ppa ../bzr_1.17-1\~bazaar1\~hardy1\_source.changes
245
Alternatively, you can use Launchpad's "copy" feature to copy the
246
packages between repositories.
288
#. Upload into the PPA for each release::
290
dput dput ppa:bzr/proposed bzr*1.17-1*.changes
248
292
#. You should soon get an "upload accepted" mail from Launchpad, which
249
293
means that your package is waiting to be built. You can then track its
285
329
summary of current package versions with::
287
331
apt-cache madison bzr
334
Testing the contents of the PPA
335
-------------------------------
337
A somewhat crude but useful way to test the contents of the PPA is to
338
install the relevant packages into an schroot::
340
schroot -c hardy-test -u root -- \
341
apt-get install -o 'APT::Install-Suggests="true"' \
342
-o 'APT::Install-Recommends="true"' \
345
This should make sure everything can be installed; it won't guarantee that
348
Packaging dependencies
349
----------------------
351
Some of our updates to bzr in previous releases require backports of our
352
dependencies. Specific branches holding these backports:
354
* ``lp:~bzr/ubuntu/dapper/configobj/dapper-backport``