This file is indexed.

/usr/share/doc/ubuntu-packaging-guide-html/traditional-packaging.html is in ubuntu-packaging-guide-html 0.3.9.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!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="Content-Type" content="text/html; charset=utf-8" />
    
    <title>11. Traditional Packaging &mdash; Ubuntu Packaging Guide</title>
    <link rel="shortcut icon" href="./_static/images/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./_static/reset.css" type="text/css" />
    <link rel="stylesheet" href="./_static/960.css" type="text/css" />
    <link rel="stylesheet" href="./_static/base.css" type="text/css" />
    <link rel="stylesheet" href="./_static/home.css" type="text/css" />
    <link rel="stylesheet" href="./_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="./_static/guide.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '0.3.9',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </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/main.js"></script>
    <link rel="search" title="Search" href="./search.html" />
    <link rel="top" title="Ubuntu Packaging Guide" href="./index.html" />
    <link rel="next" title="12. KDE Packaging" href="kde.html" />
    <link rel="prev" title="10. Using Chroots" href="chroots.html" /> 
  </head>
  <body class="home">
  <a name="top"></a>

<div class="header-navigation">
    <div>
      <nav role="navigation">
        <ul>
          <li class="page_item current_page_item"><a title="Contents" href="index.html">Contents</a>
          <li>
            <form id="form-search" method="get" action="search.html">
              <fieldset>
                <input id="input-search" type="text" name="q" value="Search" />
              </fieldset>
            </form>
          </li>
        </ul>
      </nav>
      <a class="logo-ubuntu" href="http://packaging.ubuntu.com/">
        <img src="./_static/images/logo-ubuntu.png" width="119" height="27" alt="Ubuntu logo" />
      </a>
      <a href="http://packaging.ubuntu.com/"><h2>Packaging Guide</h2></a>
    </div>
  </div>
<div class="header-content">
    <div class="clearfix">
  <div class="header-navigation-secondary">
    <div>
          <nav role="navigation">
            <ul class="clearfix">
	        <li class="page_item"><a style="margin-right: 10px" 
	        href="kde.html" title="12. KDE Packaging"
	        accesskey="N">next</a></li>
	        <li class="page_item"><a  
	        href="chroots.html" title="10. Using Chroots"
	        accesskey="P">previous</a></li>
        <li class="page_item"><a class="sub-nav-item" href="index.html">Ubuntu Packaging Guide  &raquo;</a></li> 
      </ul>
    </nav>
  </div>
</div>
</div>
</div>
  
<div id="content" class="body container_12">
  <div class="grid_12">  

     <!--<section id="main-section">-->

    <div class="grid_9 alpha">
		
    
  <div class="section" id="traditional-packaging">
<h1>11. Traditional Packaging<a class="headerlink" href="#traditional-packaging" title="Permalink to this headline"></a></h1>
<p>The majority of this guide deals with <a class="reference internal" href="udd-intro.html"><span class="doc">Ubuntu Distributed Development</span></a> (UDD) which utilizes the distributed version control system (DVCS)
Bazaar for <a class="reference internal" href="udd-getting-the-source.html#branching"><span class="std std-ref">retrieving package sources</span></a> and submitting fixes
with <a class="reference internal" href="udd-sponsorship.html#merge-proposal"><span class="std std-ref">merge proposals.</span></a> This article will discuss what we
will call traditional packaging methods for lack of a better word. Before Bazaar
was adopted for Ubuntu development, these were the typical methods for
contributing to Ubuntu.</p>
<p>In some cases, you may need to use these tools instead of UDD. So it is good to
be familiar with them. Before you begin, you should already have read the
article <a class="reference internal" href="getting-set-up.html"><span class="doc">Getting Set Up.</span></a></p>
<div class="section" id="getting-the-source">
<h2>11.1. Getting the Source<a class="headerlink" href="#getting-the-source" title="Permalink to this headline"></a></h2>
<p>In order to get a source package, you can simply run:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ apt-get source &lt;package_name&gt;
</pre></div>
</div>
<p>This method has some draw backs though. It downloads the version of the source
that is available on <strong>your system.</strong> You are likely running the current stable
release, but you want to contribute your change against the package in the
development release. Luckily, the <code class="docutils literal"><span class="pre">ubuntu-dev-tools</span></code> package provides a helper
script:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ pull-lp-source &lt;package_name&gt;
</pre></div>
</div>
<p>By default, the  latest version in the development release will be downloaded.
You can also specify a version or Ubuntu release like:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ pull-lp-source &lt;package_name&gt; trusty
</pre></div>
</div>
<p>to pull the source from the <code class="docutils literal"><span class="pre">trusty</span></code> release, or:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ pull-lp-source &lt;package_name&gt; 1.0-1ubuntu1
</pre></div>
</div>
<p>to download version <code class="docutils literal"><span class="pre">1.0-1ubuntu1</span></code> of the package. For more information on the
command, see <code class="docutils literal"><span class="pre">man</span> <span class="pre">pull-lp-source</span></code>.</p>
<p>For our example, let&#8217;s pretend we got a bug report saying that &#8220;colour&#8221; in the
description of <code class="docutils literal"><span class="pre">xicc</span></code> should be &#8220;color,&#8221; and we want to fix it. <em>(Note: This
is just an example of something to change and not really a bug.)</em> To get the
source, run:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ pull-lp-source xicc 0.2-3
</pre></div>
</div>
</div>
<div class="section" id="creating-a-debdiff">
<h2>11.2. Creating a Debdiff<a class="headerlink" href="#creating-a-debdiff" title="Permalink to this headline"></a></h2>
<p>A <code class="docutils literal"><span class="pre">debdiff</span></code> shows the difference between two Debian packages. The name of the
command used to generate one is also <code class="docutils literal"><span class="pre">debdiff</span></code>. It is part of the
<code class="docutils literal"><span class="pre">devscripts</span></code> package. See <code class="docutils literal"><span class="pre">man</span> <span class="pre">debdiff</span></code> for all the details. To compare two
source packages, pass the two <code class="docutils literal"><span class="pre">dsc</span></code> files as arguments:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ debdiff &lt;package_name&gt;_1.0-1.dsc &lt;package_name&gt;_1.0-1ubuntu1.dsc
</pre></div>
</div>
<p>To continue with our example, let&#8217;s edit the <code class="docutils literal"><span class="pre">debian/control</span></code> and &#8220;fix&#8221; our
&#8220;bug&#8221;:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ cd xicc-0.2
$ sed -i &#39;s/colour/color/g&#39; debian/control
</pre></div>
</div>
<p>We also must adhere to the <a class="reference external" href="https://wiki.ubuntu.com/DebianMaintainerField">Debian Maintainer Field Spec</a>
and edit <code class="docutils literal"><span class="pre">debian/control</span></code> to replace:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">Maintainer</span><span class="p">:</span> <span class="n">Ross</span> <span class="n">Burton</span> <span class="o">&lt;</span><span class="n">ross</span><span class="nd">@debian</span><span class="o">.</span><span class="n">org</span><span class="o">&gt;</span>
</pre></div>
</div>
<p>with:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">Maintainer</span><span class="p">:</span> <span class="n">Ubuntu</span> <span class="n">Developers</span> <span class="o">&lt;</span><span class="n">ubuntu</span><span class="o">-</span><span class="n">devel</span><span class="o">-</span><span class="n">discuss</span><span class="nd">@lists</span><span class="o">.</span><span class="n">ubuntu</span><span class="o">.</span><span class="n">com</span><span class="o">&gt;</span>
<span class="n">XSBC</span><span class="o">-</span><span class="n">Original</span><span class="o">-</span><span class="n">Maintainer</span><span class="p">:</span> <span class="n">Ross</span> <span class="n">Burton</span> <span class="o">&lt;</span><span class="n">ross</span><span class="nd">@debian</span><span class="o">.</span><span class="n">org</span><span class="o">&gt;</span>
</pre></div>
</div>
<p>You can use the <code class="docutils literal"><span class="pre">update-maintainer</span></code> tool (in the <code class="docutils literal"><span class="pre">ubuntu-dev-tools</span></code> package)
to do that.</p>
<p>Remember to document your changes in <code class="docutils literal"><span class="pre">debian/changelog</span></code> using <code class="docutils literal"><span class="pre">dch</span> <span class="pre">-i</span></code> and
then we can generate a new source package:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ debuild -S
</pre></div>
</div>
<p>Now we can examine our changes using <code class="docutils literal"><span class="pre">debdiff</span></code>:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ cd ..
$ debdiff xicc_0.2-3.dsc xicc_0.2-3ubuntu1.dsc | less
</pre></div>
</div>
<p>To create a patch file that you can send to others or attach to a bug report for
sponsorship, run:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ debdiff xicc_0.2-3.dsc xicc_0.2-3ubuntu1.dsc &gt; xicc_0.2-3ubuntu1.debdiff
</pre></div>
</div>
</div>
<div class="section" id="applying-a-debdiff">
<h2>11.3. Applying a Debdiff<a class="headerlink" href="#applying-a-debdiff" title="Permalink to this headline"></a></h2>
<p>In order to apply a debdiff, first make sure you have the source code of the
version that it was created against:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ pull-lp-source xicc 0.2-3
</pre></div>
</div>
<p>Then in a terminal, change to the directory where the source was
uncompressed:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ cd xicc-0.2
</pre></div>
</div>
<p>A debdiff is just like a normal patch file. Apply it as usual with:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>$ patch -p1 &lt; ../xicc_0.2.2ubuntu1.debdiff
</pre></div>
</div>
</div>
</div>


	<div class="divide"></div>

          </div>

  <div id="sidebar" class="grid_3 omega">
    <div class="container-tweet">
        <h3>Table Of Contents</h3>
        <div class="toc">
          <ul>
<li><a class="reference internal" href="#">11. Traditional Packaging</a><ul>
<li><a class="reference internal" href="#getting-the-source">11.1. Getting the Source</a></li>
<li><a class="reference internal" href="#creating-a-debdiff">11.2. Creating a Debdiff</a></li>
<li><a class="reference internal" href="#applying-a-debdiff">11.3. Applying a Debdiff</a></li>
</ul>
</li>
</ul>

        </div>

      <div class="browse-guide">
        <h3>Browse The Guide:</h3>
        <ul>
          <li class="prev">
            <a href="chroots.html"
                      title="Previous topic: 10. Using Chroots">Go Previous</a>
          </li>
          
          <li class="center">
            <a title="Back to Index" href="index.html">Index Guide</a>
          </li>
        
          <li class="next">
            <a href="kde.html"
                      title="Next topic: 12. KDE Packaging">Go Next</a>
          </li>
        </ul>
        <span>This Page:</span> <a href="./_sources/traditional-packaging.rst.txt"
               rel="nofollow">Show Source</a>
      </div>
     </div>
     <div id="back_top"><a href="#top">Back to Top</a></div>
    </div>
    <!--</section>-->
  </div>
</div>
<div class="shadow"></div>
<footer>
  <div>
      Version: 0.3.9.
    <a href="https://bugs.launchpad.net/ubuntu-packaging-guide">Report bugs</a> or 
    <a href="https://code.launchpad.net/~ubuntu-packaging-guide-team/ubuntu-packaging-guide/trunk">grab the source code</a> from Launchpad.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.6.
      <br />
        &copy; Copyright 2010-2017, Ubuntu Developers, Creative Commons Attribution-ShareAlike 3.0.
        <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
        Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.
        <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
        <img alt="Creative Commons License" style="border-width:0" 
        src="./_static/images/cc-by-sa.png" /></a>
    <br />
    <a href="http://people.ubuntu.com/~mitya57/ubuntu-packaging-guide-readme.html#translating">Help translate</a> or
    <a href="./_static/translators.html">view the list of translators</a>.

  </div>
</footer>
  </body>
</html>