Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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 ...
lp:.../base-packaging-branch
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
add comment

Your Answer

 
discard

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.