Merge lp:~mfo/ubuntu-packaging-guide/ubuntu-packaging-guide into lp:ubuntu-packaging-guide

Proposed by Mauricio Faria de Oliveira
Status: Merged
Merged at revision: 719
Proposed branch: lp:~mfo/ubuntu-packaging-guide/ubuntu-packaging-guide
Merge into: lp:ubuntu-packaging-guide
Diff against target: 65 lines (+21/-2)
1 file modified
ubuntu-packaging-guide/packaging-new-software.rst (+21/-2)
To merge this branch: bzr merge lp:~mfo/ubuntu-packaging-guide/ubuntu-packaging-guide
Reviewer Review Type Date Requested Status
Ubuntu Packaging Guide Team Pending
Review via email: mp+423560@code.launchpad.net

Commit message

Updates for bzr dh-make and Focal (LP: #1954595)

Description of the change

Chapter `Packaging New Software` needs updates for Ubuntu Focal,
regarding the ``bzr dh-make`` subcommand and some other steps.

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thank you for your merge proposal. A couple of comments.

718. By Mauricio Faria de Oliveira

Amend updates for bzr dh-make and Focal

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

> Thank you for your merge proposal. A couple of comments.

Thanks for the prompt review! Just pushed another commit
w/ your suggestions.

719. By Mauricio Faria de Oliveira

Again amend updates for bzr dh-make and Focal

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I don't like the suggestion to run Ubuntu 20.04 in lxd. It will be much easier for contributor to use standalone dh-make and then initialize bzr (or git) repository manually.

But your change is an improvement anyway, so I merged it.

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Thanks for the compromise solution; that helps!

I'd be happy to try and convert this doc to `git` / `dh-make` sometime in the near future.
If you have other pointers/step suggestions, please let me know.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-packaging-guide/packaging-new-software.rst'
2--- ubuntu-packaging-guide/packaging-new-software.rst 2018-01-04 09:48:28 +0000
3+++ ubuntu-packaging-guide/packaging-new-software.rst 2022-05-27 17:32:30 +0000
4@@ -33,7 +33,8 @@
5 to prepare for compilation.
6
7 This will check for the required build dependencies. As ``hello`` is a simple
8-example, ``build-essential`` should provide everything we need. For more
9+example, ``build-essential`` and ``texinfo`` should provide everything we need.
10+For more
11 complex programs, the command will fail if you do not have the needed libraries
12 and development files. Install the needed packages and repeat until the command
13 runs successfully.::
14@@ -60,6 +61,10 @@
15 $ cd ..
16 $ bzr dh-make hello 2.10 hello-2.10.tar.gz
17
18+Note: unfortunately the ``bzr dh-make`` subcommand is no longer available in
19+releases later than Ubuntu 20.04; so, you might need a container or virtual
20+machine (see `LXD <LXD_>`_) running Ubuntu 20.04 for this particular step.
21+
22 When it asks what type of package type ``s`` for single binary. This will import
23 the code into a branch and add the ``debian/`` packaging directory. Have a look
24 at the contents. Most of the files it adds are only needed for specialist
25@@ -90,6 +95,10 @@
26
27 Build-Depends: debhelper (>= 9)
28
29+And append ``texinfo``, as noted earlier::
30+
31+ Build-Depends: debhelper (>= 9), texinfo
32+
33 You will also need to fill in a description of the program in the
34 ``Description:`` field.
35
36@@ -113,7 +122,8 @@
37 All of these file are explained in more detail in the :doc:`overview of the
38 debian directory<./debian-dir-overview>` article.
39
40-Finally commit the code to your packaging branch::
41+Finally commit the code to your packaging branch (make sure to ``bzr add``
42+any untracked files that changed; for example, ``debian/source/format``)::
43
44 $ bzr add debian/source/format
45 $ bzr commit -m "Initial commit of Debian packaging."
46@@ -131,6 +141,14 @@
47 The ``-us -uc`` tell it there is no need to GPG sign the package. The result
48 will be placed in ``..``.
49
50+Note: if it fails with ``You must run ./configure before running 'make'.``,
51+add this to ``debian/rules`` (make sure to ``bzr add/commit`` it) and retry
52+``bzr builddeb``::
53+
54+ override_dh_auto_clean:
55+ [ -f Makefile ] || ./configure
56+ dh_auto_clean
57+
58 You can view the contents of the package with::
59
60 $ lesspipe hello_2.10-0ubuntu1_amd64.deb
61@@ -236,3 +254,4 @@
62 .. _WNPP: http://www.debian.org/devel/wnpp/
63 .. _DevRef: http://www.debian.org/doc/manuals/developers-reference/pkgs.html#newpackage
64 .. _NewPackages: https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages
65+.. _LXD: https://linuxcontainers.org/lxd/

Subscribers

People subscribed via source and target branches