Examples of bzr-builddeb?
James Westby
jw+debian at jameswestby.net
Wed Aug 25 23:47:50 BST 2010
On Wed, 25 Aug 2010 15:25:12 -0700, Monty Taylor <mordred at inaugust.com> wrote:
> On 08/25/2010 03:20 PM, John Barstow wrote:
> > I thought I'd try my hand at packaging bzr-tfs into a PPA for Ubuntu,
> > but I'm running into issues. Is there a good example of bzr-builddeb
> > being used anywhere? The existing documentation isn't really
> > comprehensive.
> >
> > I thought it would be straightfoward to package in builddeb 'native'
> > mode but that seems to fail - it keeps complaining that quilt can't
> > find the orig.tar.gz file (which shouldn't need to exist in native
> > mode, unless I'm very confused).
> >
> > Any suggestions or pointers to examples would be much appreciated; I
> > want to use the packaging exercise for both python-ntlm and bzr-tfs as
> > my gateway to becoming an Ubuntu developer.
> >
> >
>
> I often point people at Robert's blog on getting started with
> bzr-builddeb ...
>
> http://www.advogato.org/person/robertc/diary/130.html
Partly spurred on by Rob airing my dirty laundry and showing how
convoluted that was, I made this signficantly simpler in newer versions:
1. bzr branch http://example.org/bzr/trunk -r tag:0.1 packaging
2. cd packaging
3. bzr dh-make package-name 0.1 http://example.org/releases/0.1.tar.gz
4. bzr commit -m "Initial packaging."
You can then edit the packaging as you like.
(If you know how to package and hate dh_make then run "bzr dh-make
--bzr-only ..." instead and do whatever you like)
One you have this branch then you can build with
bzr builddeb
also spelt
bzr bd
you can build a source package with
bzr bd -S
Once you are ready to merge a new upstream release run:
bzr merge-upstream --version 0.2 http://example.org/releases/0.2.tar.gz
which will merge in that code, and leave you to check the changes and
commit as a normal merge does.
Thanks,
James
More information about the bazaar
mailing list