How to depend on a package that got split?

Asked by Wolf Geldmacher

This is the scenario:

A single package (gfxboot) got split into two packages (gfxboot and gfxboot-dev) for maverick.
The functionality I need has moved from gfxboot into gfxboot-dev.

Question:
How do I get the dependency right, so that my package (uck), which does not depend on the Ubuntu version up to now installs correctly in both lucid and maverick?

Obviously I cannot use:
 Depends: gfxboot
as this does not provide the functionaly I need in maverick and
 Depends: gfxboot-dev
will not work for lucid, as the -dev package does not exist there.

((This must be a fairly common problem, but, although I searched, I could not find pointers to a solution.))

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Solved by:
Philip Muškovac
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Log a bug with Maverick, if it workied in Lucid and not Maverick then it is a regression. It is also VERY expected that you will get issues much like this in maverick as it is BETA and NOT ready. If you want an OS that works then use Lucid. If you don't mind an OS full of fnctionality holes and bugs and want to help the project by logging bugs then maverick is for you.

Revision history for this message
Best Philip Muškovac (yofel) said :
#2

you could use something like
Depends: gfxboot-dev | gfxboot (<< 4.2.2)
that will install gfxboot-dev in maverick and the older gfxboot package on lucid as gfxboot-dev isn't available in lucid.

@actionsparsnip: this is a simple packaging change in gfxboot, which is perfectly fine from my point of view (maintainer decision).
getting packages to install on multiple releases with the same packaging can be tricky sometimes (had the same problem a while ago)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you log a bug to state the fix is to add the depends bit will pull in the -dev package then all will be well..

Revision history for this message
Wolf Geldmacher (wolf-womaro) said :
#4

Thanks Philip Muškovac, that solved my question.