Thu, 10 Aug 2006

Upgrade a Debian Package with new source using svn-upgrade


download a copy of the new source tarball and place it in /debian-dev/tarballs

cd /debian-dev/calcurse  (just above /debian.  this is the WC [working copy])

svn-upgrade ../tarballs/calcurse-1.2.tar.gz

You'll now have a copy of calcurse in /debian-dev/calcurse that is updated to
the latest source.

You can check changes with

    svn diff

or specific files with

    svn diff TODO

Check the status of the svn repository for calcurse with

    svn status

Go ahead and make changes to things like the debian/changelog file.  Once
you've made all your changes you can commit the changes to the svn repository
with 

    svn commit

You can also do this by specific file

    svn commit src/util.c

Once everything is committed, you can build the package with

    svn-buildpackage -k8CE11941 -rfakeroot

which is executed in the WC (just above /debian).

The packages that are built will show up in /debian-dev/build-area.  You
should linda and lintian check them.

You should also run pbuilder on the WC.  Start this process by executing

    sudo pbuilder update
    sudo pbuilder clean

Then, from the WC, run

    pdebuild

You can then go to /var/cache/pbuilder/results to linda/lintian check the
files that were created by pdebuild.

Once you are satisfied that everything is o.k. and have tested it by
installing, upgrading, etc, then from the WC, run 

    svn-buildpackage -k8CE11941 -rfakeroot --svn-tag
or
    svn-buildpackage -k8CE11941 -rfakeroot --svn-tag-only

This will prepare for the next source release by making an entry in
debian/changelog.

Send the following files to the uploader:

    calcurse_1.2-1.diff.gz
    calcurse_1.2-1.dsc
    calcurse_1.2-1_i386.changes
    calcurse_1.2.orig.tar.gz

That's it.

Posted at: 21:27 | category: /dev | Comments ()