Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I maintain some packages in LP that I need to backport to oneiric, lucid and --- even --- hardy.

For example, my trunk branch builds correctly to precise and quantal, and I want to create a separate lucid-backport branch (not necessarily a fork of trunk) which only contains the modified debian/control and debian/compat files needed for the backport to lucid. Then I like to write a bzr-builder recipe to combine both branches someway.

What's the right way to do this?

share|improve this question

If your packaging is part of the base branch rather than in a nested branch, you could probably use the merge d in your recipe.

Simply branch your of your package, make your Lucid compatibility changes and commit them. Now you can write a recipe something like:

# bzr-builder ...
merge lucid-backport lp:.../lucid-compat-packaging

You should now get all the changes from the base branch with your Lucid compatibility fixes layered on top. If there are conflicts during the merge your recipe will fail to build, but you probably want to know about that anyway. Fixing this should be as simple as merging the changes into the Lucid branch and fixing the conflicts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.