From 5108738265a8991b38b87040a2d4add5c96be23b Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Tue, 22 Jul 2014 00:34:19 +0200 Subject: [PATCH] docs: Basic documentation for pbuilder setup. --- docs/devtools.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/devtools.rst b/docs/devtools.rst index f495b6e8..93798071 100644 --- a/docs/devtools.rst +++ b/docs/devtools.rst @@ -118,6 +118,11 @@ packages is maintained. sudo apt-get install build-essential git-buildpackage +#. Create a Wheezy pbuilder env if running on Ubuntu and this the first time. + See :issue:`561` for details about why this is needed:: + + DIST=wheezy sudo git-pbuilder update --mirror=http://mirror.rackspace.com/debian/ --debootstrapopts --keyring=/usr/share/keyrings/debian-archive-keyring.gpg + #. Check out the ``debian`` branch of the repo:: git checkout -t origin/debian @@ -142,15 +147,27 @@ packages is maintained. git buildpackage -uc -us + If you are using the pbuilder make sure this command is:: + + sudo git buildpackage -uc -us --git-ignore-new --git-pbuilder --git-dist=wheezy --git-no-pbuilder-autoconf + #. Install and test newly built package:: sudo debi + Again for pbuilder use:: + + sudo debi --debs-dir /var/cache/pbuilder/result/ + #. If everything is OK, build the package a final time to tag the package version:: git buildpackage -uc -us --git-tag + Pbuilder:: + + sudo git buildpackage -uc -us --git-ignore-new --git-pbuilder --git-dist=wheezy --git-no-pbuilder-autoconf --git-tag + #. Push the changes you've done to the ``debian`` branch and the new tag:: git push @@ -161,6 +178,8 @@ packages is maintained. git buildpackage -uc -us + Modify as above to use the pbuilder as needed. + #. Copy files to the APT server. Make sure to select the correct part of the repo, e.g. main, contrib, or non-free::