← Back to team overview

ubuntu-packaging-guide-team team mailing list archive

[Bug 1183307] [NEW] packaging new software: clarify use of bzr add+commit if adding files to debian

 

Public bug reported:

I'm new to packaging and followed the guide which is in general easy to
follow. But one thing tripped me up for a long time and I couldn't
figure out why my packages would compile without problems for a single
package but would create empty packages if a multiple packages.

The problem was that I added files to debian/ from packages of older
versions but it was not clear to me that I had to add them to bzr first
before they would be included in the bzr builddeb. Therefore, a small
comment would help others who're new to packaging and bzr. Something
along these lines:

insert in the "building the package" paragraph
"""
Make sure that you always add and commit files that you copied into the debian/ directory. Otherwise bzr builddeb will not use them.

Use the following commands:
  bzr add debian
  bzr commit -m "added files from previous package"
"""

** Affects: ubuntu-packaging-guide
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Packaging Guide Team, which is subscribed to Ubuntu Packaging Guide.
https://bugs.launchpad.net/bugs/1183307

Title:
  packaging new software: clarify use of bzr add+commit if adding files
  to debian

Status in Ubuntu Packaging Guide:
  New

Bug description:
  I'm new to packaging and followed the guide which is in general easy
  to follow. But one thing tripped me up for a long time and I couldn't
  figure out why my packages would compile without problems for a single
  package but would create empty packages if a multiple packages.

  The problem was that I added files to debian/ from packages of older
  versions but it was not clear to me that I had to add them to bzr
  first before they would be included in the bzr builddeb. Therefore, a
  small comment would help others who're new to packaging and bzr.
  Something along these lines:

  insert in the "building the package" paragraph
  """
  Make sure that you always add and commit files that you copied into the debian/ directory. Otherwise bzr builddeb will not use them.

  Use the following commands:
    bzr add debian
    bzr commit -m "added files from previous package"
  """

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/1183307/+subscriptions


Follow ups

References