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 am using a recipe to keep a program packaged in my ppa. From Oneiric onwards it seems that some of the dependency locations have changed. specifically the (and a couple other QT libs). All the legacy versions of the application build but Oneiric and Precise have failed to build from the old recipe. I can deal with this locally because I can change the library location in the rules file.

I was wondering how best to deal with this in my ppa. Should I have a separate debian file in its own repo that is specific for the release, get the recipe to pull the debian file and merge when its time to build? Then have separate recipe for each distro?

Or can I deal with this in the recipe directly.

Or is there a better way that I haven't thought of.


share|improve this question
What's a recipe? – enzotib Dec 19 '11 at 11:46
@enzotib Look here. – jcollado Dec 19 '11 at 11:48

Technically you could add a run line to your recipe to execute some script that performs the substitution in the debian/rules file depending on the target distribution. However, that would work only when running bzr build locally because run isn't supported in launchpad as noted here (I guess that's because of security concerns).

Hence, my advice is to have two different recipes pointing to different branches for the packaging files and launch each recipe for the appropriate distributions.

share|improve this answer
WILCO thanks for the reply – Caustic Jan 4 '12 at 6:05

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.