Install tools:
$ aptitude install pbuilder debhelper devscripts build-essential bzr bzr-debbuild
Make sure you're using the right user credentials
$ export DEBFULLNAME="John Doe" $ export DEBEMAIL="user@example.com"
Get the source:
$ apt-get source gnome-panel $ bzr get ...
Work on your patch (quilt/cdbs/etc)
Write the changelog
$ dch -i
The changelog should have comments in the form:
* debian/patches/99_fix_here.patch:
- this does something (LP: #123456)
Copy the "debian" changes into the bzr tree
Build using pbuilder
$ bzr builddeb --builder pdebuild
Push up
$ bzr push lp:~username/project/branch-name