You are browsing a read-only backup copy of Wikitech. The live site can be found at

Backport packages: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
No edit summary
imported>Effie Mouzeli
mNo edit summary
Line 1: Line 1:
{{note|You can find an updated guide under [[Debian Packaging]]}}
{{note|You can follow this tutorial on a fresh labs instance that has the <code>role::package::builder</code> class applied. You will need appropriate sudo rights.}}
{{note|You can follow this tutorial on a fresh labs instance that has the <code>role::package::builder</code> class applied. You will need appropriate sudo rights.}}

Revision as of 12:47, 4 December 2018

All of the documentation for using it is kept up to date at:

Consider the rest below this as slightly to hugely outdated


You want to use the backportpackage command available in Ubuntu via. The one provided by Precise (0.141) does not let you create package without signing. You will want to manually install 0.142 or later.

Direct link:

0.142 adds a new --dont-sign option which disable signing entirely.

Read the manual documentation at . You basically pass the source distribution with -s and the target destination with -d then the package as argument.

Example backporting python-git from Saucy to Precise:

export DEBEMAIL="hashar at free point fr"
export DEBFULLNAME="Antoine Musso"
export DEBBUILDOPTS="-sa -us -uc"  # src pkg, disable signing
export APTCONFDIR="/etc/apt"
mkdir workdir && cd workdir
backportpackage --dont-sign  -s saucy -d precise -w . python-git

Make sure to pass the source package name (ex: python-d2to1 package is provided by source package d2to1. If you do not have a GPG key, you will want to disable signature (requires ubuntu-dev-tools >= 0.142 which Precise satisfy) using --dont-sign as above.

backportpackage  --dont-sign -s saucy -d precise -w workdir python-git

Then create the .deb using Pbuilder or cowbuilder:

sudo BASEPATH=/var/cache/pbuilder/base-precise.cow cowbuilder --distribution=precise --build *.dsc

The resulting files are found under /var/cache/pbuilder/result

more details

When running backportpackage, it will automatically download the files using dpkg-source:

dpkg-source: info: unpacking python-git_0.3.2~RC1.orig.tar.gz
dpkg-source: info: unpacking python-git_0.3.2~RC1.orig-doc.tar.gz
dpkg-source: info: unpacking python-git_0.3.2~RC1-1.debian.tar.gz

Once the process has finished, you will end up with a bunch of files in the working directory:

ls -1 workdir/python-git_*

You will want to manually review the *.changes files.