Log in

No account? Create an account

Building debian packages for mozilla's sync server

« previous entry | next entry »
Jan. 15th, 2012 | 12:29 am

I'm surprised this seems to have gotten valid debian packages with a minimum of fuss for a package where I couldn't find a recommended release archive.

Upstream is in mercurial at http://hg.mozilla.org/services/server-full (and server-core, server-storage, server-reg). I don't know mercurial very well and git doesn't pull from the other DVCSes, so I wanted to use bazaar -- unfortunately for some reason the bzr-hg plugin was having trouble pulling directly from the http server. However I discovered I can make a bzr branch from a local hg repository.

  1. hg clone http://hg.mozilla.org/services/server-full upstream/server-full
  2. hg tags
    to find their tagged release version

  3. bzr branch -r hg:<hg spec> upstream/server-full syncserver
  4. python setup.py sdist --dist-dir ..
    to build the "orig" tarball the debian tools want
  5. ln -s SyncServer-1.0.tar.gz syncserver_1.0.orig.tar.gz
  6. copy over my old debian directory & update changelog
  7. debuild -S
  8. Edit MANIFEST.in a few times to add in whatever components were in the build tree but not in the archive built with sdist
Of course I haven't tried installing anything yet. So who knows if this'll actually work. The main thing that'll bite me is tracking the changes I made to the MANIFEST.in and setup.cfg files to get a tar.gz file built with sdist that matches the build tree. (sdist adds an egg_info section to setup.cfg)

Link | Leave a comment |

Comments {0}