/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/developers/ppa.txt

  • Committer: Vincent Ladeuil
  • Date: 2011-07-06 08:58:15 UTC
  • mfrom: (5609.48.2 2.3)
  • mto: (6012.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6013.
  • Revision ID: v.ladeuil+lp@free.fr-20110706085815-6leauod52jq2u43d
MergingĀ inĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
Background
8
8
----------
9
9
 
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
12
 
Launchpad.
 
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.
13
13
 
14
14
  __ https://help.launchpad.net/PPAQuickStart
15
15
 
16
 
As of June 2010, there are three PPAs:
 
16
As of January 2011, there are the following PPAs:
17
17
 
18
 
<https://launchpad.net/~bzr/+archive>
 
18
<https://launchpad.net/~bzr/+archive/ppa>
19
19
    Final released versions and updates.
20
 
 
21
 
<https://launchpad.net/~bzr-beta-ppa/+archive>
 
20
    Most users who want updates to bzr should add this.
 
21
 
 
22
<https://launchpad.net/~bzr/+archive/proposed>
 
23
    Proposed uploads to move into ~bzr/ppa, awaiting testing.
 
24
 
 
25
<https://launchpad.net/~bzr/+archive/obsolete>
 
26
    A preserved copy of the final version of packages from ~bzr/ppa for
 
27
    obsolete Ubuntu series.
 
28
 
 
29
<https://launchpad.net/~bzr-beta-ppa/+archive/ppa>
22
30
    Beta releases.
23
31
 
24
 
<https://launchpad.net/~bzr-nightly-ppa/+archive>
 
32
<https://launchpad.net/~bzr-beta-ppa/+archive/obsolete>
 
33
    A preserved copy of the final version of packages from
 
34
    ~bzr-beta-ppa/ppa for obsolete Ubuntu series.
 
35
 
 
36
<https://launchpad.net/~bzr/+archive/daily>
25
37
    Automatic nightly builds from trunk.
26
38
 
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.  
31
 
 
32
 
We build a distinct package for each distrorelease.  
 
39
We build a distinct package for each distrorelease.
33
40
If you upload a release-specific version, you should add a suffix to the
34
 
package version, e.g. ``bzr.1.3-1~bazaar1~dapper1``.
 
41
package version, e.g. ``1.3-1~bazaar1~dapper1``.
35
42
 
36
43
Dapper uses the ``python-support`` framework and later distributions use
37
44
``python-central``.  This has little effect on everyday packaging but does
42
49
 
43
50
The packaging information is kept in branches of bzr on Launchpad, named
44
51
like
45
 
<https://code.launchpad.net/~bzr/bzr/packaging-hardy>.
 
52
<https://code.launchpad.net/~bzr/ubuntu/hardy/bzr/bzr-ppa>.
46
53
or
47
 
<lp:~bzr/bzr/packaging-hardy>.  These branches are intended to be used
 
54
<lp:~bzr/ubuntu/hardy/bzr/bzr-ppa>.  These branches are intended to be used
48
55
with the ``bzr-builddeb`` plugin.
49
56
 
 
57
**You should almost always upload to the proposed or beta ppa first** and
 
58
then copy the packages into the release ppa.  That reduces the 
 
59
risk of breaking the main archive from which people get bzr updates.
 
60
 
 
61
 
 
62
Supported releases
 
63
------------------
 
64
 
 
65
We build packages for every supported Ubuntu release
 
66
<https://wiki.ubuntu.com/Releases>.  Packages need no longer be updated
 
67
when the release passes end-of-life because all users should
 
68
have upgraded by then.  
 
69
 
 
70
As of August 2010, the following releases are supported:
 
71
 
 
72
* Maverick 
 
73
* Lucid LTS
 
74
* Karmic
 
75
* Jaunty (support ends October 2010)
 
76
* Hardy LTS
 
77
* Dapper LTS (supported but no longer updated for new releases)
 
78
 
 
79
The ``rmadison bzr`` command will gives you an up-to-date summary
 
80
of which bzr releases are current in each Ubuntu release.
 
81
 
50
82
Preconditions
51
83
-------------
52
84
 
55
87
 
56
88
* You must have a GPG key registered to your Launchpad account.
57
89
 
58
 
* Configure ``dput`` to upload to our PPA with this section in your
59
 
  ``~/.dput.cf``::
60
 
 
61
 
    [bzr-beta-ppa]
62
 
    fqdn = ppa.launchpad.net
63
 
    method = ftp
64
 
    incoming = ~bzr-beta-ppa/ubuntu
65
 
    login = anonymous
66
 
    allow_unsigned_uploads = 0
67
 
 
68
 
    [bzr-ppa]
69
 
    fqdn = ppa.launchpad.net
70
 
    method = ftp
71
 
    incoming = ~bzr/ubuntu
72
 
    login = anonymous
73
 
    allow_unsigned_uploads = 0
74
 
 
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
77
 
  error::
 
90
On reasonably recent versions of Ubuntu you no longer need special dput
 
91
configuration, because you can just say ::
 
92
 
 
93
  dput ppa:bzr/proposed source.changes
 
94
  
 
95
 
 
96
However, you may still want to add these lines to ``~/.dput.cf`` prevent 
 
97
inadvertently attempting to upload into Ubuntu or Debian, which will
 
98
give a somewhat unclear error::
78
99
 
79
100
    [DEFAULT]
80
101
    default_host_main = notspecified
103
124
Packaging Bazaar
104
125
----------------
105
126
 
 
127
Overview of packaging with builddeb
 
128
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
129
 
 
130
* First update the oldest supported branch, using ``bzr merge-upstream``.
 
131
 
 
132
* Run ``bzr builddeb -S -- -sa`` to build a source package, then put 
 
133
  that into the ppa.  
 
134
  
 
135
  (``-S`` says to make a source-only upload, which is
 
136
  required for Launchpad's builders.  ``--sa`` says to include the
 
137
  ``.orig.tgz`` even if this doesn't seem to be the first upload for an
 
138
  upstream release: this is often needed when rebuilding something that's
 
139
  previously been uploaded to Debian or Ubuntu or into a different PPA.)
 
140
 
 
141
* Now merge across that change into each supported branch with a 
 
142
  simple ``bzr merge``.
 
143
  
 
144
Locally testing using pbuilder
 
145
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
146
 
 
147
It may be useful to locally test builds inside pbuilder.  You may want to 
 
148
use the script from <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=255165> 
 
149
to wrap it, and to give it sensible defaults for your local machine.
 
150
 
 
151
Update all packages in proposed before copying to the main ppa
 
152
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
153
 
 
154
If one updates bzr, and there are plugins that are not compatible with the
 
155
new version of bzr, this can cause pain for users using the ppa. In order to
 
156
avoid this, we first get all packages up to date in the proposed ppa, and then
 
157
copy them to the main ppa.
 
158
 
 
159
 
106
160
Short form
107
161
~~~~~~~~~~
108
162
 
114
168
  export PACKAGE="bzr"
115
169
  export UBUNTU_RELEASES="dapper hardy intrepid jaunty karmic"
116
170
  ~/dev/bzr/bzr.dev/tools/packaging/update-packaging-branches.sh
 
171
  * Optionaly merge debian unstable. 
117
172
  ~/dev/bzr/bzr.dev/tools/packaging/update-changelogs.sh
118
173
  ~/dev/bzr/bzr.dev/tools/packaging/update-control.sh 1.16 1.17 1.18
119
174
  ~/dev/bzr/bzr.dev/tools/packaging/build-packages.sh
120
 
  dput bzr-beta-ppa ${PACKAGE}_$VERSION*.changes
 
175
  dput ppa:bzr/proposed ${PACKAGE}_$VERSION*.changes
121
176
 
122
177
Rinse and repeat for all the plugins by changing VERSION and PACKAGE.
123
178
 
159
214
 
160
215
#. Checkout (or update) the packaging branch for each supported release::
161
216
 
162
 
      bzr co lp:~bzr/bzr/packaging-hardy
 
217
      bzr co lp:~bzr/ubuntu/hardy/bzr/bzr-ppa
163
218
 
164
219
   There is a script available to help::
165
220
 
166
221
      tools/packaging/update-packaging-branches.sh
167
222
 
 
223
#. Optionaly, merge the Debian unstable branch into each of the packaging
 
224
   branches. You can find the Debian unstable branch here:
 
225
   http://bzr.debian.org/pkg-bazaar/
 
226
 
168
227
#. The ``bzr-builddeb`` step will download the original tarball if you do
169
228
   not already have it, putting it into a ``tarballs`` directory.
170
229
 
220
279
 
221
280
#. Build the source packages::
222
281
 
223
 
      cd packaging-$DISTRO; bzr builddeb -S
 
282
      cd bzr-$DISTRO; bzr builddeb -S
224
283
 
225
284
   This will create a ``.changes`` file.  If you didn't configure builddeb
226
285
   to automatically sign them, you can use ::
234
293
 
235
294
      tools/packaging/build-packages.sh
236
295
 
237
 
#. Upload into the beta PPA for each release::
238
 
 
239
 
     dput bzr-beta-ppa bzr*1.17-1*.changes
240
 
 
241
 
#. For final release versions, also copy it into the ``~bzr`` PPA::
242
 
 
243
 
     dput bzr-ppa ../bzr_1.17-1\~bazaar1\~hardy1\_source.changes
244
 
 
245
 
   Alternatively, you can use Launchpad's "copy" feature to copy the
246
 
   packages between repositories.
 
296
#. Upload into the PPA for each release::
 
297
 
 
298
     dput dput ppa:bzr/proposed bzr*1.17-1*.changes
247
299
 
248
300
#. You should soon get an "upload accepted" mail from Launchpad, which
249
301
   means that your package is waiting to be built.  You can then track its
285
337
summary of current package versions with::
286
338
 
287
339
  apt-cache madison bzr
 
340
  
 
341
  
 
342
Testing the contents of the PPA
 
343
-------------------------------
 
344
 
 
345
A somewhat crude but useful way to test the contents of the PPA is to
 
346
install the relevant packages into an schroot::
 
347
 
 
348
 schroot -c hardy-test -u root -- \
 
349
   apt-get install -o 'APT::Install-Suggests="true"' \
 
350
   -o 'APT::Install-Recommends="true"' \
 
351
   bzr
 
352
 
 
353
This should make sure everything can be installed; it won't guarantee that 
 
354
  
 
355
 
 
356
Packaging dependencies
 
357
----------------------
 
358
 
 
359
Some of our updates to bzr in previous releases require backports of our
 
360
dependencies.  Specific branches holding these backports:
 
361
 
 
362
 * ``lp:~bzr/ubuntu/dapper/configobj/dapper-backport``
288
363
 
289
364
 
290
365
..