How does one package for multiple ubuntu versions? vivid, utopic, trusty, etc.

Asked by Jonathon Love

Hi,

Is there a good/easier way to create packages for the full gamut of ubuntu versions? or is the only way to go through, copy all the packages, and perform manual changes like:

package-name (0.3.4) vivid;

to:

package-name (0.3.4) trusty

and resubmit?

with thanks

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
William Grant (wgrant) said :
#1

There are two options:

The first and easiest is to do what Ubuntu does: upload the package to the oldest series, and copy it up (including binaries) to the newer ones. This doesn't always work, eg. if one the package's dependencies broke ABI, causing it to need a rebuild in some series. You need to manually verify that your package is suitable and works on eg. vivid when built on trusty.

The second option, which works in all cases, is to upload a separate package to each series. The versions need to differ, so it's common to have things like 0.3.4~ubuntu12.04, 0.3.4~ubuntu14.04, etc.

Can you help with this problem?

Provide an answer of your own, or ask Jonathon Love for more information if necessary.

To post a message you must log in.