How to build for multiple series

Asked by Chris Taubenheim

I want to build my package for lucid and maverick. So i modified my debian/changelog file to build the release for lucid.
But what if i want to build thhe same package for maverick?
I changed the series in debian/changelog to maverick and reuploaded the package. But it got rejected, since the package for lucid already is up.
So what to do? If i want to copy the package, an error occurrs "same version already has published binaries in the destination archive".
Sure, there is an old version for maverick in the PPA from the last build, but why can't i just copy over the package and rebuild it. I even deleted the old package from maverick, but got the same error when i tried to copy again.
Sorry, but it seems really complicated to have a single version of a package built for multiple series.

So what's the best practice to do that in case i misunderstood the workflow.

Any help on that?
Many thanks in advance.
Greetings, -chris-

Question information

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

Hi

The problem you're experiencing is because of the pool-based repository format of Debian archives. That is, you cannot have the same version of files published more than once with different contents.

You have two ways around this:

1. Use the "copy packages" feature but do not select "rebuild" - use this if you don't need to rebuild against newer dependencies in the other distro series.
2. Upload a newer version of the file for the other series.

These are essentially the same actions that Ubuntu itself uses.

Revision history for this message
Julian Edwards (julian-edwards) said :
#2

FAQ created for this question, I've answered it a few times now.
FAQ #1371: “How can I build a package for multiple series in a PPA?”.

Revision history for this message
Chris Taubenheim (christau) said :
#3

Sorry for answering this again.
Thanks for the clarification, i think i got it now.

Revision history for this message
Jason Heeris (detly) said :
#4

What exactly is meant by "upload a newer version of the file for the other series"?

Revision history for this message
Dmitry Kann (yktooo) said :
#5

"Newer version", or rather, just "another version", I suppose, is what's meant in the explanation here: https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage

I.e. you have to include series name in the version so that you'll have the following two varieties:
 - myapp_1.0-1ubuntu3ppa1~intrepid1
 - myapp_1.0-1ubuntu3ppa1~hardy1