Opened 9 years ago

Last modified 9 years ago

#50692 closed update

MongoDB-3.2.3 has been released: Request version update — at Version 3

Reported by: josephsacco Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mongodb

Description (last modified by mf2k (Frank Schima))

The current stable release [17feb2016] of MongoDB is version 3.2.3. I made a lame attempt at building this version within the MacPorts framework by modifying the version 3.0.8 Portfile [updated the version, the checksums, and removed the patch]. With those modifications the build fails early when scons fails to locate ssl.h.

I have zero knowledge of scons so I tried a couple of experiments.

(1) Edit the Portfile and remove '-ssl' from the list of build.args That also made scons unhappy, as it complained that it knew nothing about '-cc'

I slowly removed the build.args one by one until I was left with a build command that runs scons without any build.args:

   /opt/local/bin/scons all mongobridge mongosniff 

That build command actually runs and completes without error, although I am not sure what it builds.

-Joseph

Change History (3)

comment:1 Changed 9 years ago by josephsacco

I may not understand scons, but I can run experiments and google for information... :-)

This command works with scons-2.4.1:

/opt/local/bin/scons all mongobridge mongosniff  --ssl  CPPPATH=/opt/local/include  LIBPATH=/opt/local/lib

FWIW... I hacked and slashed the Portfile to include only these build arguments and got MpngoDB to build within the Macports framework.

I have MacPorts Boost-1.59.0_2 installed. It might be a good idea to convince scons to use the local version of Boost rather than building Boost-1.56.0, if that version is acceptable to MongoDB. There is some "stuff" in the SConstruct file that suggests that might be possible.

-Joseph

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Cc: ryandesign@… removed
Keywords: version update removed
Owner: changed from macports-tickets@… to ryandesign@…
Type: requestupdate
Version: 2.3.4

Note that a "request" ticket type is only for requesting a new port. In the future, please use WikiFormatting.

comment:3 Changed 9 years ago by mf2k (Frank Schima)

Description: modified (diff)
Note: See TracTickets for help on using tickets.