Diane Trout (alienghic) wrote,
Diane Trout
alienghic

Building debian packages for mozilla's sync server

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)
Subscribe

  • Guild Wars 2

    I started playing Guild Wars 2, and am happy their questing system has broken with WoW's current quest design. As WoW grew they "simplified" and…

  • calendar.

    Its been a really long time since I tried to write. I keep meaning to roll my own blog software, but there's so many other things I should be doing.…

  • P2P vs Centralized networks

    I've been thinking a lot about SOPA & Related efforts to control the internet by Big Media + Federal Government. I'm pretty sure the reason the…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments