Merge lp:~smartboyhw/ubuntu-packaging-guide/update-packaging-new-software-pages into lp:ubuntu-packaging-guide

Proposed by Howard Chan
Status: Merged
Merged at revision: 445
Proposed branch: lp:~smartboyhw/ubuntu-packaging-guide/update-packaging-new-software-pages
Merge into: lp:ubuntu-packaging-guide
Diff against target: 98 lines (+14/-14)
1 file modified
ubuntu-packaging-guide/packaging-new-software.rst (+14/-14)
To merge this branch: bzr merge lp:~smartboyhw/ubuntu-packaging-guide/update-packaging-new-software-pages
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+191193@code.launchpad.net

Description of the change

1. hello's newest version is 2.9, so we will want to update it.
2. debhelper's latest version is 9. I propose to update it since we will want to enable multiarch, which is best supported in dh 9.
3. The "current" development version is saucy (as dated 15/10/2013).

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Looks good. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ubuntu-packaging-guide/packaging-new-software.rst'
--- ubuntu-packaging-guide/packaging-new-software.rst 2013-01-22 13:50:06 +0000
+++ ubuntu-packaging-guide/packaging-new-software.rst 2013-10-15 14:11:28 +0000
@@ -29,12 +29,12 @@
2929
30Download main package::30Download main package::
3131
32 $ wget -O hello-2.7.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"32 $ wget -O hello-2.9.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.9.tar.gz"
3333
34Now uncompress main package::34Now uncompress main package::
3535
36 $ tar xf hello-2.7.tar.gz36 $ tar xf hello-2.9.tar.gz
37 $ cd hello-2.737 $ cd hello-2.9
3838
39This application uses the autoconf build system so we want to run ``./configure``39This application uses the autoconf build system so we want to run ``./configure``
40to prepare for compilation.40to prepare for compilation.
@@ -66,7 +66,7 @@
6666
67 $ sudo apt-get install dh-make67 $ sudo apt-get install dh-make
68 $ cd ..68 $ cd ..
69 $ bzr dh-make hello 2.7 hello-2.7.tar.gz69 $ bzr dh-make hello 2.9 hello-2.9.tar.gz
7070
71When it asks what type of package type ``s`` for single binary. This will import71When it asks what type of package type ``s`` for single binary. This will import
72the code into a branch and add the ``debian/`` packaging directory. Have a look72the code into a branch and add the ``debian/`` packaging directory. Have a look
@@ -80,15 +80,15 @@
80You should now customise each of the files. 80You should now customise each of the files.
8181
82In ``debian/changelog`` change the82In ``debian/changelog`` change the
83version number to an Ubuntu version: ``2.7-0ubuntu1`` (upstream version 2.7,83version number to an Ubuntu version: ``2.9-0ubuntu1`` (upstream version 2.9,
84Debian version 0, Ubuntu version 1). Also change ``unstable`` to the current84Debian version 0, Ubuntu version 1). Also change ``unstable`` to the current
85development Ubuntu release such as ``precise``.85development Ubuntu release such as ``saucy``.
8686
87Much of the package building work is done by a series of scripts87Much of the package building work is done by a series of scripts
88called ``debhelper``. The exact behaviour of ``debhelper`` changes88called ``debhelper``. The exact behaviour of ``debhelper`` changes
89with new major versions, the compat file instructs ``debhelper`` which89with new major versions, the compat file instructs ``debhelper`` which
90version to act as. You will generally want to set this to the most90version to act as. You will generally want to set this to the most
91recent version which is ``8``.91recent version which is ``9``.
9292
93``control`` contains all the metadata of the package. The first paragraph93``control`` contains all the metadata of the package. The first paragraph
94describes the source package. The second and following paragraphs describe94describes the source package. The second and following paragraphs describe
@@ -96,7 +96,7 @@
96compile the application to ``Build-Depends:``. For ``hello``, make sure that it96compile the application to ``Build-Depends:``. For ``hello``, make sure that it
97includes at least::97includes at least::
9898
99 Build-Depends: debhelper (>= 8.0.0)99 Build-Depends: debhelper (>= 9)
100100
101You will also need to fill in a description of the program in the101You will also need to fill in a description of the program in the
102``Description:`` field.102``Description:`` field.
@@ -140,11 +140,11 @@
140140
141You can view the contents of the package with::141You can view the contents of the package with::
142142
143 $ lesspipe hello_2.7-0ubuntu1_amd64.deb143 $ lesspipe hello_2.9-0ubuntu1_amd64.deb
144144
145Install the package and check it works::145Install the package and check it works::
146146
147 $ sudo dpkg --install hello_2.7-0ubuntu1_amd64.deb147 $ sudo dpkg --install hello_2.9-0ubuntu1_amd64.deb
148148
149Next Steps149Next Steps
150----------150----------
@@ -154,8 +154,8 @@
154``lintian`` which can be run on both the source .dsc metadata file and154``lintian`` which can be run on both the source .dsc metadata file and
155the .deb binary package::155the .deb binary package::
156156
157 $ lintian hello_2.7-0ubuntu1.dsc157 $ lintian hello_2.9-0ubuntu1.dsc
158 $ lintian hello_2.7-0ubuntu1_amd64.deb158 $ lintian hello_2.9-0ubuntu1_amd64.deb
159159
160A description of each of the problems it reports can be found on the160A description of each of the problems it reports can be found on the
161`lintian website`_.161`lintian website`_.
@@ -176,7 +176,7 @@
176176
177 $ bzr builddeb -S177 $ bzr builddeb -S
178 $ cd ../build-area178 $ cd ../build-area
179 $ pbuilder-dist precise build hello_2.7-0ubuntu1.dsc179 $ pbuilder-dist precise build hello_2.9-0ubuntu1.dsc
180180
181When you are happy with your package you will want others to review it. You181When you are happy with your package you will want others to review it. You
182can upload the branch to Launchpad for review::182can upload the branch to Launchpad for review::
@@ -187,7 +187,7 @@
187others to test the binary packages. You will need to set up a PPA in Launchpad187others to test the binary packages. You will need to set up a PPA in Launchpad
188and then upload with ``dput``::188and then upload with ``dput``::
189189
190 $ dput ppa:<lp-username> hello_2.7-0ubuntu1.changes190 $ dput ppa:<lp-username> hello_2.9-0ubuntu1.changes
191191
192See :doc:`uploading<./udd-uploading>` for more information.192See :doc:`uploading<./udd-uploading>` for more information.
193193

Subscribers

People subscribed via source and target branches