How to dput to multiple distributions? Is there an example?

Asked by Lonny Wong

I want to write a program in Go, which could run in anywhere.

For now, I could install it in ubuntu20.04, but fails in ubuntu18.04.

sudo add-apt-repository ppa:trzsz/ppa

E: The repository 'http://ppa.launchpad.net/trzsz/ppa/ubuntu bionic Release' does not have a Release file.

Is there an easy way to make it support ubuntu 16.04, 18.04, 20.04, etc... ?

And, I want it supports debian series too.

Is the ~/dput.cf conrrect?

[trzsz]
fqdn = ppa.launchpad.net
method = ftp
incoming = ~%(trzsz)s
login = anonymous
distributions = buster,xenial

The GitHub: https://github.com/trzsz/trzsz-go

Question information

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

You can't dput to multiple distributions. The usual structure of an apt archive has the .debs in something like pool/main/t/trzsz/trzsz_0.0.1.6_amd64.deb, and there can only be one of those for a given version, implying that a given source package version has to be built at most once for any given architecture.

You also don't typically need to set "distributions" in dput.cf. Just set the target Ubuntu release in the first line of the relevant debian/changelog entry (as you've done with in "trzsz (0.0.1.6) focal; urgency=medium", for instance).

What you can do, though, is upload your package to the oldest Ubuntu release you want to support, let it build on that release, and then once it's built and published, use the "Copy packages" interface to copy it forward with the existing binaries to all other releases that you want to support. That gets you the effect you're aiming for.

Regarding Debian, Launchpad doesn't currently support building or publishing packages for Debian, although of course there's nothing to stop you saying that people running Debian can add a particular line to their sources.list if the binary packages are known to work there.

Revision history for this message
Lonny Wong (lonnywong) said :
#2

I found the document https://help.launchpad.net/Packaging/PPA/Copying

It give me a copy page url: https://launchpad.net/~launchpad/+archive/ubuntu/ppa/+copy-packages

But I can't find my trzsz in that page.

Where to copy my trzsz packages to other series?

Revision history for this message
Colin Watson (cjwatson) said :
#3

That URL is explicitly just an example. Use https://launchpad.net/~trzsz/+archive/ubuntu/ppa/+copy-packages in your case.

Revision history for this message
Lonny Wong (lonnywong) said :
#4

 Thanks a Ton.

Revision history for this message
Lonny Wong (lonnywong) said :
#5

Thanks Colin Watson, that solved my question.