Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-420

[PATCH] Allow mongo to build cleanly on debian

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.4
    • Affects Version/s: 1.1.3
    • Component/s: Build
    • None
    • Environment:
      Debian Lenny

      the build stuff in /debian works well for ubuntu (I gather) but fails on Debian due to incorrect detection of the xulrunner version. In short, the package names differ between ubuntu and debian which breaks the version detection when only xulrunner 1.9.0 is available.

      Some quick notes about this patch - It's fairly hacky, but then again, the edited file is called hacks_ubuntu.py -

      There have been three changes:

      1) I've fixed the build deps in debian/control so that it accepts either ubuntu or debian style package name/versioning.

      2) I've changed the evaluation loop for 'best' in hacks_ubuntu.py to look for the highest versioned number, rather than preferencing an exact match of 'xulrunner' and then traversing to the last (which I thought a bit odd)

      3) I've added a secondary xulrunner version detection, which I don't particularly like, but for the life of me I can't work out a better/cleaner way to detect the installed version on an ubuntu/debian box without doing messy stuff like parsing dpkg status files/etc.

      Please feel free to use all/part/none of this.

      Caveat: I have tested building this on a debian lenny machine and it builds cleanly. I do not have an ubuntu machine to test against, so perhaps someone else can do that bit.

      Ta,

      Fenn.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            fenn Fenn Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: