Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 7e647d9940d31b34c253e6f71c416c4b > files > 2714

bzr-2.7.0-6.mga7.aarch64.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Managing the Bazaar PPA &#8212; Bazaar 2.7.0 documentation</title>
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/language_data.js"></script>
    
    <link rel="shortcut icon" href="_static/bzr.ico"/>

    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Bazaar Windows EC2 Server" href="ec2.html" />
    <link rel="prev" title="Releasing Bazaar" href="releasing.html" />
<link rel="stylesheet" href="_static/bzr-doc.css" type="text/css" />
 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="ec2.html" title="Bazaar Windows EC2 Server"
             accesskey="N">next</a></li>
        <li class="right" >
          <a href="releasing.html" title="Releasing Bazaar"
             accesskey="P">previous</a> |</li>
<li><a href="http://bazaar.canonical.com/">
    <img src="_static/bzr icon 16.png" /> Home</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/en/">Documentation</a>&nbsp;|&nbsp;</li>

        <li class="nav-item nav-item-0"><a href="index.html">Developer Document Catalog (2.7.0)</a> &#187;</li>
 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="managing-the-bazaar-ppa">
<h1>Managing the Bazaar PPA<a class="headerlink" href="#managing-the-bazaar-ppa" title="Permalink to this headline">¶</a></h1>
<p>See also: <a class="reference external" href="index.html">Bazaar Developer Document Catalog</a>.</p>
<div class="section" id="background">
<h2>Background<a class="headerlink" href="#background" title="Permalink to this headline">¶</a></h2>
<p>We build Ubuntu <code class="docutils literal notranslate"><span class="pre">.deb</span></code> packages for Bazaar as an important part of the
release process.  These packages are hosted in a few <a class="reference external" href="https://help.launchpad.net/PPAQuickStart">Personal Package
Archives (PPA)</a> on Launchpad.</p>
<blockquote>
<div></div></blockquote>
<p>As of January 2011, there are the following PPAs:</p>
<dl class="docutils">
<dt>&lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/ppa">https://launchpad.net/~bzr/+archive/ppa</a>&gt;</dt>
<dd>Final released versions and updates.
Most users who want updates to bzr should add this.</dd>
<dt>&lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/proposed">https://launchpad.net/~bzr/+archive/proposed</a>&gt;</dt>
<dd>Proposed uploads to move into ~bzr/ppa, awaiting testing.</dd>
<dt>&lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/obsolete">https://launchpad.net/~bzr/+archive/obsolete</a>&gt;</dt>
<dd>A preserved copy of the final version of packages from ~bzr/ppa for
obsolete Ubuntu series.</dd>
<dt>&lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/beta">https://launchpad.net/~bzr/+archive/beta</a>&gt;</dt>
<dd>Beta releases.</dd>
<dt>&lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/beta-obsolete">https://launchpad.net/~bzr/+archive/beta-obsolete</a>&gt;</dt>
<dd>A preserved copy of the final version of packages from
~bzr/beta for obsolete Ubuntu series.</dd>
<dt>&lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/daily">https://launchpad.net/~bzr/+archive/daily</a>&gt;</dt>
<dd>Automatic nightly builds from trunk.</dd>
</dl>
<p>We build a distinct package for each distrorelease.
If you upload a release-specific version, you should add a suffix to the
package version, e.g. <code class="docutils literal notranslate"><span class="pre">1.3-1~bazaar1~dapper1</span></code>.</p>
<p>Dapper uses the <code class="docutils literal notranslate"><span class="pre">python-support</span></code> framework and later distributions use
<code class="docutils literal notranslate"><span class="pre">python-central</span></code>.  This has little effect on everyday packaging but does
mean that some of the control files are quite different.</p>
<p>Beta releases of bzr and plugins are uploaded into the beta PPA.</p>
<p>Final release versions are first uploaded into the proposed PPA, which
serves as a staging area to allow for new packages to be tested, and also
so that a complete set of Bazaar core and plugin updated versions can be
prepared together, when negotiating an API version transition.</p>
<p>Once ready, packages can be copied from the proposed PPA to the main PPA
using the lp-promote-ppa script found within the hydrazine project.  This
procedure reduces the risk of broken packages or dependencies between
packages in the main PPA from which many people get bzr updates.</p>
<p>The packaging information is kept in branches of bzr on Launchpad, named
like
&lt;<a class="reference external" href="https://code.launchpad.net/~bzr/ubuntu/hardy/bzr/bzr-ppa">https://code.launchpad.net/~bzr/ubuntu/hardy/bzr/bzr-ppa</a>&gt;.
or
&lt;lp:~bzr/ubuntu/hardy/bzr/bzr-ppa&gt;.  These branches are intended to be used
with the <code class="docutils literal notranslate"><span class="pre">bzr-builddeb</span></code> plugin.</p>
<p>The page &lt;<a class="reference external" href="http://wiki.bazaar.canonical.com/PpaPackagingBranches">http://wiki.bazaar.canonical.com/PpaPackagingBranches</a>&gt; is a
reference to where the PPA packaging branches for each of the source
packages in the <code class="docutils literal notranslate"><span class="pre">~bzr</span></code> PPAs may be found.</p>
</div>
<div class="section" id="supported-releases">
<h2>Supported releases<a class="headerlink" href="#supported-releases" title="Permalink to this headline">¶</a></h2>
<p>We build packages for every supported Ubuntu release
&lt;<a class="reference external" href="https://wiki.ubuntu.com/Releases">https://wiki.ubuntu.com/Releases</a>&gt;.  Packages need no longer be updated
when the release passes end-of-life because all users should
have upgraded by then.</p>
<p>As of August 2010, the following releases are supported:</p>
<ul class="simple">
<li>Maverick</li>
<li>Lucid LTS</li>
<li>Karmic</li>
<li>Jaunty (support ends October 2010)</li>
<li>Hardy LTS</li>
<li>Dapper LTS (supported but no longer updated for new releases)</li>
</ul>
<p>The <code class="docutils literal notranslate"><span class="pre">rmadison</span> <span class="pre">bzr</span></code> command will gives you an up-to-date summary
of which bzr releases are current in each Ubuntu release.</p>
</div>
<div class="section" id="preconditions">
<h2>Preconditions<a class="headerlink" href="#preconditions" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>You must have a Launchpad account and be a member of the team
that owns these PPAs (<code class="docutils literal notranslate"><span class="pre">~bzr</span></code>).</li>
<li>You must have a GPG key registered to your Launchpad account.</li>
</ul>
<p>On reasonably recent versions of Ubuntu you no longer need special dput
configuration, because you can just say</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dput</span> <span class="n">ppa</span><span class="p">:</span><span class="n">bzr</span><span class="o">/</span><span class="n">proposed</span> <span class="n">source</span><span class="o">.</span><span class="n">changes</span>
</pre></div>
</div>
<p>However, you may still want to add these lines to <code class="docutils literal notranslate"><span class="pre">~/.dput.cf</span></code> prevent
inadvertently attempting to upload into Ubuntu or Debian, which will
give a somewhat unclear error:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">DEFAULT</span><span class="p">]</span>
<span class="n">default_host_main</span> <span class="o">=</span> <span class="n">notspecified</span>
</pre></div>
</div>
<ul>
<li><p class="first">You need a Ubuntu (or probably Debian) machine, and</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">devscripts</span> <span class="n">dput</span> <span class="n">quilt</span> <span class="n">patch</span> <span class="n">libcrypt</span><span class="o">-</span><span class="n">ssleay</span><span class="o">-</span><span class="n">perl</span> <span class="n">debhelper</span> <span class="n">cdbs</span> <span class="n">python</span><span class="o">-</span><span class="n">docutils</span>
</pre></div>
</div>
<p>Please update this document if you encounter unmet dependencies or find a
shorter way to express them.</p>
</li>
<li><p class="first">You will also want to have the <a class="reference external" href="http://launchpad.net/bzr-builddeb">bzr-builddeb</a> plugin installed.</p>
</li>
</ul>
</div>
<div class="section" id="packaging-bazaar">
<h2>Packaging Bazaar<a class="headerlink" href="#packaging-bazaar" title="Permalink to this headline">¶</a></h2>
<div class="section" id="overview-of-packaging-with-builddeb">
<h3>Overview of packaging with builddeb<a class="headerlink" href="#overview-of-packaging-with-builddeb" title="Permalink to this headline">¶</a></h3>
<ul>
<li><p class="first">First update the oldest supported branch, using <code class="docutils literal notranslate"><span class="pre">bzr</span> <span class="pre">merge-upstream</span></code>.</p>
</li>
<li><p class="first">Run <code class="docutils literal notranslate"><span class="pre">bzr</span> <span class="pre">builddeb</span> <span class="pre">-S</span> <span class="pre">--</span> <span class="pre">-sa</span></code> to build a source package, then put
that into the ppa.</p>
<p>(<code class="docutils literal notranslate"><span class="pre">-S</span></code> says to make a source-only upload, which is
required for Launchpad’s builders.  <code class="docutils literal notranslate"><span class="pre">-sa</span></code> says to include the
<code class="docutils literal notranslate"><span class="pre">.orig.tgz</span></code> even if this doesn’t seem to be the first upload for an
upstream release: this is often needed when rebuilding something that’s
previously been uploaded to Debian or Ubuntu or into a different PPA.)</p>
</li>
<li><p class="first">Now merge across that change into each supported branch with a
simple <code class="docutils literal notranslate"><span class="pre">bzr</span> <span class="pre">merge</span></code>.</p>
</li>
</ul>
</div>
<div class="section" id="locally-testing-using-pbuilder">
<h3>Locally testing using pbuilder<a class="headerlink" href="#locally-testing-using-pbuilder" title="Permalink to this headline">¶</a></h3>
<p>It may be useful to locally test builds inside pbuilder.  You may want to
use the script from &lt;<a class="reference external" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=255165">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=255165</a>&gt;
to wrap it, and to give it sensible defaults for your local machine.</p>
</div>
<div class="section" id="update-all-packages-in-proposed-before-copying-to-the-main-ppa">
<h3>Update all packages in proposed before copying to the main ppa<a class="headerlink" href="#update-all-packages-in-proposed-before-copying-to-the-main-ppa" title="Permalink to this headline">¶</a></h3>
<p>If one updates bzr, and there are plugins that are not compatible with the
new version of bzr, this can cause pain for users using the ppa. In order to
avoid this, we first get all packages up to date in the proposed ppa, and then
copy them to the main ppa.</p>
</div>
<div class="section" id="short-form">
<h3>Short form<a class="headerlink" href="#short-form" title="Permalink to this headline">¶</a></h3>
<p>For people who have already set up everything they need, building the
release packages is as simple as:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>cd ~/dev/bzr/releases/packaging
export VERSION=&quot;1.17~rc1-1~bazaar1&quot;
export PACKAGE=&quot;bzr&quot;
export UBUNTU_RELEASES=&quot;dapper hardy intrepid jaunty karmic&quot;
~/dev/bzr/bzr.dev/tools/packaging/update-packaging-branches.sh
* Optionaly merge debian unstable.
~/dev/bzr/bzr.dev/tools/packaging/update-changelogs.sh
~/dev/bzr/bzr.dev/tools/packaging/update-control.sh 1.16 1.17 1.18
~/dev/bzr/bzr.dev/tools/packaging/build-packages.sh
dput ppa:bzr/proposed ${PACKAGE}_$VERSION*.changes
</pre></div>
</div>
<p>Rinse and repeat for all the plugins by changing VERSION and PACKAGE.</p>
</div>
<div class="section" id="long-form">
<h3>Long Form<a class="headerlink" href="#long-form" title="Permalink to this headline">¶</a></h3>
<ol class="arabic">
<li><p class="first">You will end up checking out a separate directory for each supported
release. Such as <code class="docutils literal notranslate"><span class="pre">~/dev/bzr/releases/packaging/hardy</span></code>. In each of these
branches, you will produce the package for the release.</p>
<p>The scripts will also create the branches and produce packages for
bzrtools and bzr-svn.</p>
</li>
<li><p class="first">Decide on the final version number.  It should be of this form:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bzr</span><span class="o">-</span><span class="mf">1.17</span><span class="o">~</span><span class="n">rc1</span><span class="o">-</span><span class="mi">1</span><span class="o">~</span><span class="n">bazaar1</span><span class="o">~</span><span class="n">hardy1</span>
</pre></div>
</div>
<p><strong>Note:</strong> There are three hyphen-separated parts: the <em>package name</em>,
the <em>upstream version</em>, and the <em>packaging version</em>.</p>
<p><strong>Caution:</strong> Upstream betas or release candidates must insert a tilde
to make them sort before the final release, like this:
<code class="docutils literal notranslate"><span class="pre">bzr-1.17~rc1-1~bazaar1~hardy1</span></code>.</p>
<p>Final releases will use a release string of the form:
<code class="docutils literal notranslate"><span class="pre">bzr-1.17-1~bazaar1~hardy1</span></code></p>
<p>Set this base of this up as a usable environment variable:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">export</span> <span class="n">VERSION</span><span class="o">=</span><span class="s2">&quot;1.17~rc1-1~bazaar1&quot;</span>
</pre></div>
</div>
</li>
<li><p class="first">Export the distroreleases that you will be packaging for:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">export</span> <span class="n">UBUNTU_RELEASES</span><span class="o">=</span><span class="s2">&quot;dapper hardy intrepid jaunty karmic&quot;</span>
</pre></div>
</div>
</li>
<li><p class="first">Export the program you are packaging:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">export</span> <span class="n">PACKAGE</span><span class="o">=</span><span class="s2">&quot;bzr&quot;</span>
</pre></div>
</div>
</li>
<li><p class="first">Checkout (or update) the packaging branch for each supported release:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bzr</span> <span class="n">co</span> <span class="n">lp</span><span class="p">:</span><span class="o">~</span><span class="n">bzr</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">hardy</span><span class="o">/</span><span class="n">bzr</span><span class="o">/</span><span class="n">bzr</span><span class="o">-</span><span class="n">ppa</span>
</pre></div>
</div>
<p>There is a script available to help:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">tools</span><span class="o">/</span><span class="n">packaging</span><span class="o">/</span><span class="n">update</span><span class="o">-</span><span class="n">packaging</span><span class="o">-</span><span class="n">branches</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
</div>
</li>
<li><p class="first">Optionaly, merge the Debian unstable branch into each of the packaging
branches. You can find the Debian unstable branch here:
<a class="reference external" href="http://bzr.debian.org/pkg-bazaar/">http://bzr.debian.org/pkg-bazaar/</a></p>
</li>
<li><p class="first">The <code class="docutils literal notranslate"><span class="pre">bzr-builddeb</span></code> step will download the original tarball if you do
not already have it, putting it into a <code class="docutils literal notranslate"><span class="pre">tarballs</span></code> directory.</p>
</li>
<li><p class="first">For Bazaar plugins, change the <code class="docutils literal notranslate"><span class="pre">debian/control</span></code> file to express a
dependency on the correct version of <code class="docutils literal notranslate"><span class="pre">bzr</span></code>.</p>
<p>For bzrtools this is typically:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>Build-Depends-Indep: bzr (&gt;= 1.17~), rsync
Depends: ${python:Depends}, bzr (&gt;= 1.17~), bzr (&lt;&lt; 1.18~), patch
</pre></div>
</div>
<p>There is a helper script which will update the control file and commit it
for all of your <code class="docutils literal notranslate"><span class="pre">$UBUNTU_RELEASES</span></code>. It is available as:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">tools</span><span class="o">/</span><span class="n">packaging</span><span class="o">/</span><span class="n">update</span><span class="o">-</span><span class="n">control</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
</div>
<p>You must supply the versions as arguments as follows
OLD_VERSION CURRENT_VERSION NEXT_VERSION, such as:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">tools</span><span class="o">/</span><span class="n">packaging</span><span class="o">/</span><span class="n">update</span><span class="o">-</span><span class="n">control</span><span class="o">.</span><span class="n">sh</span> <span class="mf">1.16</span> <span class="mf">1.17</span> <span class="mf">1.18</span>
</pre></div>
</div>
</li>
<li><p class="first">Make a new <code class="docutils literal notranslate"><span class="pre">debian/changelog</span></code> entry for the new release,
either by using <code class="docutils literal notranslate"><span class="pre">dch</span></code> or just editing the file:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dch</span> <span class="o">-</span><span class="n">v</span> <span class="s1">&#39;1.17~rc1-1~bazaar1~hardy1&#39;</span> <span class="o">-</span><span class="n">D</span> <span class="n">hardy</span>
</pre></div>
</div>
<p>dch will default to the distro you’re working in and this isn’t checked
against the version number (which is just our convention), so make sure
to specify it.</p>
<p>Make sure you have the correct email address for yourself (you may need
export DEBEMAIL=`bzr whoami` if it isn’t already set), version number, and
distribution.  It should look something like this:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bzr</span> <span class="p">(</span><span class="mf">1.17</span><span class="o">~</span><span class="n">rc1</span><span class="o">-</span><span class="mi">1</span><span class="o">~</span><span class="n">bazaar1</span><span class="o">~</span><span class="n">hardy1</span><span class="p">)</span> <span class="n">hardy</span><span class="p">;</span> <span class="n">urgency</span><span class="o">=</span><span class="n">low</span>

 <span class="o">*</span> <span class="n">New</span> <span class="n">upstream</span> <span class="n">release</span><span class="o">.</span>

<span class="o">--</span> <span class="n">John</span> <span class="n">Sample</span> <span class="o">&lt;</span><span class="n">sample</span><span class="nd">@example</span><span class="o">.</span><span class="n">com</span><span class="o">&gt;</span>  <span class="n">Mon</span><span class="p">,</span> <span class="mi">31</span> <span class="n">Mar</span> <span class="mi">2008</span> <span class="mi">12</span><span class="p">:</span><span class="mi">36</span><span class="p">:</span><span class="mi">27</span> <span class="o">+</span><span class="mi">1100</span>
</pre></div>
</div>
<p>If you need to upload the package again to fix a problem, normally you
should increment the last number in the version number, following the
distro name.  Make sure not to omit the initial <code class="docutils literal notranslate"><span class="pre">-1</span></code>, and make sure
that the distro name in the version is consistent with the target name
outside the parenthesis.</p>
<p>You will also want to commit these changes into the packaging branch.</p>
<p>There is a helper script which will build all the packages
for all of your <code class="docutils literal notranslate"><span class="pre">$UBUNTU_RELEASES</span></code>. It is available as:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">tools</span><span class="o">/</span><span class="n">packaging</span><span class="o">/</span><span class="n">update</span><span class="o">-</span><span class="n">changelogs</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
</div>
</li>
<li><p class="first">Build the source packages:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>cd bzr-$DISTRO; bzr builddeb -S
</pre></div>
</div>
<p>This will create a <code class="docutils literal notranslate"><span class="pre">.changes</span></code> file.  If you didn’t configure builddeb
to automatically sign them, you can use</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>debsign -m$UID *.changes
</pre></div>
</div>
<p>where <code class="docutils literal notranslate"><span class="pre">$UID</span></code> is the gpg key you want to use to sign the changes.</p>
<p>There is a helper script which will build the package
for all of your <code class="docutils literal notranslate"><span class="pre">$UBUNTU_RELEASES</span></code>. It is available as:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">tools</span><span class="o">/</span><span class="n">packaging</span><span class="o">/</span><span class="n">build</span><span class="o">-</span><span class="n">packages</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
</div>
</li>
<li><p class="first">Upload into the PPA for each release:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dput</span> <span class="n">dput</span> <span class="n">ppa</span><span class="p">:</span><span class="n">bzr</span><span class="o">/</span><span class="n">proposed</span> <span class="n">bzr</span><span class="o">*</span><span class="mf">1.17</span><span class="o">-</span><span class="mi">1</span><span class="o">*.</span><span class="n">changes</span>
</pre></div>
</div>
</li>
<li><p class="first">You should soon get an “upload accepted” mail from Launchpad, which
means that your package is waiting to be built.  You can then track its
progress in &lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/proposed">https://launchpad.net/~bzr/+archive/proposed</a>&gt; and
&lt;<a class="reference external" href="https://launchpad.net/~bzr/+archive/proposed/+builds">https://launchpad.net/~bzr/+archive/proposed/+builds</a>&gt;.</p>
</li>
</ol>
</div>
<div class="section" id="packaging-bzr-svn">
<h3>Packaging bzr-svn<a class="headerlink" href="#packaging-bzr-svn" title="Permalink to this headline">¶</a></h3>
<p>bzr-svn uses a packaging branch that contains both the source
(including any changes against upstream) and the <code class="docutils literal notranslate"><span class="pre">debian/</span></code> directory.</p>
<p>To build bzr-svn:</p>
<ol class="arabic">
<li><p class="first">Get a checkout of <code class="docutils literal notranslate"><span class="pre">lp:~bzr/bzr-svn/hardy-ppa/</span></code></p>
</li>
<li><p class="first">Merge from <code class="docutils literal notranslate"><span class="pre">http://bzr.debian.org/pkg-bazaar/bzr-svn/unstable/</span></code></p>
<p>This should bring in both upstream and packaging changes for the new
release, and it’s updated as part of the bzr-svn release process.</p>
<p>It’s quite possible you will need to resolve some conflicts.</p>
</li>
<li><p class="first">Run <code class="docutils literal notranslate"><span class="pre">dch</span> <span class="pre">-v</span> <span class="pre">0.4.15-1~bazaar1-hardy1</span> <span class="pre">-D</span> <span class="pre">hardy</span></code> or similar</p>
</li>
<li><p class="first">Run <code class="docutils literal notranslate"><span class="pre">bzr</span> <span class="pre">builddeb</span> <span class="pre">--source</span></code></p>
<p>bzr-builddeb will automatically check out the appropriate tag from the
main branch of bzr-svn, build, and package it.</p>
</li>
<li><p class="first"><code class="docutils literal notranslate"><span class="pre">dput</span> <span class="pre">ppa:bzr/proposed</span> <span class="pre">../bzr-svn_0.4.15-1~bazaar1~hardy1_source.changes</span></code></p>
</li>
</ol>
</div>
</div>
<div class="section" id="monitoring-the-contents-of-ppas">
<h2>Monitoring the contents of PPAs<a class="headerlink" href="#monitoring-the-contents-of-ppas" title="Permalink to this headline">¶</a></h2>
<p>If you add all the bzr PPAs to your <code class="docutils literal notranslate"><span class="pre">sources.list</span></code> then you can see a
summary of current package versions with:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">apt</span><span class="o">-</span><span class="n">cache</span> <span class="n">madison</span> <span class="n">bzr</span>
</pre></div>
</div>
</div>
<div class="section" id="testing-the-contents-of-the-ppa">
<h2>Testing the contents of the PPA<a class="headerlink" href="#testing-the-contents-of-the-ppa" title="Permalink to this headline">¶</a></h2>
<p>A somewhat crude but useful way to test the contents of the PPA is to
install the relevant packages into an schroot:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">schroot</span> <span class="o">-</span><span class="n">c</span> <span class="n">hardy</span><span class="o">-</span><span class="n">test</span> <span class="o">-</span><span class="n">u</span> <span class="n">root</span> <span class="o">--</span> \
  <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="o">-</span><span class="n">o</span> <span class="s1">&#39;APT::Install-Suggests=&quot;true&quot;&#39;</span> \
  <span class="o">-</span><span class="n">o</span> <span class="s1">&#39;APT::Install-Recommends=&quot;true&quot;&#39;</span> \
  <span class="n">bzr</span>
</pre></div>
</div>
<p>This should make sure everything can be installed; it won’t guarantee that</p>
</div>
<div class="section" id="packaging-dependencies">
<h2>Packaging dependencies<a class="headerlink" href="#packaging-dependencies" title="Permalink to this headline">¶</a></h2>
<p>Some of our updates to bzr in previous releases require backports of our
dependencies.  Specific branches holding these backports:</p>
<blockquote>
<div><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">lp:~bzr/ubuntu/dapper/configobj/dapper-backport</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">lp:~bzr/ubuntu/hardy/python-central-debhelper-sequence-addon/bzr-ppa</span></code></li>
</ul>
</div></blockquote>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Managing the Bazaar PPA</a><ul>
<li><a class="reference internal" href="#background">Background</a></li>
<li><a class="reference internal" href="#supported-releases">Supported releases</a></li>
<li><a class="reference internal" href="#preconditions">Preconditions</a></li>
<li><a class="reference internal" href="#packaging-bazaar">Packaging Bazaar</a><ul>
<li><a class="reference internal" href="#overview-of-packaging-with-builddeb">Overview of packaging with builddeb</a></li>
<li><a class="reference internal" href="#locally-testing-using-pbuilder">Locally testing using pbuilder</a></li>
<li><a class="reference internal" href="#update-all-packages-in-proposed-before-copying-to-the-main-ppa">Update all packages in proposed before copying to the main ppa</a></li>
<li><a class="reference internal" href="#short-form">Short form</a></li>
<li><a class="reference internal" href="#long-form">Long Form</a></li>
<li><a class="reference internal" href="#packaging-bzr-svn">Packaging bzr-svn</a></li>
</ul>
</li>
<li><a class="reference internal" href="#monitoring-the-contents-of-ppas">Monitoring the contents of PPAs</a></li>
<li><a class="reference internal" href="#testing-the-contents-of-the-ppa">Testing the contents of the PPA</a></li>
<li><a class="reference internal" href="#packaging-dependencies">Packaging dependencies</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="releasing.html"
                        title="previous chapter">Releasing Bazaar</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="ec2.html"
                        title="next chapter">Bazaar Windows EC2 Server</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/ppa.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="ec2.html" title="Bazaar Windows EC2 Server"
             >next</a></li>
        <li class="right" >
          <a href="releasing.html" title="Releasing Bazaar"
             >previous</a> |</li>
<li><a href="http://bazaar.canonical.com/">
    <img src="_static/bzr icon 16.png" /> Home</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/en/">Documentation</a>&nbsp;|&nbsp;</li>

        <li class="nav-item nav-item-0"><a href="index.html">Developer Document Catalog (2.7.0)</a> &#187;</li>
 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2009-2011 Canonical Ltd.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.4.
    </div>
  </body>
</html>