Actions

Difference between revisions of "Developer Area/Packaging"

From Mahara Wiki

< Developer Area
(prereqs and setup)
(Add a section on building packages)
Line 23: Line 23:
  
 
  gbp-clone ssh://git.debian.org/git/collab-maint/mahara.git
 
  gbp-clone ssh://git.debian.org/git/collab-maint/mahara.git
 +
 +
= Building packages =
 +
 +
Once you have the repo cloned, run this to build packages:
 +
 +
git buildpackage
 +
 +
They will end up in <tt>../build-area/</tt> where you can check them using lintian:
 +
 +
lintian -I --pedantic --color=auto mahara_1.4.0-1_amd64.changes
 +
 +
and test them on your box by installing the deb:
 +
 +
sudo dpkg -i mahara*1.4.0-1*deb

Revision as of 15:10, 22 June 2011

Here is a description of the work that is involved in maintaining the Mahara packages in Debian and Ubuntu.

If you want to get involved, get in touch with one of the members of the packaging team.

Prerequisites

You need to build packages in the target distribution. So for the most common type of uploads (to Debian unstable), you need to have a Debian unstable virtual machine of some sort.

Then install these packages:

sudo aptitude install git-buildpackage build-essential debhelper dh-make pristine-tar

Then you need to get access to the repo:

  1. Create a new account on Alioth
  2. Ask the Alioth admins to add you to the collab-maint group on git.debian.org

Getting the code from the packaging repo

All of the packaging is stored in a separate git repository.

Here's how to clone this repo:

gbp-clone ssh://git.debian.org/git/collab-maint/mahara.git

Building packages

Once you have the repo cloned, run this to build packages:

git buildpackage

They will end up in ../build-area/ where you can check them using lintian:

lintian -I --pedantic --color=auto mahara_1.4.0-1_amd64.changes

and test them on your box by installing the deb:

sudo dpkg -i mahara*1.4.0-1*deb