Depend on older package in PPA instead of newer package in Ubuntu main

Asked by David L Norris

How can I depend on an "outdated" package in my own PPA overriding the newer package provided by Ubuntu?

PHP 5.3 is not backward compatible with PHP 5.2. I want to use Lucid on my new servers but I need to support old code for a while until it is phased out or updated.

So I am deriving a build of PHP 5.2 from Karmic for Lucid. PHP 5.2.10 builds fine and works. However, there are also modules I need to build which depend on PHP.

For the modules, I set the build-depends to php5-dev = 5.2.10 but the build log shows php5-dev >= 5.2.10 and the package is being built against Lucid's php5-dev 5.3.2. I've not been able to find any docs which cover this specific situation. I suppose one would normally be providing a newer version of a package rather than an older one.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Julian Edwards (julian-edwards) said :
#1

Hi

I'm not sure why that build-depends is not working, as far as I know it should. You best bet is to ask packaging questions on #ubuntu-motu on Freenode where there are lots of packaging experts who can help you.

Revision history for this message
Bharath Ramesh (krosswindz) said :
#2

I am also stuck in a similar problem. I am wondering what the correct solution to this problem is. I would appreciate it if someone could point me in the right direction.

Revision history for this message
Bharath Ramesh (krosswindz) said :
#3

I am just adding this so that people who have similar issues can use this as one possible solution. The solution that worked for me suggest in #ubuntu-motu is that if the package is foobar and the dev package being libfoobar-dev you will have to create a different package for the older version as libfoobar-x.y-dev and have the package you are building depend on this.

Can you help with this problem?

Provide an answer of your own, or ask David L Norris for more information if necessary.

To post a message you must log in.