Add extra repository to package source

Asked by Jhonny Oliveira

Hi!

I want to build a package which relies on a specific version of another package. The later will only be available on my PPA.
Is there a way to include this information somewhere in the debian folder, so when I upload it to Launchpad, the build process knows where to find the missing dependency package?

Thanks in advance!
Jhonny Oliveira

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Jhonny Oliveira
Solved:
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

If it's in the same PPA, you can just add an appropriate version constraint to the build-dependency. See https://www.debian.org/doc/debian-policy/ch-relationships.html for full details, but it's usually just something like "Build-Depends: libfoo-dev (>= minimum-version)".

If the build-dependency in question is in a different PPA, you'll need to additionally use "Edit PPA dependencies" to cause that different PPA to be used during builds.

Revision history for this message
Jhonny Oliveira (jhonny-oliveira) said :
#2

Thank you!

Revision history for this message
csoler (cyril-soler) said :
#3

Sorry for the dumb question, but where is that "Edit ppa dependencies" button? I am logged-in and I cannot see it in my own ppa. Has it been removed? Thx for the tip.

Revision history for this message
Jhonny Oliveira (jhonny-oliveira) said (last edit ):
#4

Go to your PPA - e.g.: https://launchpad.net/~xtradeb/+archive/ubuntu/apps
and click "Edit PPA dependencies" - e.g.: https://launchpad.net/~xtradeb/+archive/ubuntu/apps/+edit-dependencies
close to the end, slightly above the "Save" button you should find this: "Add PPA dependency: (Optional)"
search for the PPA you would like to add as a dependency and hit Save.

If I'm not mistaken, these dependency PPAs are only good to provide dependencies to build packages on your PPA, such as build tools. You won't be able to inherently use them once you add your PPA to a system.

Cheers!