osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launchpad... how to add a backport dependency to a PPA.


On Wed, Apr 11, 2018 at 08:45:15AM -0400, Peter Silva wrote:
> that I have a recipe that auto builds it for 18.04, but it depends on a version
> of a package where the distro version is too old in older releases.
> 
> https://launchpad.net/~ssc-hpc-chp-spc/+archive/ubuntu/metpx-daily
> 
> So I would like for the PPA to build & contain a back-ported version
> of the dependency.
> 
> librabbitmq > 0.8.0
> 
> Do I create a project librabbitmq0_8 ? and build it as a package?

Creating a full-scale project for it would be inappropriate overkill,
but you should be able to use backportpackage(1) from the
ubuntu-dev-tools package to produce a backport of librabbitmq.  Since
the librabbitmq4 package will presumably be needed at runtime by users
of the packages built against it, I'd recommend simply telling
backportpackage to upload it to the metpx-daily PPA, i.e.:

  backportpackage -s bionic -d xenial -u ppa:ssc-hpc-chp-spc/ubuntu/metpx-daily librabbitmq

If that fails to build, you can grab the resulting source package back
from your PPA, make whatever additional tweaks are needed, bump the
version in debian/changelog, and reupload it.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]