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

RPM .spec files should build packages from source

    XMLWordPrintableJSON

Details

    • Build

    Description

      We should provide RPM spec files that will allow users to build their own packages. There are several reasons this won't work currently (the biggest being that our .spec files download binary archives and build RPM's with them instead of compiling source)

      Comments on RHEL5 specifically:

      RHEL 5 (and by extension, CentOS and others) doesn't provide Python 2.6 by default, so building/packaging the RPMs using the .spec file in the source distribution doesn't work without some modifications:

      In the BuildRequires section, add:

      %{?el5:BuildRequires: python26-devel}

      In the %build, %install, and %clean sections, add:

      %{?el5:alias scons='python26 `which --skip-alias scons`'}

      There's probably a cleaner way to do this, but with these modifications (and SERVER-2040 - wrong package name and %setup macro, typo in the %files section), Mongo cleanly builds on CentOS 5.6.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-build Backlog - Build Team
              jcourteau Jonas Courteau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: